[[["容易理解","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 (世界標準時間)。"],[],[],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:"]]