Forum Discussion
KarenKazab
7 years agoFrequent Visitor
Dax formula help - count rows with multiple values in one column
Hi all, Relatively new to power bi and Dax and i'm sure this is probably an easy one, in sql would be a doddle, i want to count the rows in my table CurrentOccupants where the column OccupancySta...
- 7 years ago
Hi KarenKazab
No' Tenants = COUNTROWS ( FILTER ( 'CurrentOccupants', 'CurrentOccupants'[OccupancyStatus] IN { "Lead", "Joint" } ) )
Zubair_Muhammad
7 years agoCommunity Champion
Hi KarenKazab
No' Tenants =
COUNTROWS (
FILTER (
'CurrentOccupants',
'CurrentOccupants'[OccupancyStatus] IN { "Lead", "Joint" }
)
)
ainie
3 years agoRegular Visitor
Hi Zubair,
I tried your solution but received syntax error. May i know what could be wrong? I'm newbie in DAX PBI. Appreciate your help on this. Thanks!
Total Submission = CALCULATE (COUNTROWS ( node__field_state ), node__field_state[field_state_value IN { "processing","accepted","draft","rejected" }))