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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.