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).
![](https://help.autodesk.com/cloudhelp/ENU/INF360P-UserGuide/images/GUID-7242D7A2-F9CD-410B-9B77-342289FE691E.png)