'Power BI embedded report in Angular 7 code is not exported with visual filters applied

We have embedded Power BI report in Angular 7 code and when we try to export using Power BI provided service it is not exporting applied filters instead it download in initial state as PDF.

How to export all the pages with applied filters through Angular code?

 private _pbiconfig: any = {
    type: 'report',
    hostName: "https://app.powerbi.com/",
    accessToken: "",
    embedUrl: "",
    id: "",
    settings: {
      filterPaneEnabled: true,
      navContentPaneEnabled: true
    }
  };


Solution 1:[1]

If you want to use some default filters, you can use reportLevelFilters in your report configuration, but if you want to export after applying filters from slicers or filter pane, you need to save it as bookmark and then export that bookmark.

Reference:

Export Power BI embedded analytics reports API - Power BI | Microsoft Docs

Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Docs

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rahul Roy