Forum Discussion

doritilto's avatar
doritilto
Regular Visitor
1 year ago
Solved

Combine multiple sheets from Excel File

Hi,  I want to combine the below 4 sheets of the excel file.       When I go to the data column I can only see the below:     How can I combine those sheets?
  • Anonymous's avatar
    Anonymous
    1 year ago

    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):

    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):

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

    Result:

    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.