Forum Discussion
Anonymous
8 years agoNot applicable
DAX - Calculate Column By Distinct Counts
Using DAX, how can I add an additional calculated column field that will return the distinct counts of deviceTxnId's for each deviceID?
count = CALCULATE ( DISTINCTCOUNT ( 'table'[deviceTxnID] ); ALLEXCEPT ( 'table'; 'table'[deviceID] ) )Create a measure...
3 Replies
- rocky09Solution Sage
Anonymous
you can simply use this measure
distinctcounttx = DISTINCTCOUNT(Table1[deviceTxnID])
Actually, I didn't get what results you are looking for?
- AnonymousNot applicable
Thanks for helping me. To provide more detail on my desired output result: Below is a screen shot.
- YggdrasillResponsive Resident
count = CALCULATE ( DISTINCTCOUNT ( 'table'[deviceTxnID] ); ALLEXCEPT ( 'table'; 'table'[deviceID] ) )Create a measure...