Forum Discussion
Count zeros only
- 9 years ago
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
Hi Anonymous,
Another try, if it does not work then I eally don,t understand...
Zero Only = CALCULATE(COUNT('All Cust'[ISP Name]),'All Cust','All Cust'[Revenue]=0)
Let us know...
Ninter
BLANK
I just don't get it, there's 11 zeroes there and I've made sure it's properly formatted.
Zero Only = CALCULATE(COUNT('All ISPs'[ISP Name]),'All ISPs','All ISPs'[Revenue]=0)
And this comes back with 51 which is the total count:
Zero Only = CALCULATE(COUNT('Distinct ISP Name'[Corporation]),'All ISPs','All ISPs'[Revenue]=0)
- v-jiascu-msft9 years agoMicrosoft Employee
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
- Anonymous9 years agoNot applicable
Still showing BLANK. Is it possible I have formatting wrong? This is just way too hard for something that should be simple. :(
- v-jiascu-msft9 years agoMicrosoft Employee
Hi Anonymous,
Are there any filters or slicers?
Best Regards!
Dale
- Anonymous9 years agoNot applicable
None. I loaded this dataset as a completely seperate excel file, so it's free of all filters.
- Anonymous9 years agoNot applicable
For some reason this formula just now worked. I have no idea what changed.
Zero Only = COUNTROWS(FILTER('All ISPs','All ISPs'[Revenue]=0))
Thanks for all your help, I really appreciate your time!