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
Hi
I have a requirement to be able to count the duplicates in a table.
Eg
PrimaryKeyField
1
2
3
3
4
5
5
6
7
So in this example the duplicate value would be 2, as both values 3 and 5 have multiple entries.
This only ever needs to be calculated over the whole table and will only ever be in a single card visual, so row context is not a concern.
Cheers
Solved! Go to Solution.
Scratch that. As soon as I posted it I thought of the solution.
COUNTROWS( MyTable ) - DISTINCTCOUNT( PKColumn )
Scratch that. As soon as I posted it I thought of the solution.
COUNTROWS( MyTable ) - DISTINCTCOUNT( PKColumn )
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 37 | |
| 35 | |
| 35 | |
| 28 |
| User | Count |
|---|---|
| 134 | |
| 101 | |
| 71 | |
| 67 | |
| 65 |