Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Comparing an Overall Value with a Sliced Value of the same Column

I am building a report of survey results based on survey questions that are answered on an scale from Strongly Agree - Strongly Disagree.  For each question I am showing a card that indicates the overall percentage of answers that are either "Agree" or "Strongly Agree".  Easy enough.

 

I also have several slicers in my report, and as expected, when a value is selected in a slicer, the card value changes to show the percentage of answers that are either "Agree" or "Strongly Agree" for just that "slice" of the population.  However, I would like to be able to compare that sliced value to the overall value dynamically using a second card that shows the +/- vs. the overall value.

 

Lets say the overall (unsliced) value on the card is 75.00% - When I apply a slicer, the value of card #1 changes to 68.00%, I would like the value of card  #2 to read -7%.  How can I reference the "sliced" value to subtract it from the overall (unsliced) value?  Any thoughts would be much appreciated.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

=CALCULATE([your measure],ALL(Data))-[your measure]

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

=CALCULATE([your measure],ALL(Data))-[your measure]

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Worked perfectly.  Thank you!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors