Cumulated sum
The cumulated sum step enables you to calculate running totals based on a reference column, typically dates. It's valuable for understanding accumulation over time and visualizing progressive totals.
Step parameters
Columns to cumulate
tuples({column; string})*: the value columns you want to compute the cumulated sum of, and for each one the name of the result column (by default it will be your original column name suffixed by_CUMSUM
).Reference column to sort (usually dates)
column(string): the column that will be used to order rows in ascending order. Usually you will use a date column here (to compute a year-to-date result for exemple).Group By
(string) (optional): if you need to apply the cumulated sum computation by group of rows, you may specify here the columns to be used to constitute groups.
Example
Input

Configuration
{
"cumul_columns": [
{"sales": "cumulative_sales"},
{"quantity": "cumulative_quantity"}
],
"ref_column": "sales",
"group_by": []
}
Output

Last updated
Was this helpful?