<?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: Applying filter to ExportToFileInGroup does not work for reports using Import model in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3587841#M45802</link>
    <description>&lt;P&gt;Export To File In Group works off a Semantic Model.&amp;nbsp; At that point it does not matter any more what your data sources were or how you connect to them. Your issue is likely caused by special characters in table or column names, you need to escape them correctly.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 00:27:06 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-12-18T00:27:06Z</dc:date>
    <item>
      <title>Applying filter to ExportToFileInGroup does not work for reports using Import model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3583947#M45767</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are attempting to apply a filter to reports using the ExportToFileInGroup API method. See below for code snippet. The filter is applied correctly if the report was created using DirectQuery, but is not applied when using the Import model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone been able to successfully apply filters to reports that use Import?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Dim groupIdGuid As Guid = New Guid(groupId)
Dim reportIdGuid As Guid = New Guid(reportId)

Dim exportReportRequest As ExportReportRequest = New ExportReportRequest(fileFormat)

If filterList IsNot Nothing AndAlso filterList.Count &amp;gt; 0 Then
exportReportRequest.PowerBIReportConfiguration = New PowerBIReportExportConfiguration
                        exportReportRequest.PowerBIReportConfiguration.ReportLevelFilters = New List(Of ExportFilter)

For Each filter As String In filterList
                            exportReportRequest.PowerBIReportConfiguration.ReportLevelFilters.Add(New ExportFilter(filter))

Exit For
Next
End If

Dim export As Export = authenticationInfo.powerBIClient.Reports.ExportToFileInGroup(groupIdGuid, reportIdGuid, exportReportRequest)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ExportReportRequest object being passed to the API&amp;nbsp;ExportToFileInGroup (note the ReportLevelFilters[0].Filter property value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="P1.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1011109iD0C76D3FA1D8828B/image-size/large?v=v2&amp;amp;px=999" role="button" title="P1.png" alt="P1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 12:42:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3583947#M45767</guid>
      <dc:creator>ITM6107</dc:creator>
      <dc:date>2023-12-14T12:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Applying filter to ExportToFileInGroup does not work for reports using Import model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3587841#M45802</link>
      <description>&lt;P&gt;Export To File In Group works off a Semantic Model.&amp;nbsp; At that point it does not matter any more what your data sources were or how you connect to them. Your issue is likely caused by special characters in table or column names, you need to escape them correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 00:27:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3587841#M45802</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-18T00:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Applying filter to ExportToFileInGroup does not work for reports using Import model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3588810#M45814</link>
      <description>&lt;P&gt;Thank you for the response, but this is not the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned above, the same exact filter behaves differently depending on how the data are linked to the report. If the report is configured using Import mode, the filter is not applied and all data are returned. If the report is configured using DirectQuery, the filter is applied correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no change in the filter when applying to the two reports.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 12:10:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3588810#M45814</guid>
      <dc:creator>DS1415</dc:creator>
      <dc:date>2023-12-18T12:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Applying filter to ExportToFileInGroup does not work for reports using Import model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3588900#M45815</link>
      <description>&lt;P&gt;Do you have non-functional RLS on the import mode source?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 12:41:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3588900#M45815</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-18T12:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Applying filter to ExportToFileInGroup does not work for reports using Import model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3588933#M45816</link>
      <description>&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two reports are configured and designed exactly the same way, pointing to the same data source. The only difference is in the data load mode - Import vs DirectQuery.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 13:00:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3588933#M45816</guid>
      <dc:creator>DS1415</dc:creator>
      <dc:date>2023-12-18T13:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Applying filter to ExportToFileInGroup does not work for reports using Import model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3589508#M45820</link>
      <description>&lt;P&gt;If you have a Pro license you can open a Pro ticket at &lt;A href="https://admin.powerplatform.microsoft.com/newsupportticket/powerbi" target="_blank"&gt;https://admin.powerplatform.microsoft.com/newsupportticket/powerbi&lt;/A&gt;&lt;BR /&gt;Otherwise you can raise an issue at &lt;A href="https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 17:00:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3589508#M45820</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-18T17:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Applying filter to ExportToFileInGroup does not work for reports using Import model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3589540#M45821</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We will try these options.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 17:15:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3589540#M45821</guid>
      <dc:creator>DS1415</dc:creator>
      <dc:date>2023-12-18T17:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Applying filter to ExportToFileInGroup does not work for reports using Import model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3590493#M45831</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/662242"&gt;@DS1415&lt;/a&gt;&amp;nbsp;one last suggestion is trying to open the same report in Power BI portal and use the same filter string in the broswer URL as described here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters" target="_blank"&gt;Filter a report using query string parameters in the URL - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The API should apply the filter the same way as Power BI web portal does when appending to the URL.&lt;/P&gt;&lt;P&gt;I am not aware of any limitation for import mode in these regards.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 06:32:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3590493#M45831</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2023-12-19T06:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Applying filter to ExportToFileInGroup does not work for reports using Import model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3591541#M45856</link>
      <description>&lt;P&gt;Thank you for the response. It appears the issue is related to table names containing embedded spaces and not the data load mode.. The link you provided helped us isolate the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 14:38:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Applying-filter-to-ExportToFileInGroup-does-not-work-for-reports/m-p/3591541#M45856</guid>
      <dc:creator>ITM6107</dc:creator>
      <dc:date>2023-12-19T14:38:00Z</dc:date>
    </item>
  </channel>
</rss>

