Skip to main content
On this page

Kater SQL Functions Calendar comparisons

Calendar comparisons

A calendar comparison works a measure out again for an earlier period, such as the month before, so each row shows both.

The Compare with menu writes them. In a query, declare it with CUSTOM_CALCULATION. See Period comparisons.

FunctionWhat it does
KATER__PREVIOUS_PERIODThe measure for the period before each row’s period, such as the month before each month.
KATER__SAME_PERIOD_LAST_YEARThe measure for the same period one year earlier, such as March 2025 for March 2026.
KATER__SAME_WEEKDAY_LAST_WEEKThe measure for the same day of the week, one week earlier.
KATER__PERIOD_SHIFTThe measure for the period a set number of steps before or after each row’s period.
KATER__PERCENT_CHANGEThe change from the baseline to the current value, as a share of the baseline.