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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to combine multiple sheets from an Excel Workbook when the Headers are different

I have an Excel source file that has multiple Sheets Split by Year that I wish to combine into one query

 

i.e.

 

The first sheet has 12 columns 

 

Starting 1/10/19 - 1/11/19 - 1/12/19 etc to 1/9/20

 

The second sheet has 12 columns 

 

Starting 1/10/20 - 1/11/20 - 1/12/20 etc to 1/9/21

 

The first four columns in each sheet are the same i.e

 

Region

Customer

Delivery Model

Contract End Date

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

you could load the file on some free file sharing sites.

but perphs some other could give a better advice

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

It is not at all clear what you mean by the term combine.

There are several functions in Power Query that use this term: table.combine, List.Combine, reocrd.Combine, text.combine and maybe more ...

but maybe in your case, with a lot of imagination, what you need is the merge function between tables.

 

but if you don't provide enough information, I'm afraid you won't get any useful help ...

ciao

 

Anonymous
Not applicable

Rocco,

 

Thank you for your answer

Below are the top few lines of each sheet with customer names set to dummy ones

You will notice that only the headers are different on the date side

FY2020

Capture20.JPG

2021

Capture21.JPG

Anonymous
Not applicable

Ok.

With tables as images it is difficult (impossible for me) to work. I try to tell you verbally what should be done. If I understand correctly, you want to have the 2020 and 2021 data in the same table side by side. For this you should use the table.join function. If you also provide fake tables but they can be copied, I can show you how

Anonymous
Not applicable

Rocco

 

Thank you

 

Yes I want one query so the visuals can be filtered by year

 

How can I send a fake workbook so you can help me with table.join function?

 

Much appreciated

Gary

Anonymous
Not applicable

you could load the file on some free file sharing sites.

but perphs some other could give a better advice

Anonymous
Not applicable

Rocco,

 

Thanks for your guidance, with that and Google I have got it to work using Merge 🙂

 

Gary

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors