Gets the value from N period ago.
This is useful when comparing current data to 24 hours ago, 1 week ago, etc.
Syntax
previous(TimeSeries, Period)
Parameter | Description |
---|---|
TimeSeries | A node with time series data. |
Period | The number of data intervals to look back. |
Example expression
previous(@FlowRateSensor, 7): If the interval is set to daily, this expression will get the value from the same time last week.
Example chart
