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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors