Comment on page
Collects the maximum value per given group.
MAX_EACH([MAX_VALUES,] GROUP, VALUE)
(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.
The field to group by.
The field to get the maximum value of.
Returns an array of key-value pairs where each
GROUPis matched to the maximum
VALUEseen for that group.