Forum Discussion
Measure for a DistinctCount by Categories
- Anonymous7 years ago
Vvelarde, this has been resolved by added in "KEEPFILTERS".
DC Prod by Customers =
CALCULATE (
DISTINCTCOUNT ( Table1[Order ] ),
KEEPFILTERS(ALLEXCEPT ( Table1, Table1[ProductID ], Table1[Customers] ))
)THANK YOU!
Anonymous
Hi, try with this measure:
DC Prod by Customers =
CALCULATE (
DISTINCTCOUNT ( Table1[Order ] ),
ALLEXCEPT ( Table1, Table1[ProductID ], Table1[Customers] )
)Regards
Victor
- Anonymous7 years agoNot applicable
Thanks, Vvelarde . This works pretty well if we are not filtering the data. However, lets say if there is a date column and we would love to filter by date and check what is the distinctcount, what can be
Vvelarde wrote:Anonymous
Hi, try with this measure:
DC Prod by Customers = CALCULATE ( DISTINCTCOUNT ( Table1[Order ] ), ALLEXCEPT ( Table1, Table1[ProductID ], Table1[Customers] ) )Regards
Victor
done in order to sync with the filters?- Anonymous7 years agoNot applicable
Vvelarde, this has been resolved by added in "KEEPFILTERS".
DC Prod by Customers =
CALCULATE (
DISTINCTCOUNT ( Table1[Order ] ),
KEEPFILTERS(ALLEXCEPT ( Table1, Table1[ProductID ], Table1[Customers] ))
)THANK YOU!