The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
24 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |