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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
volyn
Frequent Visitor

Publish report with Python File data source

Hello,

 

I was asked by my colleague about option to publish report to POWER BI service, which data source is Python script. He used Python source script for loading SPSS files from folder. In that folder are each day new SPSS files, so he needs to schedule refresh at POWER BI service site.

 

Any idea how to do that please?

 

Thanks a lot

 

2 ACCEPTED SOLUTIONS
AlexisOlson
Super User
Super User

For it to work in the service, you have to be able to connect to the data source somehow. Python scripts can still work in the service but the data has to either be stored in the cloud or else you'll have to set up a data gateway to read from your local source.

View solution in original post

v-chenwuz-msft
Community Support
Community Support

Hi @volyn ,

 

You need to install a personal gateway. Only personal gateway supports python script.

One more thing, for the Python scripts to work properly in the Power BI service, all data sources need to be set to public.

vchenwuzmsft_0-1637050476276.png

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-in-query-editor#using-python-i... 

 

Best Regards

Community Support Team _ chenwu zhu

 

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

View solution in original post

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @volyn ,

 

You need to install a personal gateway. Only personal gateway supports python script.

One more thing, for the Python scripts to work properly in the Power BI service, all data sources need to be set to public.

vchenwuzmsft_0-1637050476276.png

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-in-query-editor#using-python-i... 

 

Best Regards

Community Support Team _ chenwu zhu

 

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

AlexisOlson
Super User
Super User

For it to work in the service, you have to be able to connect to the data source somehow. Python scripts can still work in the service but the data has to either be stored in the cloud or else you'll have to set up a data gateway to read from your local source.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.