Reply
doritilto
Regular Visitor

Combine multiple sheets from Excel File

Hi, 
I want to combine the below 4 sheets of the excel file.

 

doritilto_0-1729067319460.png

 

 

When I go to the data column I can only see the below:

doritilto_1-1729067348882.png

 

 

How can I combine those sheets?



2 ACCEPTED SOLUTIONS
bhanu_gautam
Super User
Super User

@doritilto , Go through this video

 

https://www.youtube.com/watch?app=desktop&v=gQo5coD9c4M




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

v-yajiewan-msft
Community Support
Community Support

Hi @doritilto , hello bhanu_gautam, thank you for your prompt reply!


I found a similar post and tested it based on the steps outlined above, which worked well. You can refer to it.

 

1. After connecting to the spreadsheet, right-click the file name and select Transform Data (don't select each individual sheet):

vyajiewanmsft_0-1729493523664.png

2. Modify the M code by changing the second argument to "true" (prevents repetition of column headers):

 

=Excel.Workbook(File.Contents("C:\Users\Administrator1\Desktop\multiple_sheets_same_structure.xlsx"), true, true)

 

3. In the Data column, click the Expand icon (double arrow):

vyajiewanmsft_2-1729493634032.png

4. Uncheck "Use original column name as prefix":

vyajiewanmsft_1-1729493605284.png

Result:

vyajiewanmsft_3-1729493672846.png

Similar post for your reference:

Solved: Combining Data From Multiple Worksheets Into one t... - Microsoft Fabric Community

Best regards,

Joyce

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yajiewan-msft
Community Support
Community Support

Hi @doritilto , hello bhanu_gautam, thank you for your prompt reply!


I found a similar post and tested it based on the steps outlined above, which worked well. You can refer to it.

 

1. After connecting to the spreadsheet, right-click the file name and select Transform Data (don't select each individual sheet):

vyajiewanmsft_0-1729493523664.png

2. Modify the M code by changing the second argument to "true" (prevents repetition of column headers):

 

=Excel.Workbook(File.Contents("C:\Users\Administrator1\Desktop\multiple_sheets_same_structure.xlsx"), true, true)

 

3. In the Data column, click the Expand icon (double arrow):

vyajiewanmsft_2-1729493634032.png

4. Uncheck "Use original column name as prefix":

vyajiewanmsft_1-1729493605284.png

Result:

vyajiewanmsft_3-1729493672846.png

Similar post for your reference:

Solved: Combining Data From Multiple Worksheets Into one t... - Microsoft Fabric Community

Best regards,

Joyce

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

bhanu_gautam
Super User
Super User

@doritilto , Go through this video

 

https://www.youtube.com/watch?app=desktop&v=gQo5coD9c4M




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)