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 doesn't work

I am new to Power BI and encountered a problem that:

 
It works fine in the prvious version of Power BI, but it always display zero in YoY in the latest version. Can anyone help?
 

 

Formula:

 

YoY% =
VAR __PREV_YEAR = CALCULATE(SUM('ACT'[COUNT]), DATEADD('ACT'[DATE].[Date], -1, YEAR))
RETURN
DIVIDE((SUM('ACT'[COUNT]) - __PREV_YEAR), __PREV_YEAR)
 
 
Display:
 
zero YoY.png
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , use date table and do not use .date

VAR __PREV_YEAR = CALCULATE(SUM('ACT'[COUNT]), DATEADD('DAte'[DATE], -1, YEAR))

 

In visual use date, month year, etc from date table

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

If your problem has been solved, you could accept the helpful answer as solution. You could also share your own

solution here.

If you still need help, please share a sample file for further research.

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@Anonymous , use date table and do not use .date

VAR __PREV_YEAR = CALCULATE(SUM('ACT'[COUNT]), DATEADD('DAte'[DATE], -1, YEAR))

 

In visual use date, month year, etc from date table

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.