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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.