Forum Discussion
chandakaushik
Helper I
7 years agoCOUNTA function is counting blank cells as well
Did anyone notice that COUNTA DAX function is counting blank cells in the column as well? Microsoft's documentation says it counts the number of cells in a column that are not empty. Any idea what's ...
- 7 years ago
that's what is looks like, and only reason you need to do that because you are using COUNTA or similar function which doesn't count BLANK otherwise you can always put condition in your measure to check for whitespace and blank() but replace can be more elegant solution.
Nathaniel_C
Community Champion
7 years agoHi chandakaushik ,
You may want to ask KenPuls . He wrote an amazing book about Power Query. M Is for (Data) Monkey.
KenPuls
Helper II
7 years agoSo... personally I usually pull data from external data sources. This is one of those areas that is kind of frustrating, as PowerBI seems to read those empty cells and places blanks instead of null values. The only way I know of to fix this is to replace <nothing> with null on the column to correct the default behaviour.