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.
Is there a quick/easy way to write a measure that shows duplicate occurrences of the same combination of values from two columns?
i.e. I have the following table:
Account | Team Member | Role |
A | John | Service |
A | Michael | Sales |
A | Susan | Operations |
A | Mary | Sales |
B | John | Service |
B | Joe | Service |
B | Mary | Sales |
B | Alexis | Sales |
C | David | Service |
C | John | Operations |
C | Susan | Service |
D | Michael | Sales |
D | Keith | Service |
And want a table visual in PBI to show something like this:
Account | Role | RoleCount |
A | Service | 1 |
A | Sales | 2 |
A | Operations | 1 |
B | Service | 2 |
B | Sales | 2 |
C | Service | 2 |
C | Operations | 1 |
D | Sales | 1 |
D | Service | 1 |
I would then bake into the measure where RoleCount =1 return Blank, else, give me the number of occurences of the same values in Role under any given value of Account...
Doing this in M is not an option, and I'd prefer it to be a measure, since I have 400k accounts, and 38 possible roles - so would want users to only focus/filter via slicer accounts on which he/she is attached.
Thanks!
Solved! Go to Solution.
Hi, try with this in a table visual with Account and Role:
Measure = IF ( DISTINCTCOUNT ( Table1[ Team Member] ) = 1; BLANK (); DISTINCTCOUNT ( Table1[ Team Member] ) )
Regards
Victor
Hi, try with this in a table visual with Account and Role:
Measure = IF ( DISTINCTCOUNT ( Table1[ Team Member] ) = 1; BLANK (); DISTINCTCOUNT ( Table1[ Team Member] ) )
Regards
Victor
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 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |