I have a set of queries, and one of them is a “source data” query which most of the other queries reference.
This source data query looks at a folder and appends all the files within it.
My issue is… whenever I make changes to the queries that reference the source data, it becomes unbearably slow. And I can see in the bottom right that it’s appending all the files again.
Just wondering what solutions are available? I can’t imagine I’m the only person to experience this issue.
Ideally I’d like to have one source query, and for it to “load” the data for the other queries to use. And if no files or added or changed within the folder, it shouldn’t need to append all the files again.
What you see in the Power Query Editor is a preview of the data, no data is actually brought in untill you select “Close & Apply”. I can imagine that some transformation you are doing further downstream requires ‘more data’ for the preview and that is triggering the “source data” query…
You could limit the data you are bringing into the “source data” query during the design phase to improve the ‘user experience’ BUT don’t forget to remove that once you are all done…
I don’t think limiting the data brought into the source data is applicable to my use case. As I need all of the data in there, as there’s various columns with certain fields (that vary across all rows within all of the files) that all need to be captured within the design of the queries.
What I’m trying to move away from is the repeated “data load” of each query. As when you reference a query, I believe you’re referencing all the applied steps within that query - including the initial data load.
I guess you have one option left. Add a buffer step by pressing the fx in front of the fomula bar, that returns the previous step name, enter the function like so: Table.Buffer( YourPrevStepNameHere)
Dataflows are great to offload some of the work especially if you need those tables more than once and/or in multiple models.
As for Buffering, you would buffer the result of Q1. Add a manual step to that Query by pressing the fx in front of the fomula bar, that returns the previous step name and wrap: Table.Buffer around it.
Hello @Callum173, just following up if the inquiry was solved?
We’ve noticed that no response has been received from you since a few days ago. In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.
Hi @Callum173 did the response above help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark as solution the answer that solved your query. Thanks!
Hi @Callum173, due to inactivity, a response on this post has been tagged as “Solution”. If you have any concern related to this topic, you can create a new thread.