Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymouse
New Member

How to rank based on multiple parameters

Hi there, I would like to rank a dataset based on multiple paramenters. From: 

 

ProductSalespersonSales
Product AAlan10
Product BBob20
Product BAlan22
Product ACharlie11

 

to 

 

ProductSalespersonSalesRank
Product AAlan101
Product ACharlie112
Product BBob201
Product BAlan222

 

 

Any ideas how to do this? Tried looking at RankX but it seems to be only for 1 paramenter only. Thanks!

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

Rank ASC.pbix

 

A most common question about sorting in ascending order

ThxAlot_0-1691306222444.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Please feel free to utilize either the "Rank" measure provided below or the "ThxAlot" measure, both of which yield accurate results.

Rank =
RANK(DENSE,
    CALCULATETABLE(VALUES('Your Table Name'[Salesperson]),ALLSELECTED('Your Table Name'[Salesperson])),ORDERBY([sale],ASC))

If you find the solution to your problem using either of these measures, kindly mark the issue as resolved.
ThxAlot
Super User
Super User

Rank ASC.pbix

 

A most common question about sorting in ascending order

ThxAlot_0-1691306222444.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Hi there,

when i tried your solution with sample data , my rank is all '1'. Could you kindly advise?

 

Anonymouse_0-1691384864147.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.