Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
karun218
New Member

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 off my machine it is throwing error. I think it is reffering the istallation local machine.

how i can overcome the problem. Please help

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @karun218 ,

 

Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

 

Best Regards,
Winniz

ibarrau
Super User
Super 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

 


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.