Skip to main content
Calculates the moving average of values within a specified window of rows relative to the current row. Category: window Syntax:
Returns: Float Context Filtering: ✓ Yes

Parameters

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

Validation

  • Minimum parameters: 2
  • Maximum parameters: 3

Examples

Returns the 3-day moving average (current row and 2 previous rows).
Calculates a 7-day moving average of temperature, useful for smoothing out daily fluctuations.
Calculates a centered 9-day moving average (4 days before, current day, 4 days after).
  • CumulativeAvg - Calculates cumulative average from the first row
  • MovingSum - Calculates moving sum with a window
  • Avg - Returns the overall average
Last modified on March 13, 2026