Forum Discussion
ngadiez
8 years agoHelper II
Refer to a parameter for Comma-Separated Values data source
Hi Everyone, I cannot find a way to refer a parameter to the file path parts. Is there any way to do this? Or Power BI Desktop Developer has oversight of this.
ngadiez
8 years agoHelper II
Thank you so much for your help.
I have done my parameter ValuationDate and it is a number.
IT is the current month in the form of YYMM. Y stands for year, M stands for month.
Every month there will be new file in the folder with something like Report_1710.csv
I have tried
Source = Csv.Document(File.Contents("C:\Report_" & Number.ToText(ValuationDate) & ".CSV"),[Delimiter=",", Columns=76, Encoding=1252, QuoteStyle=QuoteStyle.None])
but it is still failed.
Thank you so much again for your help.
Phil_Seamark
8 years agoMicrosoft Employee