Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi, I am working on HR Attrition dashboard. My requirement is to build visuals which show highest attrition by supervisor in that organisation. Now, management came up with new requirement as the visual must be sorted by attrition and headcount of that supervisor. They are asking sort by highest headcount and highest attrition. How can we do sort by two measures as each supervisor has different heacounts and attriters. If any one knows, please let me know.
Solved! Go to Solution.
Hi @maheshbabu ,
You can first calculate the ranking of heacounts and attriters separately.
rank by heacounts = RANKX(ALL('Table'),[heacounts measure],,DESC,Dense)
rank by attriters = RANKX(ALL('Table'),[attriters measure],,DESC,Dense)
Then there will be a priority selection, here I choose ‘attriters’ to have a higher priority than 'heacounts'.
rank by attriters and heacounts = RANKX(ALL('Table'),[rank by attriters]*100+[rank by heacounts],,ASC,Dense)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot
Hi @maheshbabu ,
You can first calculate the ranking of heacounts and attriters separately.
rank by heacounts = RANKX(ALL('Table'),[heacounts measure],,DESC,Dense)
rank by attriters = RANKX(ALL('Table'),[attriters measure],,DESC,Dense)
Then there will be a priority selection, here I choose ‘attriters’ to have a higher priority than 'heacounts'.
rank by attriters and heacounts = RANKX(ALL('Table'),[rank by attriters]*100+[rank by heacounts],,ASC,Dense)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
65 | |
45 | |
39 | |
31 |
User | Count |
---|---|
164 | |
111 | |
61 | |
53 | |
38 |