Forum Discussion
Amir851
7 years agoHelper I
Pass Python Variable as a query parameter in Advance Editor
Hi All, I am trying to create a query parameter for a variable named as start present in my Python script into Advance Editor in Power BI Desktop. Basically, my script is trying to extract data ...
- 7 years ago
My mistake, we lost the quitation marks. Try:
Source = Python.Execute( "import requests.. other code.... """ & MyVariable & """ .. other code.... "),
If this works I'll update the original answer.
Amir851
7 years agoHelper I
Hi SteveCampbell ,
Cant we pass it as a string like "2019/05/17 06:29" as a parameter instead of Datetime.
Because I run the same script in Jupyter notebook. It was working fine there without any issue.
Thanks
Amir
SteveCampbell
7 years agoMemorable Member
My mistake, we lost the quitation marks. Try:
Source = Python.Execute( "import requests.. other code.... """ & MyVariable & """ .. other code.... "),
If this works I'll update the original answer.
- Amir8517 years agoHelper I