Icon

Challenge 2 - Split File and Save Into Subfolders

Split File and Save Into Subfolders - Solution

Solution to Just KNIME It! challenge #2.

Reads sales dataExtracts year tocreate foldersand months forfilenamesConverts String containingdates to Date typeThe Group Loop gets all rows for agiven month ofa giver year at onceThe year at the 1st rowbecomes a path flow variableConverts year (Integer)to String to create folder pathsA path to a filenameis created with year andmonth dataCreates paths with yearsData is written toCSV fileGroup Loop is closedRemoves Year and Month columnsCSV Reader Extract Date&TimeFields String to Date&Time Group Loop Start Table Rowto Variable Number To String Create File/FolderVariables String to Path CSV Writer Variable Loop End Column Filter Reads sales dataExtracts year tocreate foldersand months forfilenamesConverts String containingdates to Date typeThe Group Loop gets all rows for agiven month ofa giver year at onceThe year at the 1st rowbecomes a path flow variableConverts year (Integer)to String to create folder pathsA path to a filenameis created with year andmonth dataCreates paths with yearsData is written toCSV fileGroup Loop is closedRemoves Year and Month columnsCSV Reader Extract Date&TimeFields String to Date&Time Group Loop Start Table Rowto Variable Number To String Create File/FolderVariables String to Path CSV Writer Variable Loop End Column Filter

Nodes

Extensions

Links