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(","))
      )
    )
  )
)
ParameterTypeRequiredDescription
exprTYesThe numeric expression to compute variance of
conditionBOOLEANNoThe condition to filter the values before aggregation
featureFEATURENoThe 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
Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19