Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Using DAX, how can I add an additional calculated column field that will return the distinct counts of deviceTxnId's for each deviceID?
Solved! Go to Solution.
count = CALCULATE ( DISTINCTCOUNT ( 'table'[deviceTxnID] ); ALLEXCEPT ( 'table'; 'table'[deviceID] ) )
Create a measure...
@Anonymous
you can simply use this measure
distinctcounttx = DISTINCTCOUNT(Table1[deviceTxnID])
Actually, I didn't get what results you are looking for?
Thanks for helping me. To provide more detail on my desired output result: Below is a screen shot.
count = CALCULATE ( DISTINCTCOUNT ( 'table'[deviceTxnID] ); ALLEXCEPT ( 'table'; 'table'[deviceID] ) )
Create a measure...
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
114 | |
97 | |
95 | |
68 | |
65 |