STD_DEV_EACH

Computes the standard deviation of a set of numbers per given group.

Syntax

STD_DEV_EACH([MAX_VALUES,] GROUP, VALUE)

Arguments

MAX_VALUES

Type: integer

Default: 2,147,483,647

(Optional) The maximum number of groups. Groups beyond this amount are discarded. When omitted, there is effectively no limit.

In some cases, discarding groups via this option may cause some data to be discarded from groups that would otherwise have been kept.

GROUP

Type: any

The field to group by.

VALUE

Type: numeric

The field to find the standard deviation of.

Returns

Type: array

Returns array of key-value pairs where each GROUP is matched to the standard deviation of VALUE seen for that group.

Last updated