Last Function

Outputs the most recent valid data point. This function is used to extend through gaps in data.

Syntax

last(TimeSeries)

Parameter Description
TimeSeries A node with time series data.

Example expression

last(@PressureSensor): If the interval is set to daily, and there are gaps in the daily sensor data, this expression will report the most recent valid data point in those gaps.

Example chart

In this chart we can see that the sensor (blue series) has no data point for December 22nd, while the time series using the Last function (black series) does have a data point, which is equal to the last valid data point (from December 21st).