Generate Attribute depending on 2 values in previous rows
Hi there,
I already searched the forum but did not find anything very helpful.
Let´s say I have some easy sales-data in an example-set like this:
Week | Product | UnitPrice | Unit_Sales
I already searched the forum but did not find anything very helpful.
Let´s say I have some easy sales-data in an example-set like this:
Week | Product | UnitPrice | Unit_Sales
01_19| Beer_A | 0.99 | 10
02_19| Beer_A | 0.85 | 20
I would like to generate a new Attribute which:
- either gives the price of a product of thelast week
- or already calulates the price-difference from the previous week to the actual row/week
Is that even possible with the operator Generate Attribute?
Best regards and have a nice day
Tagged:
0
Best Answer
-
MartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3,404RM Data Scientist- Sr. Director Data Solutions, Altair RapidMiner -
Dortmund, Germany6
Answers
Dortmund, Germany
Could you please explain that? How exactly would you lag this and how would you combine that with generate Attributes?