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.

Last updated