What does @ts(treatment='rate') or @ts(treatment='integral') mean?


ts stands for ‘time series’

‘previous’: Treats all values between two consecutive data points with the earlier data value in the time series. Can be visualized as a step function where time is the independent axis.

‘rate’: Takes the average or weighted average of a normalized intervals and applies that values across the entire interval.

‘integral’: Value represents the running cumulative total of data points over time.



There are other treatments that you can apply on time series, documentation for which can be found by doing c3ShowType(Treatment) on the console