Does Power Query support a mechanism for importing external files and use their content as query/function definition?
10:52 13 Aug 2026

Our team maintains plenty of power query based Excels. Over time, we developed few functions that are incredibly useful for repetitive tasks. These functions become more and more sophisticated, better at handling errors, have smarter defaults and perform better based on our own leaning curve.

Currently, we have to update these functions in each file manually if we see a benefit in updating them. Problem is that now we have different versions of the same function spread across different files if they weren't all updated.

While we make things copy-pasteable and adhere to certain internal standards, it's still a lot of effort updating each file one by one.

Having used other programming languages, this raised the question if there is a way to e.g. store the function definition outside in a file of some kind (plain text) and then import that file, holding the latest version of a function, into the Excel file where we want the function to be used by other queries.

I'm aware of the risk of breaking everything at once with a bad release, I'm aware of dependency hell, so no need to make this the subject.

powerquery