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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.