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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
1 | Mike |
| 1 | Mike |
| 2 | Eli |
| 3 | Paul |
| 3 | Mike |
| 3 | Stephen |
I am trying to distinct count names (using a measure) by the ID. If an ID has the same name, I only need it counted once. However, the same name in different IDs have to be counted separately.
I want to get the data as below
ID 1: 1 Name
ID 2: 1 Name
ID 3: 3 Names
Total: 5
If I just use Calculate(DistinctCount(Name)), I would only get a value of 4.
Solved! Go to Solution.
I think you can use your measure with an iterator:
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 46 | |
| 30 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 86 | |
| 72 | |
| 38 | |
| 27 | |
| 24 |