Comment on page
Computes the average (arithmetic mean) for each group.
AVG_EACH([MAX_VALUES,] GROUP, VALUE)
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.
The field by which to group the results.
Type: any type
The field to be averaged.
Returns an array of key-value pairs where each
GROUPis matched to the average
VALUEseen for that group.