Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi!
I need some help to solve this problem. I have a list with the following columns: company name, year and profit. The list looks like this:
Then I would like to rank the top 3, and the bottom 3 (each year) like this(for the top 3):
..and like this for the bottom 3 (where the company ranked as 1 is the worst performing company):
Thanks in advance for any help solving this challenge!
Solved! Go to Solution.
@Anonymous ,
Create two calculate columns using DAX below:
Rank_Best = RANKX(FILTER('Table', 'Table'[Year] = EARLIER('Table'[Year])), 'Table'[Profit], , DESC, Dense) Rank_Worst = RANKX(FILTER('Table', 'Table'[Year] = EARLIER('Table'[Year])), 'Table'[Profit], , ASC, Dense)
Then create two matrix visuals as below:
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
Create two calculate columns using DAX below:
Rank_Best = RANKX(FILTER('Table', 'Table'[Year] = EARLIER('Table'[Year])), 'Table'[Profit], , DESC, Dense) Rank_Worst = RANKX(FILTER('Table', 'Table'[Year] = EARLIER('Table'[Year])), 'Table'[Profit], , ASC, Dense)
Then create two matrix visuals as below:
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much for the solution!
PS! I see now that my question was a bit too simplified regarding my actual case, but I'll send the challenge in a new post since this one is solved.
Thanks once again!!
User | Count |
---|---|
84 | |
69 | |
69 | |
65 | |
54 |
User | Count |
---|---|
93 | |
93 | |
91 | |
76 | |
69 |