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
Generate a sequence iteration wise
sgnarkhede2016
Member Posts: 152 Contributor II
in Help
Hello,
I want to generate a sequence like.
In my first loop, Five customers is coming then I will generate Id 1 to 5
In the next loop 7 Customer is coming I want to start Id from 6 and so as per iteration.
I want to generate a sequence like.
In my first loop, Five customers is coming then I will generate Id 1 to 5
In the next loop 7 Customer is coming I want to start Id from 6 and so as per iteration.
0
Best Answer
-
MarcoBarradas Administrator, Employee-RapidMiner, RapidMiner Certified Analyst, Member Posts: 272 Unicorn@sgnarkhede2016 you'll need to Use Loop Batches, Generate ID, Extract Macro operator to do what you are trying to achieve.
You'll extract the Max ID that was created with the extract Macro and then Use it as a parameter for the offset in the Generate ID.
6
Answers
Dortmund, Germany
e.g I have used branch, give condition if iteration==1 then I pass in offset =0 and store max id in Max_Id macro and In Else part I have mentioned in Generate Id Offset %{Max_Id}