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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.