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?
- 8 years ago
count = CALCULATE ( DISTINCTCOUNT ( 'table'[deviceTxnID] ); ALLEXCEPT ( 'table'; 'table'[deviceID] ) )Create a measure...
rocky09
8 years agoSolution Sage
Anonymous
you can simply use this measure
distinctcounttx = DISTINCTCOUNT(Table1[deviceTxnID])
Actually, I didn't get what results you are looking for?
- Anonymous8 years agoNot applicable
Thanks for helping me. To provide more detail on my desired output result: Below is a screen shot.
- Yggdrasill8 years agoResponsive Resident
count = CALCULATE ( DISTINCTCOUNT ( 'table'[deviceTxnID] ); ALLEXCEPT ( 'table'; 'table'[deviceID] ) )Create a measure...