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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
manuel_ak
New Member

Dynamic Data Source Modification

Hello Community,

 

For some reason, I keep getting this error in the image below: 

manuel_ak_1-1731970711974.png

I have modified my MQuery lines several times to fix this issue but not resolution please any help will be appreciated. please see the except from the advanced editor below: 

let
    FolderPath = "..............\Production\Tip OD- 16F",
    Source = Folder.Files(FolderPath),
    #"Filtered rows" = Table.SelectRows(Source, each ([Extension] = ".csv")),
    #"Imported CSVs" = Table.AddColumn(#"Filtered rows", "Custom", each Csv.Document(File.Contents([Folder Path] & [Name]), [Delimiter=",", Columns=10, Encoding=1252, QuoteStyle=QuoteStyle.None])),
    #"Removed First 4 Rows" = Table.TransformColumns(#"Imported CSVs", {"Custom", each Table.Skip(_, 4)}),
    #"Expanded Content" = Table.ExpandTableColumn(#"Removed First 4 Rows", "Custom", {"Column1", "Name", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10"}),
    #"Filtered Name" = Table.SelectRows(#"Expanded Content", each Text.StartsWith([Name], "20")),
#"Combined Tables" = Table.Combine(#"Filtered Name")
in
#"Combined Tables

 

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @manuel_ak ,

 

Please consider avoiding the use of dynamic variables as the file path for Folder.Files, as it may be treated as a dynamic data source and could cause issues during refresh.

 

let
    Source = Folder.Files("..............\Production\Tip OD- 16F"),
    #"Filtered rows" = Table.SelectRows(Source, each ([Extension] = ".csv")),
    #"Imported CSVs" = Table.AddColumn(#"Filtered rows", "Custom", each Csv.Document(File.Contents([Folder Path] & [Name]), [Delimiter=",", Columns=10, Encoding=1252, QuoteStyle=QuoteStyle.None])),
    #"Removed First 4 Rows" = Table.TransformColumns(#"Imported CSVs", {"Custom", each Table.Skip(_, 4)}),
    #"Expanded Content" = Table.ExpandTableColumn(#"Removed First 4 Rows", "Custom", {"Column1", "Name", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10"}),
    #"Filtered Name" = Table.SelectRows(#"Expanded Content", each Text.StartsWith([Name], "20")),
#"Combined Tables" = Table.Combine(#"Filtered Name")
in
#"Combined Tables

 

I think this link will help you a lot:

https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-data#refresh-and-dynamic-data-source...

 

Best Regards,

Bof

Anonymous
Not applicable

Pretty sure that means that you can't use a parameter in your data source in a Dataflow. 

--Nate

Please are you able to show an example of a modification that might work?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Users online (13,831)