Forum Discussion

DavideBono97's avatar
DavideBono97
Helper I
2 months ago
Solved

Power BI Embedded Export ignores programmatically set filters in Bookmark state

Hi

We are using Power BI Embedded with the Export to File API and passing a fully precomputed bookmark state inside the export request payload.

Our export request looks like this:

{
  "format": "PDF",
  "powerBIReportConfiguration": {
    "datasetToBind": "xxxx",
    "identities": [
      {
        "username": "xxxx",
        "roles": ["xxxx"],
        "datasets": ["xxxx"]
      }
    ],
    "pages": [
      {
        "pageName": "xxx",
        "bookmark": {
          "state": "<compressed bookmark state>"
        }
      }
    ]
  }
}

 

I observe the filters applied by user (via slicers/UI) are correctly included in the exported result, but the filters applied programmatically with Api setFilters() not included
How can I include filters set via API as well?
Thanks

2 Replies