How do I join multiple files (or in this case CSVs) into 1 file? I’m new to Knime so I apologize if this is a common knowledge. I’ve been reading posted topics but I can’t find a direct answer to my problem. My problem is — I have at least 12 CSVs that I want to join. I want to join them by their unique IDs and combine the columns in the output file. Here’s a sample of the data:
File 1
As you are new to KNIME I will take you through it and tell you how you can modify it for your own needs.
First thing you need to do is replace the Table creator nodes with CSV reader nodes. To add all of them into the Concatenate node you will need to right click on the Concatenate node and select ‘add Input port’ - keep doing this until the number of input ports matches the number of CSV reader nodes you have. when that is done attach a line from each CSB reader node to an empty Concatenator node input port. Execute the Column Resorter node - and you are done. the Output should be what you require.
Things to note:
in your examples you gave the joining column name is called ‘id’, if that is not the case you will have to make adjustments by changing ‘id’ to what every it is in: Group Loop Start Node, Table Row To Variable node and the Constant Value Column node.
If you have more or less .csv’s then remove them or add them to the flow remembering to right click on the Concatenate node to add or remove the input ports.
Frank
One more thing - I broke my rule today and have a loop within a loop in a KNIME flow. But, I only had my lunch hour.