Power BI Connections and parameters

pjhowcroft

New Member
Joined
Mar 26, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
so ive trawled over google and have got to a point i cant get pass. so..
1. i have a parameter that lists and selects files from a folder
file list query (parameter uses on this)
let
Source = Folder.Files("\\BAESTNWAR003v01\Warton2_phillip.howcroft$\Documents\Availability - New Capability\OO_Conversion\Old"),
#"Added Custom" = Table.AddColumn(Source, "File", each [Folder Path]&[Name])
in
#"Added Custom"

2. i then have a query that uses the parameter to selct a file i want to use;
let
SolutionPath=FileList,
Source = Excel.Workbook(File.Contents(FileList), null, true),
Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Sheet1_Sheet, [PromoteAllScalars=true])
in
#"Promoted Headers"

the solution path allow me to check that what i have selected is being passed to the source but it errors out. if i point it direct at that file it loads correctly when i use the parameter it gets the useless error;

Formula.Firewall: Query 'InputFile (2)' (step 'Source') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.

ive cleared permissions and everything, it doesnt work, yet everything i can fins on the web says it should.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,721
Messages
6,174,096
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top