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
otexugo
Regular Visitor

Export embedded report with filters

Hey, everyone!

 

I have an embedded report where the user can click on a point in the chart and/or select which data will be used in the sidebar "Filters". When I try to export the report to PDF with the filters applied, it doesn't work. My client makes a request to my API, which in turn makes the request to the PowerBI API on the route `v1.0/myorg/groups/${groupId}/reports/${reportId}/ExportTo`.

 

I tried to find a solution, but I'm a bit lost on what to do. When retrieving the filters applied to the report, I get filters like:

 

[
    {
        "$schema": "http://powerbi.com/product/schema#basic",
        "target":
        {
            "table": "companies",
            "column": "status"
        },
        "filterType": 1,
        "displaySettings":
        {
            "displayName": "Company Status"
        },
        "operator": "In",
        "values":
        [
            "active"
        ],
        "requireSingleSelection": false
    },
    {
        "$schema": "http://powerbi.com/product/schema#basic",
        "target":
        {
            "table": "companies",
            "column": "size"
        },
        "operator": "In",
        "values":
        [
            "500-1000"
        ]
    }
]

 

The first one was obtained through the `getFilters` method of the report. The second one I build from the dataPoints obtained from the click on the chart.

 

Is there any way to pass these filters to export the report as a PDF?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

yes there is, but it is your responsibility to capture the user input and then to apply the appropriate filters when you call the export API.

 

Reports - Export To File In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

Note that filters are applied on report level.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

yes there is, but it is your responsibility to capture the user input and then to apply the appropriate filters when you call the export API.

 

Reports - Export To File In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

Note that filters are applied on report level.

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.