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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

how to synchronize slices when using PowerBIClient.Reports.ExportToFile to export PDF

Hi there -

I have a generic question about using PowerBIClient.Reports to export a report to PDF.    We are using Embedded for Customer model to provide a group of users to access the report.  The questions  is how to synchronize the slices users selected from the web page with the Power BI service when calling ExportToFile fuction.  For example, User A selected Midwest, and User B selected Northeast as they are seeing from each individual browsers, when calling ExportToFile, we are expecting to get two different PDFs reflecting different slice selections.  How this can be done?   My initial understanding is that an access token pregenerentated for each user would guarrantee this, but I found that ExportToFile function does not take any pregenerated token, which means the PDF expored are based on the same report saved in workspace, i.e. all users would get the same PDF no mater how the slices are selected

Thank you very much for any help one this.embedded.PNG

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to this thread:

https://community.powerbi.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/td-p/998370 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.