Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
How do I create a measurement that will show the difference between 2 percentages?
Quarter | 1st % | 2nd % | % Diff |
Q1 2020 | 25% | 16% | 9% |
Q2 2020 | 15% | 16% | -1% |
Q3 2020 | 20% | 16% | 4% |
Q4 2020 | 30% | 16% | 14% |
Please note that 1st % is averaged, while 2nd % is another measurement.
Thanks!
Solved! Go to Solution.
@Anonymous
Average 1st measure = Average([1st%])
Then diff = [Average 1st] - [2nd&]
If this does not work, please share a sample table of you original table, dax is based on data table not table visuals, so it is hard to say without data table.
Paul Zheng _ Community Support Team
@Anonymous
Average 1st measure = Average([1st%])
Then diff = [Average 1st] - [2nd&]
If this does not work, please share a sample table of you original table, dax is based on data table not table visuals, so it is hard to say without data table.
Paul Zheng _ Community Support Team
*Additional Information*
The 1st % is an aggregated average. If someone could help me to write a dax version of the aggregated average function that I clicked, as seen in the image that would be much appreciated.
Hey @Anonymous ,
you can just subtract the measures if you just want to get the difference:
% Diff = [1st %] - [2nd %]
Hi Denis, Unfortunately, the 1st % is not a measurement.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
77 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |