Skip to main content
Version: Next

max

Computes the maximum of all grouped values.

max(xs:list) -> number

Description

The max function returns the largest numeric value in xs.

xs: list

The values to evaluate.

Examples

Find the maximum value

from [
  {x: 1},
  {x: 2},
  {x: 3},
]
summarize max_value=max(x)
{max_value: 3}

See Also

min, mean, sum