Window functions
These functions work best with aggregated data in a grouped table. For a video explanation of working with functions of this type, see Getting started with functions and groupings in Sigma.
Window functions perform operations across an entire table, table grouping (grouped rows), or defined window of rows. Sigma supports cumulative, moving, shifting, and ranking window functions.
Cumulative window functions
Cumulative window functions evaluate a specified column in a table or grouping and return the running total or cumulative value for all rows up to and including the current row. This differs from aggregate values that calculate a summary value for the entire table or grouping.
Moving window functions
Moving window functions evaluate a specified column and return a value based on a defined window of rows that moves in relation to the current row.
Shifting window functions
Shifting window functions evaluate a specified column in a table or grouping and return the value from a row that shifts in relation to the current row.
Ranking window functions
Ranking window functions evaluate a specified column in a table or grouping and assign a rank to each row.

