Hello you all,
I am quite new to Knime after having done some experiments I would like to create my first workflow. My task is the filling a table with the values from a given csv file (sales data). The data has product numbers, day of sales (date) and value in USD and Items sold. I have to generate some values which are not within the file. Also I need to provide for each row the information from when the data set is valid.
For example the data set is from week 13 whcih starts at 23.03. and ends 29.03. However this information is not provided and needs to be calculated from the date (day of sales)
Day of sales … Date from Date to
25.03.2020 23.03.2020 29.03.2020
28.03.2020 23.03.2020 29.03.2020
and so on…
Is there a knode I can use for the calculation? How can I add a column to a table with a constant value in each row?
from what I understand you have multiple objectives as you wrote “have to generate some values which are not within the file.”. Though, you want to first calculate the number of the week based on a date.
The Extract Date&Time Fields node is a perfect match here.
Thank you very much for your help, but this what I already tried. Waht I need is that I need to calculate the start date of a week and the end date of a week based on either a date in that week or from the weeknumber.
So basically I have to go the other way around as suggested.