Skip to main content
Version: v4.25

first

Takes the first non-null grouped value.

first(xs:list) -> any

Description

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

xs: list

The values to search.

Examples

Get the first non-null value

from {x: null}, {x: 2}, {x: 3}
summarize first_value=first(x)
{first_value: 2}

See Also

last