This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I'm putting together a stack rank for my sales dept.
I have 10 measures, things like:
1.) Total Sales
2.) New Customers
3.) % to Quota
4.) % of Total Sales is our Newest Product
Etc.
I now want to rank each measure 1st to last and total the Rank for each Measure. The person with the lowest combined score will be ranked first. How can i do it? Can i make it dynamic? I.e. use the same Rank Measure to rank the Area Directors, the Regional Directors, and the Territory Sales People ?
Thank you!
Solved! Go to Solution.
You can use RANK to do this, and it is fully dynamic an example of this would be below:
RANK(DENSE, ALLSELECTED( **** ) , ORDERBY( **** ,ASC), LAST, PARTITIONBY( **** ))
Inside the ALLSELECTED, you must put any columns you would like to Rank by, if you are ranking people then this column must go here - and any other column you intend to use in your visual.
Inside the ORDERBY is the measure you wish to rank.
PARTITIONBY is optional, and gives you the freedom to reset the rank at certain points, for example you wanted a rank within each Area Director. If you do not need to break your rank at certain parts, simply remove:
, PARTITIONBY( **** )If this works for you, please mark it as the solution.
You can use RANK to do this, and it is fully dynamic an example of this would be below:
RANK(DENSE, ALLSELECTED( **** ) , ORDERBY( **** ,ASC), LAST, PARTITIONBY( **** ))
Inside the ALLSELECTED, you must put any columns you would like to Rank by, if you are ranking people then this column must go here - and any other column you intend to use in your visual.
Inside the ORDERBY is the measure you wish to rank.
PARTITIONBY is optional, and gives you the freedom to reset the rank at certain points, for example you wanted a rank within each Area Director. If you do not need to break your rank at certain parts, simply remove:
, PARTITIONBY( **** )If this works for you, please mark it as the solution.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.