Forum Discussion
Anonymous
7 years agoNot applicable
Data Sources with Data Gateway
Hi everyone, I create reports on my laptop and saves those reports on a network share from our company. The data sources for those reports are also on the shared folder, but when I connect to tho...
- Anonymous7 years ago
So it seemed to be that IT denied my access to those folders. They gave me access to the folder and I was able to use the UNC Path.
Nolock
7 years agoResident Rockstar
Hi Anonymous,
I'd like to recommend using parameters. You can create a parameter PathToYouStorage which you set in Power Query Editor to your x:\foo\bar\ and then you append the file name, see the screenshot.
Next, you load your file using the parameter like this:
let
Source = Csv.Document(File.Contents(PathToYourFolder & "fileName.csv"),[Delimiter=",", Encoding=1252])
in
Source
Then you publish you pbix to Power BI Service and change the parameter in the setting of your dataset.
More to this topic: Deep Dive into Query Parameters and Power BI Templates