I have set of data combined from three different tables with a common identifier on each table. Here I would like to differentiate the columns I picked from each table with a unique header at the top and their respective column names below.
These are the base files. All these files have Position and owner name as an unique value. I want to combine them as a single file and have the file names as header as mentioned in the previous screenshot.
Sorry, I’ve been busy. Out of curiosity, why do you want to do this? This format will make to difficult, if not impossible to do any further processing/analysis of the table.
I tried a different approach—although you may have already found your answer, I wanted to give it a shot.
First, the sheet names are fetched. Then, the corresponding Excel files are read, and a Constant Value Column is added with the sheet’s name. Finally, the sheet names are used in the pivoting step.
For your convenience, I’ve uploaded the KNIME workflow and a screenshot of the resulting table.
Hope this helps! Let me know if you have any questions.