Shape · Summarize and reshape

Running Aggregations

Adds running totals that build up row by row: sum, average, median, min, max, count or standard deviation, optionally restarting per group. For example, year-to-date sales.

Also known as: Cumulative sum, running total

How it works

Group by is optional and restarts the series per group. Order by is required: it is the sequence the totals build up along. Click Add operation for each running column: a function (Sum, Average, Min, Max, Count, Median or Std dev), a column (Count offers All rows) and an output name, which defaults to a name such as Running SUM of amount. Every row carries the value accumulated up to and including itself; the input columns are kept.

Inputs and outputs

Inputs

  • data — Table

Outputs

  • data — Table

Settings

The Attributes panel of Running Aggregations, as in the app: the controls work, but nothing runs — there is no data behind it.

The same settings, as the Assistant writes them
{
  operations: [{ func: "SUM"|"AVG"|"MIN"|"MAX"|"COUNT"|"MEDIAN"|"STDDEV", column: string, outputColumn?: string }]
  orderBy: [{ column: string, direction: "asc"|"desc" }]
  groupBy?: string[]
}

Example

You need year-to-date sales per region. Order by date ascending, group by region, and add Sum of amount as ytd.

regiondateamountytd
North2026-01-05100100
North2026-02-1140140
South2026-01-207575