Forum Discussion
tcmem
8 years agoRegular Visitor
How to include Zeros in column value count
I'm trying to calculate a count of items in a column that are less than or equal to 12. For some reason, it's excluding the Zeros. How do I include the Zeros in my count? I'm also excluding blanks ba...
- 8 years ago
Hi, you can use:
Measure = COUNTROWS ( FILTER ( Table1, ISBLANK ( Table1[Field2] ) = FALSE () && Table1[Field2] <= 12 ) )Measure = CALCULATE ( COUNT ( Table1[Field2] ), FILTER ( Table1; ISBLANK ( Table1[Field2] ) = FALSE () && Table1[Field2] <= 12 ) )Regards
Victor
Lima - Peru
tcmem
8 years agoRegular Visitor
Hello Ashish,
Are you able to use two different Fields in this function? I need to remove blanks in Field1 & Field2.
Thanks for your help!
Ashish_Mathur
Super User
8 years agoHi,
Subtract another COUNTBLANK() with the other field