Use recursive loop

#1

Hello,
I want to use the recursive loop for a problem but I don’t know how :
Here’s my input:

Day Data New
1 2 3
2
3

The data of the second month should be equal to the New of last month , and this repeats to all rows:
The new column is calculated using a formula.
so my output is for example:

Day Data New
1 2 3
2 3 5
3 5 8

How can I do this via Knime?

Thank you

0 Likes

#2

Hi @newuser01 -

Have you looked at this workflow on the Hub? It’s already very similar to what you’re trying to do.

2 Likes

#3

Yes I did but I didn’t know how to make it work

0 Likes

#4

Hi @newuser01,

Maybe this blog post helps you to know more about the loops including the recursive loop:
https://blog.statinfer.com/which-loop-is-the-right-one-for-me/

:blush:

0 Likes

#5

I’ll check it out, thank you

0 Likes