Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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...
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 122 | |
| 110 | |
| 83 | |
| 69 | |
| 68 |