<?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: Create moving range of dates with DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-moving-range-of-dates-with-DAX/m-p/2389057#M62053</link>
    <description>&lt;P&gt;yep, that solution worked... thank you so much! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 16:49:59 GMT</pubDate>
    <dc:creator>dsalony</dc:creator>
    <dc:date>2022-03-11T16:49:59Z</dc:date>
    <item>
      <title>Create moving range of dates with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-moving-range-of-dates-with-DAX/m-p/2387365#M61924</link>
      <description>&lt;P&gt;I have a dates table.&amp;nbsp; I want to set up a slicer on the dates, allowing a user to define an end-date.&amp;nbsp; From that I want to create a set period of indexed dates tied to that variable date that can be used as a filter on other measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an example, if the date range is 1/1/22 to 1/31/22, and a user selects 1/31/22 with the slicer, and the rolling period is set to 7 days, I want the dates from 1/31/22 back to 1/24/22 to be indexed as a '1' and all the other dates in the range to be a '0'; if they select 1/20/22, the index would be from 1/20/22 back to 1/13/22, and all other dates would be '0'.&amp;nbsp; Thus if I have DAX measures that are tied to dates, and I apply this moving indexed range as a filter, what would be displayed would only be the measures associated with the dates in that range.&amp;nbsp; Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 22:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-moving-range-of-dates-with-DAX/m-p/2387365#M61924</guid>
      <dc:creator>dsalony</dc:creator>
      <dc:date>2022-03-10T22:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create moving range of dates with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-moving-range-of-dates-with-DAX/m-p/2387696#M61949</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Index measure: =
IF (
    MAX ( Data[Date] ) &amp;lt;= MAX ( Slicer[Date] )
        &amp;amp;&amp;amp; MAX ( Data[Date] )
            &amp;gt;= MAX ( Slicer[Date] ) - 7,
    1,
    0
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Mar 2022 04:08:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-moving-range-of-dates-with-DAX/m-p/2387696#M61949</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-03-11T04:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create moving range of dates with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-moving-range-of-dates-with-DAX/m-p/2389057#M62053</link>
      <description>&lt;P&gt;yep, that solution worked... thank you so much! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 16:49:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-moving-range-of-dates-with-DAX/m-p/2389057#M62053</guid>
      <dc:creator>dsalony</dc:creator>
      <dc:date>2022-03-11T16:49:59Z</dc:date>
    </item>
  </channel>
</rss>

