<?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 Power BI Javascript -  report.setFilters() functionality issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Javascript-report-setFilters-functionality-issue/m-p/683078#M19302</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Current Implementation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We have a report embedded in a web application with the help of Power BI Javascript. This report has some pre-defined report level filters including a filter on date-range.&lt;/P&gt;&lt;P&gt;Our web-application provides a date-picker for altering the date-range on which the report data needs to be displayed. So, the functionality that is implemented in web-application is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Filters already available to report is fetched using getFilters().&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Previous Date filter from the list of filters is removed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- New date filter is added in the list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- The updated list is passed as a parameter in setFilters() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This functionality works fine when a new date range is selected. However, when the same date range is selected and user calls the setFilters(), the report does not get refreshed with new data on that range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When a user clicks on a button to call setFilters() with the filters list same as the previous one, does the report data get refreshed?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried to call report.refresh() while applying the date filter. Please suggest if this seems to be the right approach or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2019 06:17:52 GMT</pubDate>
    <dc:creator>Sakshi</dc:creator>
    <dc:date>2019-05-03T06:17:52Z</dc:date>
    <item>
      <title>Power BI Javascript -  report.setFilters() functionality issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Javascript-report-setFilters-functionality-issue/m-p/683078#M19302</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Current Implementation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We have a report embedded in a web application with the help of Power BI Javascript. This report has some pre-defined report level filters including a filter on date-range.&lt;/P&gt;&lt;P&gt;Our web-application provides a date-picker for altering the date-range on which the report data needs to be displayed. So, the functionality that is implemented in web-application is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Filters already available to report is fetched using getFilters().&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Previous Date filter from the list of filters is removed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- New date filter is added in the list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- The updated list is passed as a parameter in setFilters() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This functionality works fine when a new date range is selected. However, when the same date range is selected and user calls the setFilters(), the report does not get refreshed with new data on that range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When a user clicks on a button to call setFilters() with the filters list same as the previous one, does the report data get refreshed?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried to call report.refresh() while applying the date filter. Please suggest if this seems to be the right approach or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 06:17:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Javascript-report-setFilters-functionality-issue/m-p/683078#M19302</guid>
      <dc:creator>Sakshi</dc:creator>
      <dc:date>2019-05-03T06:17:52Z</dc:date>
    </item>
  </channel>
</rss>

