<?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 DAX index between 2 dates in a date table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-DAX-index-between-2-dates-in-a-date-table/m-p/3370581#M126827</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="198659" data-lia-user-login="eliottbbedard" class="lia-mention lia-mention-user"&gt;eliottbbedard&lt;/a&gt;&amp;nbsp;Try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Index 1 = 
VAR StartDate = DATE(2019,06,06)
VAR EndDate = DATE(2019,08,29)
Return
IF(
    'Date'[Date] &amp;gt;= StartDate
    &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= EndDate,
    ( [Date] - StartDate ) * 1.,
    BLANK()
)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 08 Aug 2023 15:19:45 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-08-08T15:19:45Z</dc:date>
    <item>
      <title>Create DAX index between 2 dates in a date table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-DAX-index-between-2-dates-in-a-date-table/m-p/3370579#M126826</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help with the creation of an index between 2 dates. I've created an automatic date table using the Calendarauto() function and I'd like to create an index in a calculated column between 2 dates (starting at 0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the RANKX function as below to create an index starting on June 6, 2019 and ending on August 29, 2019 but the index is starting at 157 instead of 0.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Index 1 = 
VAR StartDate = DATE(2019,06,06)
VAR EndDate = DATE(2019,08,29)
Return
IF(
    'Date'[Date] &amp;gt;= StartDate
    &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= EndDate,
    RANKX('Date','Date'[Date],,ASC))&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea how I can achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 15:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-DAX-index-between-2-dates-in-a-date-table/m-p/3370579#M126826</guid>
      <dc:creator>eliottbbedard</dc:creator>
      <dc:date>2023-08-08T15:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create DAX index between 2 dates in a date table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-DAX-index-between-2-dates-in-a-date-table/m-p/3370581#M126827</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="198659" data-lia-user-login="eliottbbedard" class="lia-mention lia-mention-user"&gt;eliottbbedard&lt;/a&gt;&amp;nbsp;Try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Index 1 = 
VAR StartDate = DATE(2019,06,06)
VAR EndDate = DATE(2019,08,29)
Return
IF(
    'Date'[Date] &amp;gt;= StartDate
    &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= EndDate,
    ( [Date] - StartDate ) * 1.,
    BLANK()
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Aug 2023 15:19:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-DAX-index-between-2-dates-in-a-date-table/m-p/3370581#M126827</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-08-08T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create DAX index between 2 dates in a date table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-DAX-index-between-2-dates-in-a-date-table/m-p/3370590#M126828</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;It works perfectly! Thank you very much for the quick response&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 15:24:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-DAX-index-between-2-dates-in-a-date-table/m-p/3370590#M126828</guid>
      <dc:creator>eliottbbedard</dc:creator>
      <dc:date>2023-08-08T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create DAX index between 2 dates in a date table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-DAX-index-between-2-dates-in-a-date-table/m-p/3370592#M126829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="198659" data-lia-user-login="eliottbbedard" class="lia-mention lia-mention-user"&gt;eliottbbedard&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may filter 'Date' inside the RANKX for the same dates.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 15:24:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-DAX-index-between-2-dates-in-a-date-table/m-p/3370592#M126829</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-08T15:24:55Z</dc:date>
    </item>
  </channel>
</rss>

