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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
erosal84
Regular Visitor

Power BI Embedded API - How to export a filtered report?

My application displays a Power BI report from my workspace via the Power BI Embedded API.  My user has clicked an element of a bar chart visualization, which automatically filters the data on the other visualizations accordingly.  Now, she wants to export that filtered view to a PDF.  I've seen the code examples for doing an export to file, but that seems to imply just exporting the base report from the workspace.  How do I export the current view of the report, as filtered by the user?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @erosal84,

Perhaps you can take a look at power bi javascript api that use javascript to extract data from the current report and visauls:

PowerBI-JavaScript/wiki/Export-Data 

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
lnoguera
Frequent Visitor

I´m having the same issue when exporting a power bi embedded report to pdf. Even though I capture the current state of the report as a bookmark using the javascript sdk and then pass the bookmark state to the backend when exporting the report it only get exported in its initial state, meaning that when users interact with the report and the report data changes, those changes are not reflected in the exported file. Did you find a solution?

Anonymous
Not applicable

Hi @erosal84,

Perhaps you can take a look at power bi javascript api that use javascript to extract data from the current report and visauls:

PowerBI-JavaScript/wiki/Export-Data 

Regards,

Xiaoxin Sheng

Greg_Deckler
Community Champion
Community Champion

@dm-p Is this something you do?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hey @Greg_Deckler - no, I have no experience with embedded, unfortunately. Sorry 😞

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




@dm-p No worries, thought I would ask!



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.