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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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