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.

Takes the most common non-null grouped value.

mode(xs:list) -> any

The mode function returns the most frequently occurring non-null value in xs.

The values to evaluate.

from {x: 1}, {x: 1}, {x: 2}, {x: 3}
summarize mode_value=mode(x)
{mode_value: 1}

Last updated: