This workflow demonstrates the usage of a recursive loop for inventory cover calculation.
The algorithm calculates the cover for an inventory. For each week, we have end inventory and consumption and calculate the number of weeks the end inventory lasts.
We do this by going through the table row by row and each time:
- We check if it is the last row. If yes, we return 0.
- Otherwise, we take the cumulative sum of the consumption in the following weeks and
- count the number of weeks the inventory lasts.
- If at the end a fraction is left, we calculate that as well as (end inventory - consumption until then) / consumption of next week
To use this workflow in KNIME, download it from the below URL and open it in KNIME:
Download WorkflowDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.