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
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
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.