I have 2 Columns.
First Column is the Date.
The second Column has a value.
I want to see for each Day in the first Column the sum of the last 7 Days.
How can i do that in FME?
I have 2 Columns.
First Column is the Date.
The second Column has a value.
I want to see for each Day in the first Column the sum of the last 7 Days.
How can i do that in FME?
Best answer by nielsgerrits
AttributeCreator, click Advanced, check "Enable Adjacent Feature Attributes" and set "Number of Prior Features" at 7.
Create a new attribute "result" with the value
@sum(@Value(B),@Value(feature[-1].B),,@Value(feature[-2].B),@Value(feature[-3].B),@Value(feature[-4].B),@Value(feature[-5].B),@Value(feature[-6].B))
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.