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.
"Anyone please? Loop Attributes? -
MacPhotoBiker
Member Posts: 60 Contributor II
Hi,
I'm trying to identify the first three orders when a particular customer purchased a particular product. The "integrate" operator could help to put a counter in each record, but I don't know how to reset it based on certain conditions (like "New customer and new article"). Here's what I try to achieve:
I'm hoping somebody could point me in the right direction.
Thank you!
I'm trying to identify the first three orders when a particular customer purchased a particular product. The "integrate" operator could help to put a counter in each record, but I don't know how to reset it based on certain conditions (like "New customer and new article"). Here's what I try to achieve:
Customer | Article | Counter |
C1 | A1 | 1 |
C1 | A1 | 2 |
C1 | A1 | 3 |
C1 | A2 | 1 |
C1 | A2 | 2 |
C2 | A1 | 1 |
C2 | A2 | 1 |
I'm hoping somebody could point me in the right direction.
Thank you!
Tagged:
0
Answers
Here's how my table looks like currently:
Customer,Article,Counter
C1,A1,1
C1,A1,1
C1,A1,1
C1,A2,1
C1,A2,1
C2,A1,1
C2,A2,1
C3,A3,1
I'd really appreciate somebody could help me out.
Thanks a lot in advance!