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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
CA1410
New Member

Card to work out difference between 2 other cards.

Hi everyone!

I'm creating a dashboard which shows the results of a survey, I have 2 cards which show the survey response totals and I'd like a card in the middle which works out the difference of the two. However the 2 original cards will be effected by slicers so I can change between each survey, there are around 10 surveys in total.

 

Is it possible to have this card in the middle which will dynamically change and work out the difference from card 1 and card 2.

 

Thank you.

 

 

1 REPLY 1
kpost
Super User
Super User

Assuming the same filters are affecting all 3 cards, you should just be able to make a measure and subtract the two values, no?

difference_card_value = COALESCE(SUM(TABLE[Response_1]), 0) - COALESCE(SUM(TABLE[Response_2]), 0)


//Mediocre Power BI Advice, but it's free//

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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