Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I am new to Power BI and DAX. I am trying to calculate a simple 3-year growth rate like this example from excel:
Age | 2018 | 2019 | 2020 | Growth Rate |
<= 20 | 6 | 3 | 4 | -33.33% |
21-25 | 7 | 11 | 11 | 57.14% |
26-30 | 7 | 5 | 5 | -28.57% |
31-40 | 3 | 2 | 3 | 0.00% |
41-50 | 1 | 1 | 0 | -100.00% |
51-60 | 0 | 0 | 0 | 0.00% |
61 > | 0 | 0 | 0 | 0.00% |
Total | 24 | 22 | 23 | -4.17% |
However when I do this in Power BI and create a measure using the following:
Growth Rate = DIVIDE( [2020]-[2018], [2018], BLAK())
It sums the Growth rate column Total row, instead of calculating the growth rate for the Total row. See image:
I don't want -104.76% I want it to calculate the growth rate for the 'Total' row.
Any ideas?
Thanks,
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a measure.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a measure.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@mothert , Ideally power bi should give you the same answer as excel(what you shown) . I doubt you have something on top of this measure. By default grand totals are recalculated in power bi
The other chart (the color one) is what is happening in Power BI. The measure I created used the formula I mentioned above:
Growth Rate = DIVIDE( [2020] - [2018], [2018]. Blank())
It gives me what you see in the color chart.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
11 | |
11 | |
8 |
User | Count |
---|---|
24 | |
18 | |
12 | |
11 | |
10 |