Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

YoY % Expression

Hi Power BI Community!

 

I am a beginner starting Power bi tool recently as a Purchaser.

I would like to express YoY of Purchase volume(PVO) over time in dashboard. 

Would you be able to identify what needs to be corrected on my DAX calculation?

It would be perfect to get a new column YoY % on "FY19~FY22 Added" table.

 

Following is my measure:

PY PVO =
CALCULATE([Total PVO],DATEADD('FY19~FY22 Added'[YEAR],-1, YEAR))
 
Total PVO =
CALCULATE(SUM('FY19~FY22 Added'[PVO]),all('FY19~FY22 Added'[PVO]))
 
YoY = [Total PVO]/[PY PVO]-1 
*question: is it correct to express % ?
 
1 ACCEPTED SOLUTION

@Anonymous 

since your request is YOY, so I only get the year value, if your request is MOM, then we need to add Y/M column. if you don't use if function, the first year's yoy is infinity. That doesnot make sense. usually we set it as blank.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

7 REPLIES 7
ryan_mayu
Super User
Super User

@Anonymous 

do you have a calendar table?

could you pls provide the sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Yes, I have a calendar table which consists of 4 period

SONGHA_0-1627452230271.png

 

and expected output is YoY % per description. I would like to share sample data with you but, it cannot be loaded. Do you know how to upload it?

 

SONGHA_1-1627452339614.png

 

 

@Anonymous 

it's a calendar table. caleandar table is based on day ,not year.

maybe you can share your pbix file via onedrive or others





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Yes, I tried to put calandar with full date but, raw data doesn't represent a specific date. So I just let only year appear on it. Can you access to this link?

https://drive.google.com/file/d/1rMaPKctmCxFkirgYSSpQreaXr5z-cvOn/view?usp=sharing

@Anonymous 

is this what you want?

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

There we go! Thank  you so much, Ryan.

 

I am following my mistakes to see your measure. 

 

You made a calandar table and then set "year" for expression

And blank needs to be replace with a recognized cell. right? 

@Anonymous 

since your request is YOY, so I only get the year value, if your request is MOM, then we need to add Y/M column. if you don't use if function, the first year's yoy is infinity. That doesnot make sense. usually we set it as blank.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.