Forum Discussion
Amir851
Helper I
7 years agoPass 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
Helper I
7 years agoHi 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
Memorable Member
7 years agoMy 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 ago
Helper I