Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am trying to RankX the regional manager of each team; however, manager have different size teams and hence higher sales. What I am trying to do is average out their sales / headcount and rank that; however, I am running into several spots when filtering by the month that some of the rankings are out of order, see pics. Any help is much appreciated.
Solved! Go to Solution.
I have it figured out. I am pulling head count from an employee table and order values from an order table for the average. I had to change the relationship on my tables to filter both. Previously the employee table was filtering the order table.
Hi @Dhutch909 ,
RANK =
RANKX (
ALLSELECTED ( 'Service Territory'[Regional Manager] ),
[Reg-Order Average]
)
Regards,
Harsh Nathani
@Dhutch909 , I can see a change in measure calculation when it has been used in Rank. Measure Rank is sensitive to context.Please use exact same measure at both places and check
Also For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...
@amitchandak I am not 100% sure what you mean? The Reg - Order Average uses the number of employees for each manager to get an average and then the Rankx compares the managers averages against each other. Is something wrong with that?
I have it figured out. I am pulling head count from an employee table and order values from an order table for the average. I had to change the relationship on my tables to filter both. Previously the employee table was filtering the order table.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 10 | |
| 8 |