Forum Discussion

mail2vjj's avatar
mail2vjj
Icon for Helper III rankHelper III
9 years ago
Solved

Combine data from multiple excel file into one

I have run out of rows in my excel file.

 

I started a new excel file with the same table but with new data.

 

I need data from both these files in my data model.

 

How can I do that?

 

Thanks,

 

Vishesh Jain

  • Hello Vishesh,

     

    I've created an example that you can download from my onedrive. 

     

     

    You will find images with the steps (1 to 4), a folder with both excel files, and the pbix file 😄

     

    If you experience any more dificulties, please tell.

     

    Regards,

    Salvador.

8 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    Use a Folder query and put both files in the same folder.

     

    Alternatively, you could use an Append query.

    • mail2vjj's avatar
      mail2vjj
      Icon for Helper III rankHelper III

      Hi smoupre,

       

      Thanks for replying.

       

      I did use Append queries and it did the work I wanted to do.

       

      However, I still don't know how to use Folder query, so if you could please explain that.

       

      Thank you,

       

      Vishesh Jain

  • Salvador's avatar
    Salvador
    Icon for Responsive Resident rankResponsive Resident

    Hello Visesh,

     

    In order to select a folder as data source, follow these steps. By doing that, if every excel in that folder has the same structure, you wouldnt need to use append :D

     

     

    • mail2vjj's avatar
      mail2vjj
      Icon for Helper III rankHelper III

      Hello Salvador,

       

      First of all thank you for your resoponse.

       

      I tried using your method and for some reason it is not working, maybe I am not doing the write thing.

       

      I am trying to combine data from these 2 files into a single table.

       

      For some reason, I am unable to attach my excel files in here, so I am pasting the content here.

       

      This is my first file named Book1.xlsx

      CustomerSalesQuantityUnit PriceUnit CostProduct
      A120.50.2Audio
      A240.50.2Video
      A360.50.2Camera
      A450.80.2Video
      B5510.5Audio
      B6321Camera
      B7710.5Audio
      B8421Audio
      B8421Camera

       

       

      This is my second file named Book2.xlsx

      CustomerSalesQuantityUnit PriceUnit CostProduct
      A9330.2Audio
      A10520.2Video
      A10250.2Camera
      A12620.2Video
      B14720.5Audio
      B14721Camera
      B15530.5Audio
      B16441Audio
      B18921Camera
      A20542Audio

       

      I am tryingt to combine data from these 2 files into a single file, but the steps you suggested in order to AVOID append queries, isn't working.

       

      It would be great if you could please help me out with this.

       

      Thank you,

       

      Vishesh Jain

      • Salvador's avatar
        Salvador
        Icon for Responsive Resident rankResponsive Resident

        Hello Vishesh,

         

        I've created an example that you can download from my onedrive. 

         

         

        You will find images with the steps (1 to 4), a folder with both excel files, and the pbix file 😄

         

        If you experience any more dificulties, please tell.

         

        Regards,

        Salvador.