Forum Discussion
Andrew_na_lang
Helper V
4 years agoCount and percentage
Hi Power bi Family, I am stuck here. I have done this in the past but not sure why it wasn't working now. I basically need to have a count of the customers who have "BLANK" CountOfOrdersAfterC...
- 4 years ago
Try something like the following:
NumberBlank = VAR CustomersWithBlanks = FILTER ( VALUES( CustomerTable[CustomerName] ), ISBLANK([CountOfOrderAfterClaim]) ) RETURN COUNTROWS( CustomersWithBlanks )I suspect you can do something more efficient by testing directly but would need to see your data model.
Andrew_na_lang
Helper V
4 years agobcdobbs Yes, it is one line per customer.
It is grouped by customer name.
bcdobbs
Community Champion
4 years agoTry something like the following:
NumberBlank =
VAR CustomersWithBlanks =
FILTER (
VALUES( CustomerTable[CustomerName] ),
ISBLANK([CountOfOrderAfterClaim])
)
RETURN COUNTROWS( CustomersWithBlanks )
I suspect you can do something more efficient by testing directly but would need to see your data model.