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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
rulefox13
Regular Visitor

Calculate growth over a period in time

Hello, I am really stuck with a growth calculation that has been bugging me for a while now.

 

Goal: Find growth over 2015-2020 by different Global Brand Owner (Toyota, Honda, etc) E.g. if Toyota's Unit Sales in 2015 were 25 mln and in 2020 were 27 mln, I'd like to know the total growth between the two periods in % terms (and in absolute terms). I would also like to break this down by different Subcategory (vans, passenger cars, SUVs) and Country. For example, finding the growth of SUV sales in China over 2015-2020. (The dates field, 'Year' runs from 2015-2020 in the file). 

 

rulefox13_0-1612889658444.png

 

I really Appreciate your help! 

 

 

 

 

2 REPLIES 2
Icey
Community Support
Community Support

Hi @rulefox13 ,

 

Please share us some sample data for test. 

Reference: How to Get Your Question Answered Quickly - Microsoft Power BI Community

 

 

Best Regards,

Icey

amitchandak
Super User
Super User

@rulefox13 , Create a separate a table for year. 

If you take a year range then you can use min max year for diff. or USe two slicer or time intelligence

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

 

When you use range measure

 

measure =
var _max = maxx(allselected('Date'), 'Date'[Year])
var _min = Minx(allselected('Date'), 'Date'[Year])
return
calculate(sum(Table[Value]), filter(('Date'), 'Date'[Year] =_max)) -calculate(sum(Table[Value]), filter(('Date'), 'Date'[Year] =_min))

 

 

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.