Skip to main content
Calculates the moving sum of values within a specified window of rows relative to the current row. Category: window Syntax:
Returns: Same as input type Context Filtering: ✓ Yes

Parameters

Allowed Column Types for column: INT, FLOAT, DECIMAL, NUMBER

Validation

  • Minimum parameters: 2
  • Maximum parameters: 3

Examples

Returns the total sales in a 7-day rolling window (current row and 6 previous rows).
Calculates a 30-day moving sum of revenue, useful for tracking rolling monthly totals.
Calculates a centered 5-day moving sum (2 days before, current day, 2 days after).
Last modified on March 13, 2026