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

Parameters

Validation

  • Minimum parameters: 2
  • Maximum parameters: 3

Examples

Returns the count of orders in a 7-day rolling window (current row and 6 previous rows).
Calculates a 30-day moving count of customers, useful for tracking customer activity over time.
Calculates a centered 5-row moving count (2 rows before, current row, 2 rows after).
Last modified on March 13, 2026