Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Trouble with Calculated Field for YoY

Hi all,

 

I am trying to create a calcualted field for YoY, but it is a little tricky...

 

The field I am trying to calculate YoY for is called "QTD Orders Revenue." I need to compare QTD Orders Revenue for "2022-Q3," the current quarter, to "2021-Q3," the same quarter but a year ago. Likewise, I want to calculate YoY for ANY previous quarters as well... I.e., "2022-Q2" vs "2021-Q2" or "2022-Q1" vs "2021-Q1" etc...

 

The biggest challenge is figuring out how to tell PowerBI that you need to subtract 1 from the year but keep the quarter the same.

 

Any help is appreciated 🙂 

 

Thank you!

 

Best,

Tanner

3 Replies