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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
TheKiltedGolfer
Helper III
Helper III

Creating a measure, based on two filtered cards from same table, and producing a card based on it

I have Table A that has a “Name” column (text format), “DateTime” column (datetime format), “Window” column (text format) and an “Emails Received” column (integer).  The “Window” column has many options including “4PM”, “5PM”, “6PM”, etc. I have created two cards with filters on them.  One titled (say Card A) “Total count of distinct names that can receive emails for timeframe” that counts distinct names for multiple selected “DateTime” AND multiple selected “Window” no matter the email count. The other card (Card B) is titled “Total count of distinct names that received emails for timeframe” that counts distinct names for multiple selected “DateTime” AND multiple selected “Window” with email counts NOT 0. So far so good?  These two cards work fine for me.  But now I need a third card (Card C) based on these two.  The formula would be (Card A – Card B)/Card A.  I do not know how to create a measure to do this.  I would then want Card C to be the outcome of the measure. I tried doing it based on what I found in the Power BI forums but they fail and do not produce a number.  I am not sure how to incorporate the filters into a measure either.  Can anyone help me?  Or am I making this way too complicated and should be doing this a different way altogether?

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

 
According to your description, I tested it. It can't be realized in a table. When I cancel the interaction of slicer, it can't get the value of card visual(Because measure is calculated according to the current context).
So I copied the table, which is feasible, and got the result you want.
Please refer to the pbix
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

 
According to your description, I tested it. It can't be realized in a table. When I cancel the interaction of slicer, it can't get the value of card visual(Because measure is calculated according to the current context).
So I copied the table, which is feasible, and got the result you want.
Please refer to the pbix
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.