<?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 Query Dynamic Filter in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Query-Dynamic-Filter/m-p/1716140#M18474</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you are doing well.&amp;nbsp;I have a small query in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data source: Oracle SQL in import mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My customer wants to create a filter based on a date that only shows the data for yesterday and today's date.&lt;/P&gt;&lt;P&gt;So for example :&lt;/P&gt;&lt;P&gt;If we have a date column from 01/01/2019 ----31/12/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The customer should see only 31/12/2020 and the day before ( 30/12/2020) by default.&lt;/P&gt;&lt;P&gt;And after that, if they want they can move the filter and changes the date to see the historical data. (The data from previous years: 2019)&lt;/P&gt;&lt;P&gt;I managed to make that filter by the logic: Max date and Max Date-1 but for a moment it is static and not dynamic.&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The filter should be on the creation date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 09:53:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-11T09:53:40Z</dc:date>
    <item>
      <title>Power BI Query Dynamic Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Query-Dynamic-Filter/m-p/1716140#M18474</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you are doing well.&amp;nbsp;I have a small query in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data source: Oracle SQL in import mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My customer wants to create a filter based on a date that only shows the data for yesterday and today's date.&lt;/P&gt;&lt;P&gt;So for example :&lt;/P&gt;&lt;P&gt;If we have a date column from 01/01/2019 ----31/12/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The customer should see only 31/12/2020 and the day before ( 30/12/2020) by default.&lt;/P&gt;&lt;P&gt;And after that, if they want they can move the filter and changes the date to see the historical data. (The data from previous years: 2019)&lt;/P&gt;&lt;P&gt;I managed to make that filter by the logic: Max date and Max Date-1 but for a moment it is static and not dynamic.&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The filter should be on the creation date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 09:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Query-Dynamic-Filter/m-p/1716140#M18474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-11T09:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Query Dynamic Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Query-Dynamic-Filter/m-p/1721273#M18501</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot make the data dynamic change to latest 2 days by default meanwhile allow you to change to others dates.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your requirement, you may follow the workaround:&lt;/P&gt;
&lt;P&gt;1. Create 2 same tables.&lt;/P&gt;
&lt;P&gt;2. Set a visual filter with TOP N filter to one table, the table will always display the latest 2 days' data.&lt;/P&gt;
&lt;P&gt;3. Using the "Edit Interaction" feature to turn off the interaction between the Slicer and the filtered table.&lt;/P&gt;
&lt;P&gt;4. You just the Slicer to change to others dates to show corresponding data in the other table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Paul Zheng _ Community Support Team&lt;BR /&gt;If this post helps, please Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 02:57:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Query-Dynamic-Filter/m-p/1721273#M18501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-15T02:57:09Z</dc:date>
    </item>
  </channel>
</rss>

