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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hari27pn
Frequent Visitor

Merging three different files using Power Query in Power BI

My task is to fully automate procurement dashboard. The procurement team gets 3 excel files which contains only one common column. All other columns are different. In 1st excel - Purchase Doc., and in other 2 it is PO No. I know how to merge files when they have the same column headers. But my case here is different.

I need to merge this 3 excel files. I’m stuck here because I have used get data from folder option but after that I could only create one table. Plus I can’t use any other get data option because next month another set of raw files will come which needs to be added to the folder.

what I tried is after clicking on GetData->Folder->Transform. I removed all other columns just Binary and file name were present. Now on right clicking on Binary, there is an option of Add as new query. So i created 3 queries of my 3 tables. This would work now. But the thing is I don’t know by this way of Add as new query, I can automate the process and make it work again if i put more files in the folder next month.

I tried to watch every single video on youtube but they only explain merging when two files have same column names or when the columns are reordered or inconsistent(same column but slightly different headings).


Last solution Im thinking is to create a python code which would merge the 3 excels for me and place the merged file in the folder automatically.

3 REPLIES 3
some_bih
Super User
Super User

Hi @hari27pn check content on link https://goodly.co.in/tag/power-query/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






some_bih
Super User
Super User

Hi @hari27pn "same column but slightly different headings" did you try to rename columns to be the same in different tables and AFTER that merge as you need? Hope this help





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






No I wish to create a new table with the help of 3 excel files. I dont want to rename them as they are different columns. I want to merge the files sideways not downwards like we do Vlookup in Excel.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.