cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rlee300
Frequent Visitor

% Difference Measurement

Hi everyone, 

How do I create a measurement that will show the difference between 2 percentages?

Quarter1st %2nd % % Diff
Q1 202025%16%9%
Q2 202015%16%-1%
Q3 202020%16%4%
Q4 202030%16%14%

 

Please note that 1st % is averaged, while 2nd % is another measurement. 

 

Thanks!

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@rlee300 


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

View solution in original post

4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@rlee300 


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

View solution in original post

rlee300
Frequent Visitor

*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.

rlee300_0-1626209134408.png

 

selimovd
Super User
Super User

Hey @rlee300 ,

 

you can just subtract the measures if you just want to get the difference:

% Diff = [1st %] - [2nd %]

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
rlee300
Frequent Visitor

Hi Denis, Unfortunately, the 1st % is not a measurement.

Helpful resources

Announcements
Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Power BI Womens Summit 2021 768 x460.jpg

Interviews, learning sessions, allies, and more!

#PowerBIWomenSummit

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!