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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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
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 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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