VAR_POP() GROUP BY ...
All functions > GROUP BY > VAR_POP() GROUP BY ...
Returns the population variance of the values in the group.
Syntax
Diagram(
Sequence(
Terminal("VAR_POP"),
Terminal("("),
NonTerminal("expr"),
Terminal(")"),
Choice(0, Skip(),
Sequence(
Terminal("FILTER"),
Terminal("("),
Terminal("WHERE"),
NonTerminal("condition"),
Terminal(")")
)
),
Choice(0, Skip(),
Sequence(
Terminal("GROUP BY"),
OneOrMore(NonTerminal("feature"), Terminal(","))
)
)
)
)| Parameter | Type | Required | Description |
|---|---|---|---|
expr | T | Yes | The numeric expression to compute variance of |
condition | BOOLEAN | No | The condition to filter the values before aggregation |
feature | FEATURE | No | The features to group by (many features are supported) |
Notes
- Computes the population variance (divides by N)
- NULL values are excluded from the calculation
- Returns NULL if all values are NULL or group is empty