Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
@ARomain , Create a measure like
countrows(summarize(Table, Table[ID], Table[Name]) )
I think you can use your measure with an iterator:
@ARomain , Create a measure like
countrows(summarize(Table, Table[ID], Table[Name]) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |