<?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: Issue with Power BI Embedded Report Export in Salesforce – Filtered Data Not Exporting Correctly in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Power-BI-Embedded-Report-Export-in-Salesforce/m-p/4155257#M36770</link>
    <description>&lt;P&gt;Show your work - how do you specify the filters,&amp;nbsp; are the filter columns and tables present in the data model, do they actually control the data model?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 22:01:57 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-09-17T22:01:57Z</dc:date>
    <item>
      <title>Issue with Power BI Embedded Report Export in Salesforce – Filtered Data Not Exporting Correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Power-BI-Embedded-Report-Export-in-Salesforce/m-p/4154575#M36764</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm currently working with &lt;STRONG&gt;Power BI embedded reports&lt;/STRONG&gt; inside &lt;STRONG&gt;Salesforce&lt;/STRONG&gt; and encountering an issue when trying to export filtered reports to PDF.&lt;/P&gt;&lt;H3&gt;Context:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;The report has &lt;STRONG&gt;slice filters&lt;/STRONG&gt; and a &lt;STRONG&gt;date filter&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;When the report loads for the first time inside Salesforce, everything works correctly, and the data is displayed as expected.&lt;/LI&gt;&lt;LI&gt;However, after applying any filter on the embedded report and attempting to export the filtered report using the &lt;STRONG&gt;Export&lt;/STRONG&gt; button, the data does not reflect the applied filters in the exported file.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;What Happens:&lt;/H3&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;The Export button internally makes a call to the following API endpoint:&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;GET &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/exports/{exportId}/file" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/exports/{exportId}/file&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The export process completes successfully, but the &lt;STRONG&gt;PDF file does not include the filtered data&lt;/STRONG&gt;; instead, it shows the original unfiltered report data.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;What I’ve Tried:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;I verified that the filters are applied correctly on the report before exporting.&lt;/LI&gt;&lt;LI&gt;The API call seems correct as the export works, but the &lt;STRONG&gt;filtered data isn't carried over to the export&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Questions:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Has anyone encountered this issue where filters applied to an embedded Power BI report are not reflected in the exported version?&lt;/LI&gt;&lt;LI&gt;Is there a specific &lt;STRONG&gt;Power BI API parameter&lt;/STRONG&gt; or setting I&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 17 Sep 2024 14:01:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Power-BI-Embedded-Report-Export-in-Salesforce/m-p/4154575#M36764</guid>
      <dc:creator>Datta_A</dc:creator>
      <dc:date>2024-09-17T14:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Power BI Embedded Report Export in Salesforce – Filtered Data Not Exporting Correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Power-BI-Embedded-Report-Export-in-Salesforce/m-p/4155257#M36770</link>
      <description>&lt;P&gt;Show your work - how do you specify the filters,&amp;nbsp; are the filter columns and tables present in the data model, do they actually control the data model?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 22:01:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Power-BI-Embedded-Report-Export-in-Salesforce/m-p/4155257#M36770</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-17T22:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Power BI Embedded Report Export in Salesforce – Filtered Data Not Exporting Correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Power-BI-Embedded-Report-Export-in-Salesforce/m-p/4170683#M36980</link>
      <description>&lt;P&gt;Hi,lbendlin ,thanks for your concern about this issue.&lt;/P&gt;
&lt;P&gt;Your answer is excellent!&lt;BR /&gt;And I would like to share some additional solutions below.&lt;BR /&gt;Hello,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="807478" data-lia-user-login="Datta_A" class="lia-mention lia-mention-user"&gt;Datta_A&lt;/a&gt;&amp;nbsp;.I am glad to help you.&lt;/P&gt;
&lt;P&gt;After my testing, there is no problem with this Power BI Service api. The reason you are experiencing exported report files with no filters applied when using this API could be due to the incorrect application of the filters parameter. Resulting in the parameter not being passed correctly.&lt;BR /&gt;Here is my test procedure, hope it will help you&lt;/P&gt;
&lt;P&gt;According to the description, you are using this API&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/exports/{exportId}/file&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;URL:&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-file-of-export-to-file-in-group#code-try-0" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Reports - Get File Of Export To File In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Note that the ExportID parameter passed in here needs to be obtained from other APIs that have filter report functionality.&lt;BR /&gt;I use this API: &lt;STRONG&gt;Exoprt To File&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;URL:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a post request asking the user to pass the relevant filtering information for the target report, which will return an exportID after a successful run.&lt;/P&gt;
&lt;P&gt;My complete process is as follows:&lt;BR /&gt;1. Use “Export To File” API&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Successful execution will fetch the reportID: (which is actually the id) of the filter that has been applied.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Get the ExportID parameter and fill it into the API you provided (i.e., the “id” you got after the previous API ran successfully).&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Since my attempt was Try it, when I scripted it in python, I was able to successfully implement exporting the report with filters applied.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;After my test, after the api export export pdf final results for the Power BI Service on the application of the screening conditions and display results&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I tried to modify the visual from table to matrix on service and after running the export api and Get file of export to file api, the format of the export file is the final modified result displayed on service.&lt;BR /&gt;The status of the report on the service&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;One thing to note: the API you mentioned needs to work with Export to file / Export to file in group (I tested Export to file).&lt;BR /&gt;There are official restrictions on the use of these two APIs in embedded reports.&lt;BR /&gt;URL.&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-to#considerations-and-limitations" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Export Power BI embedded analytics reports API - Power BI | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/announcing-persistent-filters-in-the-service/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Announcing Persistent Filters in the Power BI Service | Microsoft Power BI Blog | Microsoft Power BI&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;So my preference for the problem you are experiencing is more of a known limitation.&lt;BR /&gt;I hope my test was helpful.&lt;BR /&gt;&lt;BR /&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Carson Jian,&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 13:25:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Power-BI-Embedded-Report-Export-in-Salesforce/m-p/4170683#M36980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-24T13:25:22Z</dc:date>
    </item>
  </channel>
</rss>

