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 sum of all values.

sum(xs:list) -> int

The sum function computes the total of all number values.

The values to aggregate.

from {x: 1}, {x: 2}, {x: 3}
summarize n=sum(x)
{n: 6}

Last updated: