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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors