Skip to main content Skip to complementary content

WEIGHTED_AVERAGE

The weighted average of a field in the time window.

Syntax

WEIGHTED_AVERAGE(VALUE, WEIGHT)

Arguments

VALUE

Type: numeric

The field to weigh before averaging.

WEIGHT

Type: numeric

The field giving the corresponding weight for each VALUE.

Returns

Type: numeric

Returns the average of VALUE weighed by WEIGHT.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!