Skip to main content
Calculates the moving variance 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 variance of sales in a 7-day rolling window (current row and 6 previous rows).
Calculates a 30-day moving variance of response times, useful for tracking data dispersion over time.
Calculates a 20-day rolling variance for stock returns to analyze volatility.
Last modified on March 13, 2026