The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance 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
)
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
20 | |
15 | |
14 | |
10 | |
7 |