<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Power BI Embedded Export ignores programmatically set filters in Bookmark state in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Export-ignores-programmatically-set-filters-in/m-p/5189225#M65144</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/402461"&gt;@DavideBono97&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We would like to follow up and see whether the details we shared have resolved your problem.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If you need any more assistance, please feel free to connect with the Microsoft Fabric community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2026 05:40:07 GMT</pubDate>
    <dc:creator>v-pnaroju-msft</dc:creator>
    <dc:date>2026-05-27T05:40:07Z</dc:date>
    <item>
      <title>Power BI Embedded Export ignores programmatically set filters in Bookmark state</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Export-ignores-programmatically-set-filters-in/m-p/5187111#M65124</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are using Power BI Embedded with the Export to File API and passing a fully precomputed bookmark state inside the export request payload.&lt;/P&gt;&lt;P&gt;Our export request looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;{
  "format": "PDF",
  "powerBIReportConfiguration": {
    "datasetToBind": "xxxx",
    "identities": [
      {
        "username": "xxxx",
        "roles": ["xxxx"],
        "datasets": ["xxxx"]
      }
    ],
    "pages": [
      {
        "pageName": "xxx",
        "bookmark": {
          "state": "&amp;lt;compressed bookmark state&amp;gt;"
        }
      }
    ]
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&lt;BR /&gt;How can I include filters set via API as well?&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 16:47:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Export-ignores-programmatically-set-filters-in/m-p/5187111#M65124</guid>
      <dc:creator>DavideBono97</dc:creator>
      <dc:date>2026-05-21T16:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Export ignores programmatically set filters in Bookmark state</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Export-ignores-programmatically-set-filters-in/m-p/5187579#M65132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/402461"&gt;@DavideBono97&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out through the Microsoft Fabric Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Based on our understanding, the export operation only respects the state serialized within the bookmark payload along with any explicitly supported export filters. Filters applied interactively through slicers or the user interface are included because they become part of the captured bookmark state. However, filters applied programmatically are treated as runtime or session filters and are not automatically persisted into an already precomputed bookmark state, unless a new bookmark is captured after those filters have been applied.&lt;/P&gt;
&lt;P&gt;One possible approach is to first apply the filters using&amp;nbsp;setFilters(), wait for the report rendering to complete by listening to the&amp;nbsp;report.on("rendered")&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;event, then dynamically capture a new bookmark state using&amp;nbsp;await report.bookmarksManager.capture(), and finally pass that captured bookmark state into the Export To File request. Precomputed bookmark states should be regarded as static snapshots and might not automatically incorporate subsequent API filter changes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Additionally, kindly refer the links below:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-to" target="_blank"&gt;Export Power BI embedded analytics reports API - Power BI | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file" target="_blank"&gt;Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/report-bookmarks" target="_blank"&gt;Enhance your users' experience with bookmarks in Power BI embedded analytics | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/control-report-filters" target="_blank"&gt;Use filters in a Power BI embedded analytics report | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/handle-events" target="_blank"&gt;How to handle events in a Power BI embedded analytics application | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We hope the information shared above helps resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric community.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 13:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Export-ignores-programmatically-set-filters-in/m-p/5187579#M65132</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2026-05-22T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Export ignores programmatically set filters in Bookmark state</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Export-ignores-programmatically-set-filters-in/m-p/5189225#M65144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/402461"&gt;@DavideBono97&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We would like to follow up and see whether the details we shared have resolved your problem.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If you need any more assistance, please feel free to connect with the Microsoft Fabric community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 05:40:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Export-ignores-programmatically-set-filters-in/m-p/5189225#M65144</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2026-05-27T05:40:07Z</dc:date>
    </item>
  </channel>
</rss>

