Hello, I have the below code where I am trying to create a dynamic folder path, however it is erroring when I go to combine the content with "Expression.Error: We couldn't find an Excel table named 'FolderPathVariables'." The source files clearly do not have an excel table named FolderPathVariables, how do I get this code to ignore looking for the table name and just return the data on the first worksheet? Have tried using {0}[Content] but still could not get it to work.
Power Query:
let
Source = Folder.Files(Excel.CurrentWorkbook(){[Name="FolderPathVariables"]}[Content]{0}[FolderPathVariable]),
#"Filtered Rows" = Table.SelectRows(Source, each ([Name] = "Receipts.xlsx")),
#"Removed Other Columns" = Table.SelectColumns(#"Filtered Rows",{"Content"})
in
#"Removed Other Columns"