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.
Dear all
I have a list op activities and I'm trying to identify the user with most activities per case. If there are 2 users with the same top nr of activities, they can share the top.
I need this on a calculated column on the table.
This is an example of the table and the expected result:
Type | Case | User | Expected |
111 | A | 1 | |
111 | A | 1 | |
111 | B | 2 | |
111 | C | 2 | |
111 | D | 2 | |
111 | A | 1 | |
122 | A | 2 | |
122 | B | 1 | |
122 | B | 1 | |
122 | C | 2 | |
122 | D | 2 |
Thank you in advance!
Solved! Go to Solution.
@setis , Create two columns like
Activity = countx(filter(table,[Case] =earlier([Case] && [User] =earlier([User] )),[User])
rank = rankx(filter(table,[Case] =earlier([Case])),[Activity],,desc,dense)
For Rank Refer
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
@setis , Create two columns like
Activity = countx(filter(table,[Case] =earlier([Case] && [User] =earlier([User] )),[User])
rank = rankx(filter(table,[Case] =earlier([Case])),[Activity],,desc,dense)
For Rank Refer
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
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 |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |