<?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 Select Next date in column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-Next-date-in-column/m-p/1338243#M23819</link>
    <description>&lt;P&gt;Hi There,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a measure which gives the next date in the column for the entityID in that row. For instance, in the table below, I want a new column which, let's say entity ID 92 the date is 29/06/2021 then it needs to give the date 29/09/2021.&amp;nbsp;&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, 01 Sep 2020 10:20:29 GMT</pubDate>
    <dc:creator>Annemie19</dc:creator>
    <dc:date>2020-09-01T10:20:29Z</dc:date>
    <item>
      <title>Select Next date in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-Next-date-in-column/m-p/1338243#M23819</link>
      <description>&lt;P&gt;Hi There,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a measure which gives the next date in the column for the entityID in that row. For instance, in the table below, I want a new column which, let's say entity ID 92 the date is 29/06/2021 then it needs to give the date 29/09/2021.&amp;nbsp;&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, 01 Sep 2020 10:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-Next-date-in-column/m-p/1338243#M23819</guid>
      <dc:creator>Annemie19</dc:creator>
      <dc:date>2020-09-01T10:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select Next date in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-Next-date-in-column/m-p/1338322#M23825</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254893" data-lia-user-login="Annemie19" class="lia-mention lia-mention-user"&gt;Annemie19&lt;/a&gt; , try a new column like&lt;/P&gt;
&lt;P&gt;minx(filter(table, [entityID] = earlier([entityID]) &amp;amp;&amp;amp; [measuredate] &amp;gt;earlier([measuredate])),[measuredate])&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 10:58:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-Next-date-in-column/m-p/1338322#M23825</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-01T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select Next date in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-Next-date-in-column/m-p/1338640#M23843</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254893" data-lia-user-login="Annemie19" class="lia-mention lia-mention-user"&gt;Annemie19&lt;/a&gt;&amp;nbsp; You can use this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Column = 
VAR CurrentRowEntity = Anne[EntityID]
VAR CurrentRowDate = Anne[MeasurementDate]
VAR SameRows =
    FILTER (
        Anne,
        Anne[EntityID] = CurrentRowEntity
            &amp;amp;&amp;amp; Anne[MeasurementDate] &amp;gt; CurrentRowDate
    )
VAR Result =
    MINX ( SameRows, Anne[MeasurementDate] )
RETURN
    IF ( Result = BLANK (), CurrentRowDate, Result )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 12:49:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-Next-date-in-column/m-p/1338640#M23843</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-09-01T12:49:35Z</dc:date>
    </item>
  </channel>
</rss>

