Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
79 | |
48 | |
38 | |
31 |
User | Count |
---|---|
192 | |
79 | |
70 | |
50 | |
42 |