The Cume function returns a cumulative running total for each value in a column of numbers.
numbers references the column that contains the numbers on which the cume is calculated.
break_col is an optional parameter that references a break column.
If constant values in the break_value column are substituted for data items, dates and text strings must be enclosed in single quotes. |
The following examples show the results of inserting the Cume function in two separate tables.
In this example, the Cume function is used on the numeric column. The results are shown in the Computed column.
Cume (Amount)
In this example, the Cume function is used on the numeric column and break_column. The results are shown in the Computed column.
Cume (Amount, State)