Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
| ID | Column A | Column B |
| 1 | 10 | Document |
| 1 | 10 | Document |
| 2 | 12 | Solution |
| 2 | 12 | Solution |
| 2 | 12 | Solution |
| 3 | 20 | Document |
| 3 | 20 | Document |
| 3 | 20 | Document |
My table has duplicates.
how do I sum values in column A, for a "Document" in column B ?
So, the formula returns 30.
also, looking to count distinct ID's for "document". Formula returns 2.
Solved! Go to Solution.
Hi @alienout
For sum please use a measure :
For count:
Pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi,
PBI file attached.
Hope this helps.
You are welcome.
Hi @alienout
For sum please use a measure :
For count:
Pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 21 | |
| 20 | |
| 13 |
| User | Count |
|---|---|
| 59 | |
| 53 | |
| 40 | |
| 31 | |
| 26 |