Skip to main content

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>)
ParameterTypeDescription
valfloat
cumsum(<val>)
ParameterTypeDescription
valint

Usages

cumsum(`grand_amount`)
cumsum(`population`)