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 last non-null grouped value.

last(xs:list) -> any

The last function returns the last non-null value in xs.

The values to search.

from {x: 1}, {x: 2}, {x: null}
summarize last_value=last(x)
{last_value: 2}

Last updated: