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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PoovigaS
Regular Visitor

Regarding the ExportFilter functionality

I’m working with Power BI Embedded and trying to export a report (to PDF) while respecting the filters that a user applies in the embedded report. Is there any supported way to capture the user-applied filter state from the frontend and pass it into the export API? I tried using getFilters() on report, pages and visuals, but it isn't giving me the exact filter that users applied.

1 ACCEPTED SOLUTION
v-achippa
Community Support
Community Support

Hi @PoovigaS,

 

Thank you for reaching out to Microsoft Fabric Community.

 

When exporting an embedded report using getFilters() will not give you the full state the user sees.
The supported way to export a report exactly as the user sees it is to capture the report’s current state as a bookmark and pass it to the Export API. Please follow below steps:

  • On the client, wait until the report is fully rendered and call
    report.bookmarksManager.capture({ allPages: true, personalizeVisuals: true })
  • Send the captured state(base64 string) to your server.
  • In your ExportToFile API call, pass this value into defaultBookmark.state or per page bookmark.state.

This way the exported pdf matches what the user sees in the embedded report.

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

3 REPLIES 3
v-achippa
Community Support
Community Support

Hi @PoovigaS,

 

Thank you for reaching out to Microsoft Fabric Community.

 

When exporting an embedded report using getFilters() will not give you the full state the user sees.
The supported way to export a report exactly as the user sees it is to capture the report’s current state as a bookmark and pass it to the Export API. Please follow below steps:

  • On the client, wait until the report is fully rendered and call
    report.bookmarksManager.capture({ allPages: true, personalizeVisuals: true })
  • Send the captured state(base64 string) to your server.
  • In your ExportToFile API call, pass this value into defaultBookmark.state or per page bookmark.state.

This way the exported pdf matches what the user sees in the embedded report.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @v-achippa 

Thank you for the solution. It worked. I just wanted to confirm that once after the filter is applied and exported, is there limitations from powerbi side to not export full data instead it shows only the first few rows thats in viewport. It only exports the data that is currently loaded in the visual, not the entire dataset?

Visuals are rendered in batches (TOPN(501,...) for example - whatever is required to render all currently visible pixels.  If you want all the data, run a DAX query instead.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.