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

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

Accepted Solutions
Super User
Super User

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

Hi,

 

Try this

 

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

 

Hope this helps.

3 REPLIES 3
Super User
Super User

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

Hi,

 

Try this

 

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

 

Hope this helps.

Dmac11 Frequent Visitor
Frequent Visitor

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

Worked perfectly.  Thank you!

Super User
Super User

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

You are welcome.