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

Python Integration

Hi, we are working on a report that has pretty involved DAX queries potentially. We would like to be able to leverage Python(if possible) rather than use complex DAX. We have never used Python within Power BI previously. Is it possible to leverage Python such that if we need to filter a report by year, Python can dynamically perform some processing based on the user selection and put the end resultant data into a table.

 

Thanks

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@alongi , You can replace complex columns, not measures using Python.

Share what is measure you think are complex. Maybe someone here can help you with optimized measures.

 

refer if needed

PowerBI Abstract Thesis: How to make Python work with Power BI: https://youtu.be/5D0BkNsu5CM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@alongi , You can replace complex columns, not measures using Python.

Share what is measure you think are complex. Maybe someone here can help you with optimized measures.

 

refer if needed

PowerBI Abstract Thesis: How to make Python work with Power BI: https://youtu.be/5D0BkNsu5CM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Appreciate the feedback, we actually figured out the DAX solution

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.