cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
setis
Post Partisan
Post Partisan

Top performer per case

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:

 

TypeCaseUserExpected
Email111A1
Email111A1
Email111B2
Email111C2
Email111D2
Email111A1
Email122A2
Email122B1
Email122B1
Email122C2
Email122D2

 

Thank you in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

2 REPLIES 2
setis
Post Partisan
Post Partisan

@amitchandak thanks a lot, this is what I was looking for. 

amitchandak
Super User
Super User

@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

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.