Calculates the moving count of values within a specified window of rows relative to the current row. Category:Documentation Index
Fetch the complete documentation index at: https://docs.anlytic.com/llms.txt
Use this file to discover all available pages before exploring further.
window
Syntax:
Integer
Context Filtering: ✓ Yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
column | column | ✓ Yes | The column to count values for |
window_start | integer | ✓ Yes | The number of rows before the current row to include in the window (negative value) |
window_end | ✗ No | integer | The number of rows after the current row to include in the window (positive value). Defaults to 0. |
Validation
- Minimum parameters: 2
- Maximum parameters: 3
Examples
Related Functions
- CumulativeCount - Calculates cumulative count from the first row
- MovingSum - Calculates moving sum with a window
- Count - Returns the overall count
- RunningCount - Calculates running count