Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all,
Can anyone help with the following issue - I'm wanting a card to display 0 if another visual is filtered, else show result of calculation;
Solved! Go to Solution.
Hi @Anonymous
Modify your measure like below. The return value of ISFILTERED() is True/False, which cannot be compared with "Negative".
Satisfaction % =
IF (
ISFILTERED ( 'SentimentScore'[Sentiment] )
&& SELECTEDVALUE ( 'SentimentScore'[Sentiment] ) = "Negative",
0,
CALCULATE (
COUNT ( 'SentimentScore'[MessageID] ),
'SentimentScore'[Sentiment] <> "Negative"
)
/ COUNT ( 'SentimentScore'[MessageID] )
)
Kindly let me know if this helps.
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.
Hi @Anonymous
Modify your measure like below. The return value of ISFILTERED() is True/False, which cannot be compared with "Negative".
Satisfaction % =
IF (
ISFILTERED ( 'SentimentScore'[Sentiment] )
&& SELECTEDVALUE ( 'SentimentScore'[Sentiment] ) = "Negative",
0,
CALCULATE (
COUNT ( 'SentimentScore'[MessageID] ),
'SentimentScore'[Sentiment] <> "Negative"
)
/ COUNT ( 'SentimentScore'[MessageID] )
)
Kindly let me know if this helps.
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.
Hi @Anonymous ,
Replcae your DAX with the following:
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 124 | |
| 108 | |
| 47 | |
| 28 | |
| 27 |