Hi,
I’m pretty new to Knime but I would like to find out how I can calculate the week commencing date based on a column of dates.
For example if my date is 19/6/2020 then the week commencing date (Mon-Sat) should be 15/6/2020.
Thanks!
Hi,
I’m pretty new to Knime but I would like to find out how I can calculate the week commencing date based on a column of dates.
For example if my date is 19/6/2020 then the week commencing date (Mon-Sat) should be 15/6/2020.
Thanks!
What happens is the date is June 14 Sunday?
Do you want the previous Mon June 8th - Sat June 13 ?
or do you want the Mon-Sat which comes after which is June 15-June 19th?
Hi,
Try with the “Date&Time Extraction” node.
From the date you can extraxt week number and then with “Groupby” node group by week and manual aggregation select minimum of the date column.
Or you can extract day name an then filter mondays (or sundays)
Agree with above - I used the following seq. to get at your problem
See complete flow here:
Could you upload your workflow here or even better to the KNIME hub?
https://www.knime.com/blog/the-knime-hub-share-and-collaborate
yes 01_Generate_Fixed_Time_Intervalls_x 1.knwf (28.6 KB)
Was playing around with other joins here as I imagined what the solution was - but the flow at the bottom works to solve the problem
Hi @webstar,
seems fine to me. And it was marked as Solution so guess it’s works fine for topic creator as well
Br,
Ivan
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.