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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
alexandrejdeos
Regular Visitor

Export Reports with Actual Data Power Bi from API

We have implemented the export of the Power BI file using the ExportReports API (https://learn.microsoft.com/pt-br/rest/api/power-bi/reports/export-report). However, the return does not consider the data segmentation selected by the user with the current values, exporting the file in PDF/PPTX disregarding the filtered data in the segmentation with the default data. We did not identify in the documentation the procedure that should be implemented. How can we implement the export considering the current data selected by the user?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

When you export via the API there is no "user" and no "user selections" .  You can specify report level filters or bookmarks.

View solution in original post

6 REPLIES 6
v-nokumar
Employee
Employee

Hi @AmosHersch ,

Could you please give me an example to bookmark using javascript API? So, I will get better image for this?

Thanks

v-nokumar
Employee
Employee

Hi @lbendlin ,

To pass value in Report Level Filters, we need to know what value is selected and how can we achieve that selected values at run time.

 

Thanks

You can use bookmarks for that purpose.

If you have an app embedding the report then you can capture the report state as a bookmark using Javascript API, and pass the captured bookmark state to the API.

Then use Power BI for the export. With Power Automate there is no filter context.

lbendlin
Super User
Super User

When you export via the API there is no "user" and no "user selections" .  You can specify report level filters or bookmarks.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.