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! Learn more

Reply
anilpoda
Frequent Visitor

How to Compare Year over Year if there is Data inconsistency?

I have 3 years orders data. 1st year has data starting from 14th week, 2nd year 53 weeks data, 3rd year has only 9 weeks data. In this case how can I calculate YoY. Obviously, if I use YoY quick measure it will show negative value. How do I approach this situation?

 

Download Pbix file from below link. Also, provide few recommendations on how can I impove my report.

 

Blinds Pbix 

 

Thanks in Advance.

2 REPLIES 2
NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @anilpoda ,

 

Try the below, 

Create the below measures and check it works.

total = SUM('table1'[abc])

previous year = CALCULATE(SUM('table1'[abc]), DATEADD('Date'[date],-1,Year)

YOY - DIVIDE(
( [total] - [previous year] ) , [previous year] )

 

Check if it works, replace table names and column names as per your data.

 

Regards, 
Nikhil Chenna 


Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

Hi Nikhil,

 

Comparing 14 weeks data against 53 weeks data is not the right way to do when it comes to sales comparison. I need to compare only this year 14 weeks versus previous year 14 weeks. Kindly, read my post fully and propose DAX query for that.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.