Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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).
I really Appreciate your help!
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
@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))
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |