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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors