Logic-based calculation

Good afternoon everyone, how are you?

I have a calculation challenge, in short, where capacity is 0, the forecast needs to be added for the next day or the previous day. I will pass the cases 1 by 1 to you.

Case number 1:

On 10/30 I have a forecast of 12729 and a capacity of 0. Therefore, this value must be added for the next day, 10/31

image

Case number 2:

On 10/30 I have a forecast of 14263 and a capacity of 0. Therefore, this value must be added for the next day, 10/31, but on that day my capacity is also 0, so the values ​​must be added for the day 01/11.

image

case number 3:

On 10/30 we have a forecast of 2231 and capacity 0, it is the same as case number 1. However, on 11/02 we have a forecast of 8554 and 0 capacity, this value must be added to 11/03.
NOTE: This case could possibly be included in case number 1, but I thought it was important to highlight the possibility.

image

case number 4:

On 04/10 we have the forecast of 19703 and capacity 0, and it is the last day of the week, we do not have 05/10. In this case it must be added to the previous day on 10/03.
image

case number 5:

All days do not have Capacity so they can be deleted.

image

KNIME_project - Somase.knwf (54.1 KB)

The solution was to just put everything that was 0 as missing

1 Like

Glad you were able to find a solution :+1:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.