Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |