offset

Input Stack:
TimeSeriesExpr
Duration
Output Stack:
TimeSeriesExpr
 

Shift the time frame to use when fetching the data. This is used to look at a previous interval as a point of reference, e.g., day-over-day or week-over-week.

Examples:

BeforeAfterCombined
name,sps,:eq,
(,name,),:by
name,sps,:eq,
(,name,),:by,
1w,:offset
name,sps,:eq,
(,name,),:by,
:dup,
1w,:offset
BeforeAfterCombined
name,sps,:eq,
(,name,),:by
name,sps,:eq,
(,name,),:by,
PT1H,:offset
name,sps,:eq,
(,name,),:by,
:dup,
PT1H,:offset

Note that there is a deprecated List\[Duration\] variant that returns StyleExpr instead of TimeSeriesExpr and cannot be used with math operations.