Forum Discussion
Anonymous
5 years agoNot applicable
Publish Power BI report with python as a data source
Hello Team I am using TM1 as a datasouce in power BI report using python script. The python script is working fine in desktop and fetching results. when i publish the report in web and switch of...
ibarrau
5 years agoSuper User
Hi! When you work with python scripts in Power Bi you need a data gateway to refresh your data. Specifically a "Personal" mode of the gateway. Power Bi will ask a VM (local or cloud) with the gateway installed to refresh the python and the whole power query script to refresh your data. The VM will require a python installation with the libraries you are using in the script.
Here you have more info about gateway: https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-personal-mode
I hope that helps,
P/D you can check more about python here: https://blog.ladataweb.com.ar/post/632504891894644736/qué-puedo-hacer-con-python-en-power-bi