Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Rank examples by attribute including duplicates
dandres
Is there an operator or combination of operators that will compute the rank of each example for a selected attribute?
The Sort/Generate ID method won't work here because some of the examples have the same value and thus should have the same rank. The preference for those "ties" is to compute the lowest rank, not the average rank.
For example:
Value Rank
100 1
98 2
97 3
97 3
96 5
Find more posts tagged with
AI Studio
Accepted answers
All comments
MartinLiebig
Hi,
i don't know a one operator solution.
You can go for Sort, Generate ID and then use Aggregate and Group By your Value coloumn to calculate min(Id) and average(Value). Should work quite fine.
Cheers,
Martin
dandres
Thanks, Martin.
I should have mentioned that I also need to maintain unique rows. I guess I could use your method and then add one more step to Join back the original by value.
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups