- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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 :
Here is my objective:
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you for your answer.
But now I would like the row to take into account the type of wine (red or white).
How to make the rank taking into account the type of wine but without taking into account the taster?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hello
My suggestion is that separate in to two tables :
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thanks a lot!

Helpful resources
User | Count |
---|---|
89 | |
82 | |
53 | |
40 | |
35 |