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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Sales Percentage Change based on Fixed Year

Hi Experts

 

See sample PBIX FIle with data.

 

I am trying to work out the Percentage Change in Sales month on month based on 2019 Sales. 

 

so 2020 percentage change would be for JAN 20 = (jan 2020 - Jan 2019)/ Jan 2019 Sales

 

and

 

2021 Percentage change (based on 2019 sales) for JAN 21 = (jan 2021 - Jan 2019)/ Jan 2019 Sales

 

My Measure =

Divide(Calculate(Average(SampleData[Average of IEA Demand]),ALL(DimDate[Date])),[Demand Perious Yr], blan())

Where Demand Previous Yr = Calculate(Average(SampleData[Average of IEA Demand]), Sameperiodlastyear(DimDate[Date])

As you can see from the sample data the (column) % Change MoM Movement - is correct for so 2020 percentage change would be for JAN 20 = (jan 2020 - Jan 2019)/ Jan 2019 Sales, but Wrong for the following year i.e.

 

2021 percentage change would be for JAN 21 = (jan 2021 - Jan 2019)/ Jan 2019 Sales.

 

https://www.dropbox.com/s/o7i3v62rw70lx6s/Sample_.pbix?dl=0 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try a measure like

Calculate(Average(SampleData[Average of IEA Demand]), filter(DimDate,DimDate[Date] =2019))

 

or

 

Calculate(Average(SampleData[Average of IEA Demand]), DimDate[Date] =2019)

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
amitchandak
Super User
Super User

@Anonymous , Try a measure like

Calculate(Average(SampleData[Average of IEA Demand]), filter(DimDate,DimDate[Date] =2019))

 

or

 

Calculate(Average(SampleData[Average of IEA Demand]), DimDate[Date] =2019)

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
Anonymous
Not applicable

thanks Amit

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.