简体   繁体   中英

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
    }
  };

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM