Forum Discussion
Count zeros only
I want to count customers with zero revenue only. I'm able to count customers with revenue, but I can't make the inverse work no matter what formula I try.
This is my latest failure:
Zero Only = COUNTROWS(FILTER('All Cust','All Cust'[Revenue]="0"))
I've also tried this with no quotes around the 0.
I've tried so many ways and nothing will work. My Revenue column is set to whole numbers, US currency.
Thanks
Hi Anonymous,
As the picture showed, the upper is my test data and the bottom is the result. It works, which is the formula in your first post. Could you please post a snapshot of the result of yours? How does it show up in a Card visual?
Best Regards!
Dale
19 Replies
- InterkoubessSolution Sage
Hi Anonymous
Did you try the formula Zero Only = calculate(COUNTROWS(the column),FILTER('All Cust','All Cust'[Revenue]=0))
I tried a formular silmilar to this and it worked ( image attached).
Thx.
- AnonymousNot applicable
Zero Only = CALCULATE( COUNTROWS('All Cust'), 'All Cust', 'All Cust'[Revenue]=0 ) - AnonymousNot applicable
I can't just select a column after Calculate(countrows I'm forced to select the entire table.
Zero Only = CALCULATE(COUNTROWS('All Cust'),FILTER('All Cust','All Cust'[Revenue]=0))
- AnonymousNot applicable
Zero Only = CALCULATE(COUNTROWS('All Cust'),'All Cust','All Cust'[Revenue]=0)
It comes back with (Blank) even though I have 11 customers with 0.
- AnonymousNot applicable
I tried selecting just the table before FILTER and then the table with the revenue row and recieved BLANK even though I should have 11.
Zero Only = CALCULATE(COUNTROWS('All Cust'),FILTER('All Cust','All Cust'[Revenue]=0))
- VvelardeCommunity Champion
Anonymous
Hi, Do you have Customers with 0 Revenue in the table? or have Customer with no rows in All Cust table?.
Can you post a screenshot of your data view.
Regards
Victor
Lima - Peru