Skip to content

Instantly share code, notes, and snippets.

@michaelvdnest
Created December 18, 2019 14:24
Show Gist options
  • Save michaelvdnest/d8114da348e057a3375518f699fc3180 to your computer and use it in GitHub Desktop.
Save michaelvdnest/d8114da348e057a3375518f699fc3180 to your computer and use it in GitHub Desktop.
Read a file path from an Excel range in power query to fix error [Formula.Firewall: Query references other queries, so it may not directly access a data source.]
/* Use function like this
Folder.Files(FilePath())
*/
= () => let
/* Source = File_Path, (Replace this line with the one below) */
Source = Excel.CurrentWorkbook(){[Name="File_Path"]}[Content], // File_Path is range name
Path = Source{0}[Column1] // Column1 is the name of the source table column
in
Path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment