The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Compute rank within subgroups
Is there an operator that will compute the rank of each row according to some attribute value? If so, is it possible to do so for subgroups within an example set?
e.g. Compute RANK based on VALUE within each GRP group
Keith
e.g. Compute RANK based on VALUE within each GRP group
GRP ID VALUE RANKThanks.
1 a 5 1
1 b 10 2
1 c 20 3
2 d 7 1
2 e 50 2
2 f 51 3
Keith
0
Answers
not a single operator but you could use a combination of several operators (I am talking about the upcoming release 4.3 here):
- value iterator to iterate over the groups
- example filter to filter out only the current group
- sorting to build the rank
- id taggin to give numbers for the ranks
- io retriever to retrieve last result
- example set merge to merge the current group ranking with the last one (retrieved)
- io storer to store the current result again in the store
It's will be a nice process for such a "simple" task
Cheers,
Ingo
I 've got exactly the same problem like Keith.
Is there meanwhile any simpler solution to solve this?
If not: Would you mind to post an example process with the described solution?
Thanks a lot,
Jan
Here you go!
Best regards, Marius