Concatenating old rows in refreshed table

Hi,
I am using excel reader to read a table, performing few column rename operations. I want to store and concatenate the older data every time I refresh the excel reader node.

It is required because my excel reader will contain different set of rows every week and I not only want to refresh the new data but also archive the older one.

Excel Reader Data in Jan W4:

Date Product Type Parameter Jan-22 Feb-22 Mar-22 Apr-22 May-22
Jan W4 Total % Diff wrt calculated 0.265771787 0.585784756 0.416955454 0.59382522 0.599001652
![image 690x41](upload://mRRyqHMFbp1Kheq1FxPSAIFbfEc.png)

Data after few nodes and manipulation in Jan W4:

Date Product Type Parameter M0 M1 M2 M3 M4
Jan W4 Total % Diff wrt calculated 0.265771787 0.585784756 0.416955454 0.59382522 0.599001652
![image 690x41](upload://wiUffAeJtQd4ciBPPRDbTf3nBEG.png)

Excel reader data in Feb W1:

Date Product Type Parameter Feb-22 Mar-22 Apr-22 May-22 Jun-22
Feb W1 Total % Diff wrt calculated 0.692263378 0.245442147 0.215063202 0.971311975 0.61619072
![image 690x43](upload://3KA9wTQti7Clx4Hq6GmODQdfx3a.png)

Data after few nodes and manipulation in Feb W1:

Date Product Type Parameter M0 M1 M2 M3 M4
Feb W1 Total % Diff wrt calculated 0.692263378 0.245442147 0.215063202 0.971311975 0.61619072
![image 690x43](upload://og9DIZUrfAuYPf5RU6CdJ0mWv73.png)

Final table which is needed:

Date Product Type Parameter M0 M1 M2 M3 M4
Feb W1 Total % Diff wrt calculated 0.692263378 0.245442147 0.215063202 0.971311975 0.61619072
Jan W4 Total % Diff wrt calculated 0.265771787 0.585784756 0.416955454 0.59382522 0.599001652
![image 690x61](upload://bbXQnxoFvyXmKFFnYUTTICyfa4f.png)

Is there any way to achieve this output?

Then you probably neet to write your “old” data to a temp folder and read it from there and then concatenate your new file every time you update the data. Otherwise you just would overwrite your current file
br

The Excel Reader (as any reader node) reads the data that’s in the file at that moment. We don’t want it to retain any data.

Ideally you’d get the full data set every week, but if that’s not possible, Daniels suggestion is the way to go.
Alternatively you can append the new data to the same sheet with an Excel Reader and read only this file. You’d then need to make sure to prevent duplicates from happening though, if you execute the workflow more than one time per week.
Here’re the important settings:

Thanks for both the suggestions. Both worked. After collecting the data I am removing duplicates before using power bi visualisation tool. Thanks! :slight_smile: Really helpful

1 Like