March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |