Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone!
I want to create a measure that counts how many "Yes and "S" from this table, which should be 4, However, I also want the measure to able to show number "0" when there are no counts (instead if showing blank).
How should I write this measure?
Thanks in advance.
Solved! Go to Solution.
Hi @njxfoster
please try
=
IF (
NOT ISEMPTY ( 'Table' ),
COUNTROWS (
FILTER (
'Table',
'Table'[Completion_Status__c] IN { "Yes", "S" }
)
) + 0
)
Hi @njxfoster
please try
=
IF (
NOT ISEMPTY ( 'Table' ),
COUNTROWS (
FILTER (
'Table',
'Table'[Completion_Status__c] IN { "Yes", "S" }
)
) + 0
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |