Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
be_better
Frequent Visitor

Can't save a dynamic function within Dataflow to access excel workbook in SharePoint

Context
I have several Excel (.xlsm) files located within a SharePoint folder

I am creating a Function that extracts the Worksheet names from each File. The Function works by looking at the filenames and then using that as a dynamic parameter at the end of the SharePoint URL path.

 

Issue

On desktop I have downloaded the folder of files and it works great. Within Dataflows, the function works as intended..great but I 

Can't save dataflow due to the error: "One or more tables references a dynamic data source"
I've also attempted RelativePath but it repeatedly stuck on a loop to ask me Credentials (although the url is correct)

 

Solution Attempt 1
Here is the regular function, which does work However when attempting to save, results in issue:  "Can't save dataflow" "One or more tables references a dynamic data source".

 

 

 

let
    Source = (file_name as any) => let
    Source = Excel.Workbook(Web.Contents("https://Client.sharepoint.com/sites/Host/Shared%20Documents/General/XXX/XXX/" & file_name), null, true),
  #"Removed other columns" = Table.SelectColumns(Source, {"Name"}),
  #"Filtered rows 1" = Table.SelectRows(#"Removed other columns", each Text.Contains([Name], "Sheet Name"))
in
  #"Filtered rows 1"

 

 

 

 
 

Solution Attempt 2

tried Relativepath

results in issue of repeaedly asking "The credentials provided for the Web source are invalid", & I configure my connection.

even though the URL is spits out does work

I also tried paramaterising the  "https://Client.sharepoint.com/sites/Host/" & "Shared%20Documents/General/XXX/XXX/"

 

 

 

(file_name as any) => let
  Source = Excel.Workbook(Web.Contents("https://Client.sharepoint.com/sites/Host/"
  ,[RelativePath="Shared%20Documents/General/XXX/XXX/" & file_name]), null, true),
  #"Removed other columns" = Table.SelectColumns(Source, {"Name"}),
  #"Filtered rows 1" = Table.SelectRows(#"Removed other columns", each Text.Contains([Name], "Sheet Name"))
in
  #"Filtered rows 1"

 

 

 

 

 

 

 
 
0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.