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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Unicorn_Tech
Resolver I
Resolver I

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_0-1599741803486.png

 

 

Unicorn_Tech_1-1599741881066.png

 

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@Unicorn_Tech 

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

 

negi007_0-1600062358497.png

 

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

negi007_1-1600062372536.png

 

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




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

6 REPLIES 6
negi007
Community Champion
Community Champion

@Unicorn_Tech 

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

 

negi007_0-1600062358497.png

 

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

negi007_1-1600062372536.png

 

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




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

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.

 

 

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




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

v-lili6-msft
Community Support
Community Support

hi  @Unicorn_Tech 

For your case, you could just create a simple power query function like below to get it

A cleaner way to import files from a SharePoint folder with a Power Query function

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

@Unicorn_Tech - Sounds like you need to edit the Sample File query and Promote Headers.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

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?

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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