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
majudd
Regular Visitor

Using python pptx Presentation() function with Power BI

Is there a function within the python pptx library to recognize a Power BI page in a PPT and modify it? prs.slides.shapes is not recognizing the Power BI insert as a shape.

 

In particular, I am looking to  write a python script that reads in a PPT, recognizes the Power BI Add-in, changes it's setting from "Live data" to "Public Screenshot", and then writes it out with a new file name.

1 ACCEPTED SOLUTION
v-sdhruv
Community Support
Community Support

Hi @majudd ,

Python has a library, PBIXRay designed to parse and analyze PBIX files, which are used with Microsoft Power BI.
You can learn more about it here.

https://pypi.org/project/pbixray/

For the help regarding writing a python code, you can reach out on Python forum

https://python-forum.io/
Hope this helps!

View solution in original post

1 REPLY 1
v-sdhruv
Community Support
Community Support

Hi @majudd ,

Python has a library, PBIXRay designed to parse and analyze PBIX files, which are used with Microsoft Power BI.
You can learn more about it here.

https://pypi.org/project/pbixray/

For the help regarding writing a python code, you can reach out on Python forum

https://python-forum.io/
Hope this helps!

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.