<?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: How to specify date range in PowerBIReportExportConfiguration  ReportLevelFilters ? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2610681#M37090</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/329050"&gt;@Neehar&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can try to use the full URL filter string in your request to ensure if it works:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt; ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { 
    new ExportFilter("?filter=DateTable/DateColumn lt '2022-05-07' and DateTable/DateColumn gt '2022-06-07'") 
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, you can also add a breakpoint to trace the request structure to check the concatenated request contents then you can modify the filter string based on these contents.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2022 01:59:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-30T01:59:34Z</dc:date>
    <item>
      <title>How to specify date range in PowerBIReportExportConfiguration  ReportLevelFilters ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2604835#M37014</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to specify a date range on a table column while exporting a report to pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm following the below article for exporting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to&lt;/A&gt;&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; var powerBIReportExportConfiguration = new PowerBIReportExportConfiguration
            {
                Settings = new ExportReportSettings
                {
                    Locale = "en-us",
                },
                Pages = new List&amp;lt;ExportReportPage&amp;gt;(),
                ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { new ExportFilter("DateTable/DateColumn ge 2022-05-07 and DateTable/DateColumn le 2022-06-07'") }
            };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with the syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 17:22:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2604835#M37014</guid>
      <dc:creator>Neehar</dc:creator>
      <dc:date>2022-06-27T17:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify date range in PowerBIReportExportConfiguration  ReportLevelFilters ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2607061#M37049</link>
      <description>&lt;P&gt;I have even tried the below code but it is not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; //ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { new ExportFilter("DateTable/DateColumn lt '2022-05-13T00:00:00' and DateColumn gt '2022-05-10T00:00:00'") } //Not working&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 13:26:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2607061#M37049</guid>
      <dc:creator>Neehar</dc:creator>
      <dc:date>2022-06-28T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify date range in PowerBIReportExportConfiguration  ReportLevelFilters ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2610681#M37090</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/329050"&gt;@Neehar&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can try to use the full URL filter string in your request to ensure if it works:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt; ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { 
    new ExportFilter("?filter=DateTable/DateColumn lt '2022-05-07' and DateTable/DateColumn gt '2022-06-07'") 
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, you can also add a breakpoint to trace the request structure to check the concatenated request contents then you can modify the filter string based on these contents.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 01:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2610681#M37090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-30T01:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify date range in PowerBIReportExportConfiguration  ReportLevelFilters ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2617063#M37174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to apply the filter using the above code snippet, but it is not working.&lt;/P&gt;&lt;P&gt;ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { new ExportFilter("?filter=DateTable/Date lt '01/20/2013' and DateTable/Date gt '01/04/2013'") }&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks | Neehar&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 04:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2617063#M37174</guid>
      <dc:creator>Neehar</dc:creator>
      <dc:date>2022-07-05T04:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify date range in PowerBIReportExportConfiguration  ReportLevelFilters ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2617234#M37175</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/329050"&gt;@Neehar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you don't need to add the "?filter=" prefix.&lt;/P&gt;&lt;P&gt;I am using something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { new ExportFilter("&lt;/SPAN&gt;Geo/Region eq 'East'&lt;SPAN&gt;) };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My suggestion - first try your filter in Power BI portal URL as described here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And once you get it to work correctly it should work for you in the API (but without the "?filter=")&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:49:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2617234#M37175</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-07-04T10:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify date range in PowerBIReportExportConfiguration  ReportLevelFilters ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2618688#M37192</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/278935"&gt;@AmosHersch&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply, I've even tried removing the&amp;nbsp;?filter. It didn't work&amp;nbsp;with the date type column but works with the string type column.&lt;BR /&gt;I tried the below syntax&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    //ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { new ExportFilter("RandomData/Date lt '01/20/2013' and RandomData/Date gt '01/04/2013'") } //not working
    //ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { new ExportFilter("RandomData/Date lt '01/20/2013' and Date gt '01/04/2013'") } //not working
    // ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { new ExportFilter("RandomData/Date gt '01/04/2013'") } //not working
    //ReportLevelFilters = new List&amp;lt;ExportFilter&amp;gt;() { new ExportFilter("RandomData/Name eq 'Neehar'") } //Working&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks | Neehar&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 04:33:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2618688#M37192</guid>
      <dc:creator>Neehar</dc:creator>
      <dc:date>2022-07-05T04:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify date range in PowerBIReportExportConfiguration  ReportLevelFilters ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2618863#M37195</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/329050"&gt;@Neehar&lt;/a&gt;&amp;nbsp;asking again - does the same date filter work for the same report when appended to the URL in Power BI portal?&lt;/P&gt;&lt;P&gt;Did you read here:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#date-data-types" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#date-data-types&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;Sounds like it worth trying something like: "&lt;SPAN&gt;RandomData/Date gt 2013-01-20"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 06:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-specify-date-range-in-PowerBIReportExportConfiguration/m-p/2618863#M37195</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-07-05T06:37:49Z</dc:date>
    </item>
  </channel>
</rss>

