Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I'm trying to set up a custom function that dynamically changes the source of my query. Upon saving I get the error 'One or more tables references a dynamic data source'.
Looking for answers online I got the impression there might be some workarounds possible if you are using the Web.Contents function in combination with the RelativePath and Query arguments (although I may be misunderstanding this).
Is there a workaround to available when the AzureStorage.DataLake function is used?
(ADLSPathToLoadFrom) => let
Source = AzureStorage.DataLake(ADLSPathToLoadFrom),
...
Thanks for your response, @johnbasha33. When I save query you suggest (GetDataFromADLS), I still get the message 'One or more tables references a dynamic data source'. What am I doing wrong?
When using the AzureStorage.DataLake function in Power Query, the data source is considered dynamic, meaning it cannot be used within custom functions or parameterized queries directly.
However, you can work around this limitation by creating a function that accepts the ADLS path as a parameter and then using the function in your query. Here's how you can do it:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.