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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
PaulinRoc
Frequent Visitor

Rank by a column excluding another column

Hello to all,


I would like to create a ranking column that ranks wines according to the average score obtained.
Here is my dataset :

PaulinRoc_0-1675936920416.png

 

Here is my objective:

PaulinRoc_1-1675937048942.png

 

 

The problem is that the ranking is done according to the taster, which I don't want.

After a few days of research, I ask my question on this forum.

 

Thanks to you,
have a nice day

1 ACCEPTED SOLUTION
onurbmiguel_
Power Participant
Power Participant

Hello 

 

Try this measure: 

Rank = 
var _rank =
RANKX(
    ALLSELECTED('Wine Score'),
    CALCULATE(
        sum('Wine Score'[Score]),
        ALLEXCEPT('Wine Score','Wine Score'[Wine])
    ),
    ,
    DESC,
    Dense
    )
return 
_rank

 

onurbmiguel__0-1675938292478.png

 

Best regards

Bruno Costa | Solution Supplier

 

Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 👍

Take a look at the blog: PBI Portugal 

 

wp-1586527108426

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


View solution in original post

5 REPLIES 5
onurbmiguel_
Power Participant
Power Participant

Hello 

 

Try this measure: 

Rank = 
var _rank =
RANKX(
    ALLSELECTED('Wine Score'),
    CALCULATE(
        sum('Wine Score'[Score]),
        ALLEXCEPT('Wine Score','Wine Score'[Wine])
    ),
    ,
    DESC,
    Dense
    )
return 
_rank

 

onurbmiguel__0-1675938292478.png

 

Best regards

Bruno Costa | Solution Supplier

 

Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 👍

Take a look at the blog: PBI Portugal 

 

wp-1586527108426

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Hello,
I am coming back to you because my problem is not solved.
I would like to create a column containing my ranks and not a measure. I would also like the ranks not to be duplicated (if two wines have the same average, they should not have the same rank).

Thanks for your help

Thank you for your answer.
But now I would like the row to take into account the type of wine (red or white).

PaulinRoc_0-1675940072508.png

 


How to make the rank taking into account the type of wine but without taking into account the taster?

Hello 

My suggestion is that separate in to two tables :

onurbmiguel__0-1675940506341.png

My opinion is that like this will give more clear information to the users. 

All together it will not very clear.  

 

Best regards

Bruno Costa | Solution Supplier

 

Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 👍

Take a look at the blog: PBI Portugal 

wp-1586527108426

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Thanks a lot!

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.