Power Query Folder.Files

csotstot

New Member
Joined
Jun 1, 2017
Messages
24
Good afternoon...
I wanted to find out the mechanics of the Folder.FIles command.. I'm trying to buid some queries in Excel that pull files from within a folder hierarchy...Unfortunately the hierarchy is sub-optimal...There are 140 folders below the topmost folder (it's already 3 folders deep in the overall hierarchy), 120 of which are below the second level (20 folders). Total data in all folders is 8G.... It takes close to 30 minutes to compete a query that only gives a table of a file listing (with the default columns) across a 200 mb connection over VPN... I'm guessing the issue lies in recursion, but wanted to see if anyone knew precisely how the function works under the hood so that I can give a coherent explanation to my superiors for performance issues...
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,774
Messages
6,174,456
Members
452,566
Latest member
Bonnie_bb

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top