테이블 계산을 만들 수 있는 적절한 권한이 있으면 이 페이지에 설명된 방법의 대안으로 바로가기 계산을 사용할 수 있습니다. 바로가기 계산을 사용하면 Looker 함수 및 연산자를 사용하지 않고도 Explore의 데이터 테이블에 있는 숫자 필드에서 일반적인 계산을 수행할 수 있습니다.
테이블 계산을 사용하면 임시 측정항목을 만들고 Explore 쿼리로 반환된 데이터에 대한 계산을 수행할 수 있습니다. 이는 누적 합계와 같은 측정항목을 계산하는 데 편리합니다.
이 페이지에서는 Explore의 데이터 테이블에서 누계 열을 계산하는 방법을 보여줍니다. 테이블 계산을 사용하여 행 간에 누적 합계를 만들 수도 있습니다. 자세한 내용은 테이블 계산에서 행 집계(행 합계) 권장사항 페이지를 참조하세요.
running_total() 함수 사용
테이블 계산을 사용하여 누계 열을 만들려면 running_total() 함수를 사용하여 지정된 열에 있는 값의 누계를 반환할 수 있습니다.
예를 들어 인벤토리 상품 생성일별로 그룹화된 인벤토리 상품 수를 표시하는 다음 Explore 데이터 테이블에서 인벤토리 상품 수 열의 누계를 만들려면 다음과 같은 테이블 계산을 만들 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-30(UTC)"],[],[],null,["# Creating a running total down columns with table calculations\n\n\u003e As an alternative to the methods described on this page, when you have the appropriate [permissions](/looker/docs/admin-panel-users-roles#create_table_calculations) to create table calculations, you can use [shortcut calculations](/looker/docs/table-calculations#quick_calculations). Shortcut calculations let you perform common calculations on numeric fields that are in an Explore's data table without the need to use Looker [functions and operators](/looker/docs/functions-and-operators).\n\n\n[Table calculations](/looker/docs/table-calculations) let you create ad hoc metrics and perform calculations on the data that is returned by an Explore query. This is convenient for calculating metrics like running totals.\n\n\nThis page shows you how to calculate a running total down columns in an Explore's **Data** table. You can also create a running total across rows using table calculations, which you can read more about in the [Aggregating across rows (row totals) in table calculations](/looker/docs/best-practices/how-to-aggregate-values-across-rows) Best Practices page.\n\nUsing the `running_total()` function\n------------------------------------\n\n\nTo create a running total down a column using table calculations, you can use the [`running_total()`](/looker/docs/functions-and-operators#functions_for_table_calculations_only)\nfunction, which returns the running total of the values in a specified column.\n\n\nFor example, to create a running total of the column **Inventory Items Count** in the following Explore **Data** table that shows **Inventory Items Count** grouped by **Inventory Items Created Date**, you can create this table calculation: \n\n```\nrunning_total(${inventory_items.count})\n```\n\n\nThis expression yields the following results:"]]