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
bleow
Frequent Visitor

Python integration into Excel's Power Query

Power BI Desktop has an option to run Python scripts in Power Query:

Screenshot 2021-12-08 192527.png

 

Can I find the same option in Excel's version of Power Query?

Untitled.png

 

My business requirement is to connect to raw data hosted as Sharepoint Excel sheets (exported from an SAP database), clean the data (the cleaning will be done most easily in Python + Power Query), then host the final cleaned data as an Excel sheet for end-users to view.

2 REPLIES 2
Anonymous
Not applicable

Hi @bleow ,

 

Please refer to this video: Setting up R and Python in Microsoft Excel

 

 

For more information:

https://towardsdatascience.com/how-to-supercharge-excel-with-python-726b0f8e22c2

Reading an excel file using Python openpyxl module - GeeksforGeeks

 

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

Hi, thanks for the support. Is there any way to integrate Power Query into this workflow? We are still undecided on using a hybrid of Power Query and Python to accomodate users who may not be familiar with coding.

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.