Forum Discussion

pkoetzing's avatar
pkoetzing
Advocate III
9 years ago
Solved

How to switch sources within sharepoint folder

I'm using an Excel file with various tables as input source to my queries. As long as this file is stored on my local drive, I can simply switch to another file using "data source settings" - "change...
  • pkoetzing's avatar
    9 years ago

    Just figured it out myself: Goto "Query Editor". On "Manage Parameters" select "New Parameter" and enter a name, a list of values and a current value. Then in "Advanced Editor" simply refer to that parameter, e.g.

     

        File = Source{[Name=MyFileParameter,#"Folder Path"=MyPathParameter]}[Content]