AVG_EACH
Computes the average (arithmetic mean) for each group.
Syntax
Arguments
MAX_VALUES
MAX_VALUES
Type: integer
Default: no limit
(Optional) The maximum number of groups. Groups beyond this amount are discarded.
In some cases, discarding groups via this option may cause some data to be discarded from groups that would otherwise have been kept.
GROUP
GROUP
Type: any
The field by which to group the results.
VALUE
VALUE
Type: any type
The field to be averaged.
Returns
Type: array
Returns an array of key-value pairs where each GROUP
is matched to the average VALUE
seen for that group.
Last updated