I have a dataset with tasks that have to be done, the tasks can only be done during 8 hours a day. Some tasks are larger than 8 hours so I want to split them up in rows of 8 hours. Also the targeted date has to be -1. I tried this on different ways, but I didn’t find a solution yet. It seems pretty simple to me but somehow I can’t get it done. Can somebody please help me?
Now I have another problem… I splitted the tasks in subtasks like you did, but it’s now also possible a task is in the weekend or on a holiday. On those days, no one is available so I duplicated the rows again and subtracted some days in a loop. Now some days are duplicate.
Now comes a problem, further on in the model. On the same days KNIME chooses the same most efficient option. I’m using a Sort to sort on the most efficient option per notification and GroupBy node to capture the first one. Now I get a duplicate option on the same day for two splitted tasks.
So my question is: is it possible to use the GroupBy node and tell it not to use the first option if it’s already in another group?
So I want to GroupBy and aggregate on distinct options. It would be amazing if someone can help me with this :).
I constructed a separate workflow that extracts holidays for a given year from a website. But you could also use your own list. And for some countries you would have to decide if it is really a holiday where offices would be closed.