Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Computes the mean of all grouped values.

mean(xs:list) -> float

The mean function returns the average of all numeric values in xs.

The values to average.

from {x: 1}, {x: 2}, {x: 3}
summarize avg=mean(x)
{avg: 2.0}

Last updated: