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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
haykp
Helper I
Helper I

Importing folder takes very long

Dear Community,

 

Please help to understand why importing folder takes so long and how I can speed up.

 

I have some folder hierarchy which contains neede csv files. The csv files are located below 3 levels of hierarchy. So I import the top folder hierarchy than in Transform gui 

a) filter all .csv files ( takes really long to filter)

b) filder all the files which start with the given name e.g. fileName_ (again this operation takes very long)

c) Press combine to combine all these file

 Here the powerbi got stack. 

It becoms extremly slow. 

 

Please can someone help to debug and speed up.

 

I make another experiment - copied all the csv files in the seperate folder and imported that folder. In such case powerbi works very fast and normal.

 

Thanks

Hayk

6 REPLIES 6
Alex_Sawdo
Resolver II
Resolver II

You could write a script that would combine each of the files into one, thus saving Power Query some processing power for doing all this for you. When pulling data, it's best to try and do all of your data collection/transformations as close to the source as possible and this is an excellent example as to why. If this isn't an option, you'd probably have to stick with multiple queries to break up the processing for a possible performance increase. 

Thejeswar
Super User
Super User

@haykp ,

One Option that I could think of is, Instead of selecting the folder at the top most hierarchy, You can create multiple connections ponting to the specific folders from where you want the csv files imported.

 

Once that is done, you can append all these queries together. This will make everrything a single query for you to report on

Thanks for the answer.

Can you please explain more about your suggestion?

Do you mean creating multiple Queryies?

Yes, You need to create multiple queries each referring to one folder from where you are getting the file. After doing the below steps, append the queries

 

a) filter all .csv files 

b) filter all the files which start with the given name e.g. fileName_ 

c) Append all the queries to make them into one

 

Thanks for the answer.

Acutally I am creating the same way, just each of the query takes ages. Also the a),b) steps takes too long.

@haykp 

When you split the folder path and pull the data using different queries, in a ideal case, the first 2 steps time taken should get decreased to very little. Even in that case it takes a lot of time, It should be that there are huge number of files in the location that you are trying to access. 

 

If you don't have huge number of files in that location, I don't think it is a problem with Power BI connector. Something else is causing this issue

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.