Forum Discussion

erosal84's avatar
erosal84
Regular Visitor
5 years ago
Solved

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?

5 Replies

  • lnoguera's avatar
    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?