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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
richardmayo
Helper II
Helper II

Year-on-year variance not calculating correctly

Hi Community,

 

I'm new to Power BI but learning quickly. I am having trouble getting the YOY% showing correctly.

 

This is the "quick measure" im using

 

 

 

Sales ex GST YoY% = 
VAR __PREV_YEAR =
	CALCULATE(
		SUM('rms repairs'[Sales ex GST]),
		DATEADD('Date (Export)'[Date], -1, YEAR)
	)
RETURN
	DIVIDE(SUM('rms repairs'[Sales ex GST]) - __PREV_YEAR, __PREV_YEAR)

 

 

 

But you can see the % is not working correctly.... for instance, November shows YOY our Sales value is down, but the % is recording +6.94%....

 

Screen Shot 2019-12-12 at 9.37.38 AM.png

 

Im using a date table as recommended which all other values are correct..... just this YOY variance I cant get right

4 REPLIES 4
parry2k
Super User
Super User

@richardmayo what measure you are using in Column Values section of this combo chart?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k 

Im using just the standard Sales ex GST. Ive attached a image so you can see

 

Screen Shot 2019-12-12 at 9.50.34 AM.png

@richardmayo this is your date table 'Date (Export)'[Date]? Is year filter you are using from this table? Did you market this table as date table?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k  yep  'Date (Export)'[Date] is in the date table. Yep year filter is also in date table and yes date table is set as "date table"

 

I believe I have just fixed it.... I removed "Calendar Year Number" from the series and then changed to "Calendar Year Number" to just filter on 2019. The data is now right, but it only shows this years values in the column with the correct YOY %. Not sure why it isnt allowing me to show both years actuals with the YOY %.....

Screen Shot 2019-12-12 at 10.03.00 AM.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors