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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors