Skip to main content

avgWeighted

Introduced in: v20.1.0 Calculates the weighted arithmetic mean. Syntax
Arguments Returned value Returns NaN if all the weights are equal to 0 or the supplied weights parameter is empty, or the weighted mean otherwise. Float64 Examples Usage example
Query
Response
Mixed integer and float weights
Query
Response
All weights are zero returns NaN
Query
Response
Empty table returns NaN
Query
Response
Last modified on July 2, 2026