Forum Discussion
Sha
Helper II
6 years agoCount where doesn't exist
I'm struggling to find solution: I have data on 1 row (company, product). I am wanting to pick a product and show all the companies that have NOT bought this product. I also only want to see the c...
- 6 years ago
You may take a look at the posts below.
amitchandak
Super User
6 years agoSha ,
One way to get if you have company Dimension
Except(Company[Company],table[Company])
Other is create a measure and then use nest two measures for your two requirements
measure = count(Table[Product])+0
Filter measure =calculate(sumx(value(company[company]),[measure]),filter(Table,[measure]=0))
Filter measure 2 =calculate(sumx(value(company[company]),[measure]),filter(Table,[measure]>=2))
- Sha6 years ago
Helper II
I created 2 measures but Value didn't work in 2nd measure, should I be using Values? It didn't produce any results.
Product cnt = count(Sheet1[Product])+0 (when I created matrix, 0 didn't show up)Company Cnt = CALCULATE(SUMX(values(Sheet1[Company]),[Product cnt]),FILTER(Sheet1,[Product cnt]=0)) (when I created table for Company, Company Cnt nothing showed up)