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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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