MOVING_COUNT
Description
This function counts the values for each window. It can be applied to any data type.
Syntax
MOVING_COUNT ( table.column, start, end )
NULL handling
NULL values are not counted. If all values of a group are NULL, the result for this group is 0.
Examples
[1] Count of values for current row and one row above. | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
|
[2] Count of values for current row and one row above with null values. | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
|
[3] Count of values for current row and one row above. A FILTER is applied, such that only rows with an INCOME value less than 400 are taken into account. | ||||||||||||||||||||||
| ||||||||||||||||||||||
|