CUMSUM function
The cumsum
function calculates the cumulative sum of a numeric column. This function is useful for performing running totals, which are common in financial calculations, cumulative performance analysis, and tracking progressive data trends.
Syntax
cumsum(<val>)
Parameter | Type | Description |
---|---|---|
val | float |
cumsum(<val>)
Parameter | Type | Description |
---|---|---|
val | int |
Usages
cumsum(`grand_amount`)
cumsum(`population`)