Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
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