Forum Discussion
Anonymous
8 years agoNot applicable
Related Distinct Count
I'm trying to compute how many of our individuel product categories a customer has used, but I'm not getting the expected result. Attached image is a good of the data model in a classic setup with P...
- 8 years ago
Anonymous
Hi, you can use two measure like this:
Main Groups Used = CALCULATE ( DISTINCTCOUNT ( 'Product'[ProductMainGroup] ); CROSSFILTER ( 'Fact'[ProductID]; 'Product'[ProductId]; BOTH ) )Sub Groups Used = CALCULATE ( DISTINCTCOUNT ( 'Product'[Product Sub Group] ); CROSSFILTER ( 'Fact'[ProductID]; 'Product'[ProductId]; BOTH ) )Regards
Victor
Lima - Peru
Anonymous
3 years agoNot applicable
Hi all,
I think SQLBI have got related article over here:
https://www.daxpatterns.com/related-distinct-count/
Thanks