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.
Latest Date Value in Attribute
Best Answer
-
kayman Member Posts: 662 UnicornYou need to take 2 steps in this case (if I understood the question correctly). First generate a macro value on the full set storing the max date value, then you generate your attributes using the stored macro value as reference. So your expression becomes something like this ; if(date<%{my_stored_max_value},"1","0")
Now, since macros are stored as strings it will probably be easier to convert your date to millisecs and parse the macro, so something like this : if(date_millis([my_date_field])<parse(%{my_stored_max_value})),"1","0")
2
Answers
Dortmund, Germany
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Thank you for your prompt replies.
Sorry I guess that my question was not clearly put. I want to be able to refer to max(date) in generate attributes. Something like: if(date<max(date),"1","0").
tks
@kayman thanks. Worked like charm.
Thank you,
Pedro