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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Michael_Hammer
New Member

Appending Files, but not a set # of files...

Good Morning PBI Community,

 

So, an ERP system of ours spits out files of roughly 10K lines in length via CSV format.  However, the number of files varies with the number of orders.  Sometimes it's 20 files sometimes 52 sometimes 9.  How can I get PBI or Power Query to append all of these regardless of the size.  Is there some sort of variable I could use?

 

Thanks,

Michael

1 ACCEPTED SOLUTION
markvsql
Resolver I
Resolver I

The From Folder option in Power Query/Power BI Desktop will stack all files in the folder you specificy (including any subfolders). If you put the files you want to import into that folder and use the From Folder option, you will get them all. Then you just need to "Combine" them via the button at the top of the column listing Binary values. Then you woudl just need to filter out the column headgins (if any) from the files after the first one since those will be listed as rows. You can find more details here: http://excelunplugged.com/2015/02/10/get-data-from-folder-in-power-query/

View solution in original post

1 REPLY 1
markvsql
Resolver I
Resolver I

The From Folder option in Power Query/Power BI Desktop will stack all files in the folder you specificy (including any subfolders). If you put the files you want to import into that folder and use the From Folder option, you will get them all. Then you just need to "Combine" them via the button at the top of the column listing Binary values. Then you woudl just need to filter out the column headgins (if any) from the files after the first one since those will be listed as rows. You can find more details here: http://excelunplugged.com/2015/02/10/get-data-from-folder-in-power-query/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors