Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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 |
---|---|
85 | |
81 | |
64 | |
53 | |
46 |
User | Count |
---|---|
101 | |
49 | |
42 | |
39 | |
38 |