Hi,
I have a fact table with CustomerNo, DateKey, ProductKey, SupplierKey, Sales.
This is related to a Calendar table, Product, and Supplier Table.
I'm trying to calculate a distinct count of customer where the sales = 0 in a specific year and keeping the original filter conditions on related tables.
I've tried :
Calculate(Distinctcount(fact[CustomerNo), Fact[Sales]=0)
This won't work as the critiera needs to assess the Sales over the whole year and only return 0 if all months are 0.
Any idea or pointers would be a big help.
I have a fact table with CustomerNo, DateKey, ProductKey, SupplierKey, Sales.
This is related to a Calendar table, Product, and Supplier Table.
I'm trying to calculate a distinct count of customer where the sales = 0 in a specific year and keeping the original filter conditions on related tables.
I've tried :
Calculate(Distinctcount(fact[CustomerNo), Fact[Sales]=0)
This won't work as the critiera needs to assess the Sales over the whole year and only return 0 if all months are 0.
Any idea or pointers would be a big help.