Forum Discussion
Anonymous
5 years agoNot applicable
COUNTBLANK and Count Zeroes?
Hello, I have a several columns that have text values and I want a DAX that could count how many Blanks there are AND how many zeroes there are. I already use the COUNTBLANK DAX but I would like ...
- 5 years ago
How about something like this?
COUNTROWS ( FILTER ( Table1, ISBLANK ( Table1[ColA] ) || Table1[ColA] = "0" ) )Or a completely different approach:
CALCUALTE ( COUNT ( Table1[ColA] ), ISBLANK ( Table1[ColA] ) ) + CALCUALTE ( COUNT ( Table1[ColA] ), Table1[ColA] = "0" )
parry2k
Super User
5 years agoTahreem24 not sure why, FILTER function is the last thing you want to use. Anyhow, let's talk about it separately, don't want to divert the topic into something totally different. 👍
- Tahreem245 years ago
Super User
parry2k - I hope you got my point by refering the below user's post. That's why recommend them to use Filter to get the correct result.
https://community.powerbi.com/t5/Desktop/Filter-not-working-on-measure-field/m-p/1442932
By the way, thanks for the caution. 🙂