Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ManjunathaEP
Helper II
Helper II

Import daily excel report and adding rows in same table

Hi, Thank you in advance for helping me on the below query:

Every day bank statements (excel) saves in a folder and that needs to be taken into power query and then accumulated the report on daily basis.

Ex: 1st Table imported and saved in query

Table1     
Bank referenceNarrativeCustomer referenceValue dateCredit amountDebit amount
CFRG3445NEFT from XYZ53451-May-223467 
ASUI44Recevied from ABC3462-May-226367 
LKJDS33CHQ from YEE23552-May-22 346
SDFOR44NEFT from MEP245112-May-2234536 

Then, next day query needs to import with below data and adding back to table 1

Table2     
Bank referenceNarrativeCustomer referenceValue dateCredit amountDebit amount
RDTJYE33NEFT from CS75683-May-225747 
SHJK55Recevied from MANJ56733-May-2245783 

 

Finally, I want the result and adding daily reports to the table 1 

Expected result in Table1 after added rows from next day (table2)

Bank referenceNarrativeCustomer referenceValue dateCredit amountDebit amount
CFRG3445NEFT from XYZ53451-May-223467 
ASUI44Recevied from ABC3462-May-226367 
LKJDS33CHQ from YEE23552-May-22 346
SDFOR44NEFT from MEP245112-May-2234536 
RDTJYE33NEFT from CS75683-May-225747 
SHJK55Recevied from MANJ56733-May-2245783 
1 ACCEPTED SOLUTION

Well if there are separate tables for separate files, you can use the below option to exclude the previous files form the refresh.

However in your case as it is only one table containing all excel files data, there is no way you can restrict the refresh for few.

It can be possible if you load the files once and keep the pbix file for future use, however you need to load the latest data as well and refreshing the data will delete the data of files which are not present at the folder loacation.

I hope I was able to clarify it for you!

View solution in original post

3 REPLIES 3
PC2790
Community Champion
Community Champion

Hello @ManjunathaEP ,

 

If you are consuming the files from a specific folder, you can simply write the logic to read all the files and combine them into 1.

Then based on the new files on day to day basis, you can simply refresh which would load the new files as I can see the new files have the same table structure as the original one.

The code to read through the files will look something like:

= Folder.Files(<Files Path>)

And the code to read the files would be:

= Table.SelectRows(<Previous Step>, each [Extension]=".csv")

This will work if you have csv file, you can change it accordingly.

You can the combine all the files using the button as shown:

PC2790_0-1652794501534.png

See if these steps work for you.

 

Thank you so much for your prompt reply and it helps me a lot. Is this works, if old files after completing a month deleted from folder? I would like to accumlate the all the data and store it in a query, whether those files exist or not in the folder. Request you to support  

Well if there are separate tables for separate files, you can use the below option to exclude the previous files form the refresh.

However in your case as it is only one table containing all excel files data, there is no way you can restrict the refresh for few.

It can be possible if you load the files once and keep the pbix file for future use, however you need to load the latest data as well and refreshing the data will delete the data of files which are not present at the folder loacation.

I hope I was able to clarify it for you!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.