Power Query showing 3000 columns in my "TransformFile" table

Guitarmageddon

Board Regular
Joined
Dec 22, 2014
Messages
162
Hello everyone. I have a query with a rather large amount of applied steps, which is applying to a large number of individual files. Sometimes, it can take as long as 30 minutes to go through all the steps. Knowing what I know now about PQ, i would probably do things a bit differently, but I suppose thats a story for a different day.

When going through making some changes for the process owner, I realized that in the "Transform File" column before expanding all my data sources, excel is seeing there are 3000 columns in each file. Is this normal behavior? I wonder if this is also adding to my processing time? As you can see below, here is a small sample of the individual files, and when I click into the table data, the preview shows it going all the way to 3000 columns.

1741606573482.png


And here, out to 3000 columns. I only have data within the first 6 of any of these files.
1741606647859.png


And once you expand that column, it only does find my 6 columns. Is this much about nothing and just something that power query shows you upon the import?
1741606772480.png


For what its worth, heres what advanced editor shows for the first several steps involving the import etc
1741606926085.png
 
Your table expansion step specifies only 6 columns, so that's what you get. The most likely cause of the 3000 is that the workbooks have a deemed 'used range' greater than is actually the case - often happens when workbooks are manipulated to remove a load of data, or someone adds formatting to a cell somewhere way beyond the actual data by mistake.
 
Upvote 0

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