Forum Discussion

Unicorn_Tech's avatar
Unicorn_Tech
Resolver I
5 years ago
Solved

Combine files in a folder (Get Data)

Hi.  I have a folder of many .csv files, that I want to combine into one table.

 

My problem is that when it gets combined, it simply repeats the headers as the combined data. I can't figure out what else to do here.

 

 

 

 

  • Unicorn_Tech 

    1. I hope you are following below steps. First go to New Source and then select Folder

     

     

    2. Then below window will appear please select combine and trasnform data option

     

    3. In third screen select the source sheet and click on ok. PowerBi automatically will combine files with including header from each file.

6 Replies

  • negi007's avatar
    negi007
    Community Champion

    Unicorn_Tech 

    1. I hope you are following below steps. First go to New Source and then select Folder

     

     

    2. Then below window will appear please select combine and trasnform data option

     

    3. In third screen select the source sheet and click on ok. PowerBi automatically will combine files with including header from each file.

    • Unicorn_Tech's avatar
      Unicorn_Tech
      Resolver I

      Hi negi007 
      Thank you for the pictures and steps.  I had been doing it correctly, apparently, but the first folder I wanted to apply it to, didn't combine properly.  Skipping this folder, and following your steps, is letting me combine it.

       

       

      • negi007's avatar
        negi007
        Community Champion

        Unicorn_Tech please mark my response as solution if has helped you in resolving the issue and also to close the thread.

    • Unicorn_Tech's avatar
      Unicorn_Tech
      Resolver I

      I'd like to do that - can you give me more info? I see the option to Use First Row as headers, or Use Headers as First Row.  Neither of those are suitable, as the first option just takes the column headers and puts them in first row data, and the second option replaces my header with data.

       

      How do I edit the sample query?