Forum Discussion

Amir851's avatar
Amir851
Helper I
7 years ago
Solved

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 ...
  • SteveCampbell's avatar
    SteveCampbell
    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.