<?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: Filter 2 Relative Dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-2-Relative-Dates/m-p/2807366#M88675</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;would love some more help if you could please &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 21:37:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-29T21:37:17Z</dc:date>
    <item>
      <title>Filter 2 Relative Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-2-Relative-Dates/m-p/2798119#M87976</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to filter a visual with 2 relative dates (see below). However, if I apply this to the visual it applies AND logic but I want OR logic, i.e., filter if the date is in the last 7 days OR in the next 30 days. I'm thinking this isn't out of the box and I'll need DAX but aren't sure what that would be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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;</description>
      <pubDate>Tue, 27 Sep 2022 01:34:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-2-Relative-Dates/m-p/2798119#M87976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-27T01:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filter 2 Relative Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-2-Relative-Dates/m-p/2798192#M87980</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Relative date is based on today. You can do that by creating a measure based on today without using a slicer. You can use this measure in the visual or visual level filter &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This Month Today = &lt;BR /&gt;var _min = today() -7&lt;BR /&gt;var _max =today()+30 &lt;BR /&gt;return CALCULATE([Net], FILTER('Date','Date'[Date] &amp;gt;=_min &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= _max))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Net is measured and net's table is joined with date table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer &lt;A href="https://medium.com/chandakamit/cheat-sheet-power-bi-time-intelligence-formulas-using-today-654f26e27304" target="_blank"&gt;https://medium.com/chandakamit/cheat-sheet-power-bi-time-intelligence-formulas-using-today-654f26e27304&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 02:00:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-2-Relative-Dates/m-p/2798192#M87980</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-27T02:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter 2 Relative Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-2-Relative-Dates/m-p/2798501#M87997</link>
      <description>&lt;P&gt;Hi - what does Net refer to? And do I need to create the date table - where does that come from?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 04:56:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-2-Relative-Dates/m-p/2798501#M87997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-27T04:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter 2 Relative Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-2-Relative-Dates/m-p/2807366#M88675</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;would love some more help if you could please &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 21:37:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-2-Relative-Dates/m-p/2807366#M88675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-29T21:37:17Z</dc:date>
    </item>
  </channel>
</rss>

