Power query refresh running unusably slow.

SammMcCandless

New Member
Joined
May 17, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have several data files in a standard format (xlsx files, 1 tab (all named the same), 4 columns of data each (all common headers(Owner, Supplier, Amount and Account)) - varying numbers of rows in each. These files are in a folder on sharepoint (no option to save these outside of here for this piece of work). All files together will be around 400k rows of data.

I have used power query to get data from this folder, and combine the files, then perform some further cleaning on the data, however the refresh rate is so slow (5+ hours before crashing out (I left it runnign one night just in case!)) that it is unusable. The same M code works on a much smaller sample (2 files of same format rather than 35, and fewer rows in each) so assume its not an error as such, but wondering if the slow rate is due to getting data from sharepoint, or something else I'm trying to do!

Any help greatly appreciated. Some screenshots/examples below (source data adv. edit is the file with the main work in it), but let me know if more info needed. Thanks

(ps. if I'm using list.buffer and table.buffer incorrectly, I will gladly take any tips, but the issue exsisted before including these, so taking out might not solve my issue)
 

Attachments

  • Queries.PNG
    Queries.PNG
    6.7 KB · Views: 11
  • Procurement raw data Ad edit..PNG
    Procurement raw data Ad edit..PNG
    9.9 KB · Views: 16
  • Source data Adv. Edit.PNG
    Source data Adv. Edit.PNG
    118.1 KB · Views: 16
  • Suppliers to Exclude Adv Edit..PNG
    Suppliers to Exclude Adv Edit..PNG
    16.8 KB · Views: 16

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Is the long refresh time a new development or has it been like that since you began creating this file?

I would try running the process for each of your 35 to make sure that they are individually successful. If successful, it's not a connection issue. If not successful, you have a corrupt or wrong file on your Sharepoint.
Also look at the 4 columns in each of your 35 sheets to make sure the entry of them is consistent in formatting. Could there be a Supplier populated in the Amount, just as an example.
After that, it would be a API/Connectivity issue. If you are able to access the files from the network folder they are housed on rather than through the Sharepoint link, that might be a better route for success.


Just the things that come to my mind. Also, I've stopped using Buffers. I've not seen much value when connecting to Excel or CSV files.
 
Upvote 0
Is the long refresh time a new development or has it been like that since you began creating this file?

I would try running the process for each of your 35 to make sure that they are individually successful. If successful, it's not a connection issue. If not successful, you have a corrupt or wrong file on your Sharepoint.
Also look at the 4 columns in each of your 35 sheets to make sure the entry of them is consistent in formatting. Could there be a Supplier populated in the Amount, just as an example.
After that, it would be a API/Connectivity issue. If you are able to access the files from the network folder they are housed on rather than through the Sharepoint link, that might be a better route for success.


Just the things that come to my mind. Also, I've stopped using Buffers. I've not seen much value when connecting to Excel or CSV files.
Thanks - the steps I built in worked when the folder only contained 1 or 2 files, (I built it on a smaller number to test) and the issue arose when the folder contained all the files it does now - going through and checking each works properly is a good shout, will take a look at that, thanks.
 
Upvote 0

Forum statistics

Threads
1,216,499
Messages
6,131,012
Members
449,613
Latest member
MedDash99

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