how to use recursive and chunk loop in the same time

Hi @lamasewidan , could you share some data and show what the expected results for the first 3 lines, and of course explain how you got to these values?

This will help illustrate what you are trying to do, and there might be a more straight forward way to do this instead of using 2 loops nested in one another.