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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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...
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 124 | |
| 105 | |
| 44 | |
| 32 | |
| 24 |