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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Combine Two excel files with different column names and different amount of columns

Currently, I am receiving excel files from two different sources. I want to combine them for analysis on Power BI. However, because these reports are generated differently, the column/header names in the sheets are completely different and not all data would be present in both reports. For example, 

 

A

Account Manager                  Location                      Account Number               Sales

Jay                                          New York                                  1                         100000

 

B

Location Name                      Sales                                  Date                      Notes                Manager 

Philadelphia                            200000                             10/23/2019           improved          Adam

 

Account Manager=Manager, Location=Location Name, Sales=Sales

Date, Account Number, Notes are all unique categories 

 

I want a final dataset with the two reports combined and then the missing values would just be null/empty. 

 

Something like this:

 

 

 

help.jpg

 

 

How would I get the above submitted in as the data in order to create reports on Power BI?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

You can use try to use combine function to achieve your requirement:

let
    Source = Table.Combine({T1, Table.RenameColumns(T2,{{"Manager","Account Manager"},{"Location Name","Location"}})})
in
    Source

11.png

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

You can use try to use combine function to achieve your requirement:

let
    Source = Table.Combine({T1, Table.RenameColumns(T2,{{"Manager","Account Manager"},{"Location Name","Location"}})})
in
    Source

11.png

Regards,

Xiaoxin Sheng

labuser1235
Helper IV
Helper IV

You can do it easily in power bi edit queries. 

Change the column names in table 2 as per your requirement and re-arrange the order of the columns. 

After that, in Edit queries --> Home --> Click on Append Queries. Click on two tables and select table1. 

You will get your desired output then click on close and apply. 

snip.PNG

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors