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
How to get the latest record for each id?
tayjy_wp16
Member Posts: 1 Learner I
in Help
For example, consider the following set of data rows:
ID Attribute1
1 25
1 16
3 45
2 34
1 35
2 54
3 33
What operator should I use to get the latest value as shown below?
Exp:
ID Attribute1
1 35
2 34
3 33
ID Attribute1
1 25
1 16
3 45
2 34
1 35
2 54
3 33
What operator should I use to get the latest value as shown below?
Exp:
ID Attribute1
1 35
2 34
3 33
0
Answers
Sort on Attribute1 descending.
If you need to filter out the latest value you can then use the filter example range operator, and add 1 for first and last example.
You can use a Sort operator and then a Loop Values operator associated to Filter Examples and Filter Example Range operators :
Here the process :
Regards,
Lionel
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts