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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
chillguin
New Member

Power BI API - Export PDF based on parameters.

Hello. 
I am currently in the research process of developing a system for my client to ship reports to customers.
I've close to no knowledge about Power BI. Which leads me to my explanation and question(s) 😄

 

I am considering doing the following:

Creating reports in Power BI for the client's benefit so management can use these in the web app i've developed. Using the embedded functionality that powerbi provides - which i've pretty much understood is solid and works fine.

But my client is also going to do a per customer PDF export of this report. So my thought was to utilize the Power BI API:


I read the documentation for the PowerBI API and i've understand that you can do Export to file(pdf), then poll to see if it is ready for download and finally get the filestream. However, i fail to see any way to make this kind of request using any sort of parameter other than the "reportId" which i assume is the actual id of the report. However I've found the PaginatedReportExportConfiguration in the docs which can contain a set of "ParameterValue". Is this the way to solve this? I like looking at examples and i have not found any so any example sourcecode would be more than welcome 😄

Am i correct in assuming i would be able to do a request to the Power BI API for a "Export Report as PDF File where customerid="1001" or whatever other parameter i want?

 

Or is this an impossible scenario?


Also, what sort of Power BI/Azure licenses,services and subscriptions would this required?











2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @chillguin ,

 

Here is the same thread for your reference, which is discussed in detail:

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


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

lbendlin
Super User
Super User

You can specify a report level filter, or a collection of bookmarks. You can also specify a collection of report pages if you don't want to export all pages.

 

Export report to PDF, PPTX and PNG files using Power BI REST API (Preview) | Microsoft Power BI Blog...

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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