<?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: Dynamic date filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-filter/m-p/4355891#M172934</link>
    <description>&lt;P&gt;Use the "Relative Dates"&amp;nbsp; filter type instead, and choose "In the last 7 days".&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2025 21:51:34 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-01-08T21:51:34Z</dc:date>
    <item>
      <title>Dynamic date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-filter/m-p/4355768#M172930</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Slicer visual in order to slice and dice dates :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to set the filter to&amp;nbsp; auto update daily to show the dates of: (Today - 7) until (today - 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what should I set in the filter section:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 19:45:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-filter/m-p/4355768#M172930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-08T19:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-filter/m-p/4355891#M172934</link>
      <description>&lt;P&gt;Use the "Relative Dates"&amp;nbsp; filter type instead, and choose "In the last 7 days".&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 21:51:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-filter/m-p/4355891#M172934</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-08T21:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-filter/m-p/4356122#M172949</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from lbendlin&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure to determine the range:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IsInRange = 
VAR TodayDate = TODAY()
RETURN
IF(
    MAX('Table'[Date]) &amp;gt;= TodayDate - 7 &amp;amp;&amp;amp; MAX('Table'[Date]) &amp;lt; TodayDate,
    1,
    0
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drag IsInRange into the Filter and set the condition to IsInRange = 1.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The final visual effect is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pbix file is attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 02:37:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-filter/m-p/4356122#M172949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-09T02:37:17Z</dc:date>
    </item>
  </channel>
</rss>

