Skip to main content
Question

Shift months while using PREVIOUSOF()

  • May 15, 2026
  • 1 reply
  • 31 views

Forum|alt.badge.img+8

Hi,

Is there a way to reference the current month value even while using PREVIOUSOF()? Since using iterative dimension is not allowed, is there a way to shift month values so that value returned by PREVIOUSOF() is the current month value instead of previous month?

1 reply

Forum|alt.badge.img
  • Employee
  • May 19, 2026

Hi there, great question!

 

Regrettably, the PREVIOUSOF() can’t be shifted to return the current month. It always returns the value from the previous item in the iterative dimension by design.

 

If you need the current month value, reference the metric directly (without PREVIOUSOF()).

 

If you’re trying to realign months (e.g., show prior month values in the current month column), use a time-shift approach like SHIFT( (outside of PREVIOUSOF()), depending on your exact setup.

 

For more information on the PREVIOUSOF() function, check out our Help Centre article