FunctionslastVersion: v4.23On this pagelastTakes the last non-null grouped value.last(xs:list) -> anyDescriptionThe last function returns the last non-null value in xs.xs: listThe values to search.ExamplesGet the last non-null valuefrom [ {x: 1}, {x: 2}, {x: null}, ] summarize last_value=last(x){last_value: 2}See Alsofirst