cancel
Showing results for 
Search instead for 
Did you mean: 
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 IV
Super User IV

@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))

 

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.