RECURSIVE CALCULUS

I have a DB built in the following way:
Item | Date | stock | purchase orders | forecast
image
I would like to obtain a column calculate in the following way:
stock of the previous period+Purchase orders-forecast
in order to get a stock projection over time.
the formula should be the following:
image

Hi @Pietro_Zaza1,

welcome to the community. As far as I could comprehend, please correct if the following statement is wrong, all data in the same row. If so, f Math Formula Node should do the trick:

If not, can you share the data or a sample of it please?

Best
Mike

2 Likes

Please see example

and node

4 Likes

Hello @Pietro_Zaza1
I guess that you are working on different products as well. You can take a look into the following post. This may be useful for your use case:

As @mwiegand commented, can you provide a mock sample data + expected results?

BR