cumulative
Calculates a cumulative sum or other cumulative aggregation.
Syntax
cumulative(<table>, <expr>, <sort>)
| Parameter | Type | Description |
|---|---|---|
| table | Table | The table to operate on. |
| expr | any | The expression to evaluate. |
| sort | Array | The Sort value. |
Return values
Depends on input arguments.
Usage
Calculates a cumulative sum of order total prices.
cumulative(sum(orders.total_price))