<?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: Find next date on or after Today() in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955529#M10936</link>
    <description>&lt;P&gt;Sorry &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;Anonymous&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp; did I miss something &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The current versions of code in "use" are as follows, both are columns&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Next Go Live = 
    MINX( 
        FILTER( 
            All('Tasks'),
            'Tasks'[TaskIsMilestone] &amp;amp;&amp;amp;
            'Tasks'[TaskFinishDate]=MIN('Tasks'[TaskFinishDate]) &amp;amp;&amp;amp;
            'Tasks'[MilestoneType]="Go Live" &amp;amp;&amp;amp;
            'Tasks'[TaskFinishDate]&amp;gt;=TODAY() &amp;amp;&amp;amp;
                NOT('Tasks'[TaskIsExternal]) &amp;amp;&amp;amp;
                NOT('Tasks'[TaskIsSummary])
                ),
        'Tasks'[TaskFinishDate]
        )&lt;/LI-CODE&gt;&lt;P&gt;This gives blank results, no date at all.&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NextGoLive = if(
Tasks[TaskIsMilestone] &amp;amp;&amp;amp; NOT(Tasks[TaskIsExternal]) &amp;amp;&amp;amp;
Tasks[MilestoneType]="Go Live" &amp;amp;&amp;amp; NOT(Tasks[TaskIsSummary]) &amp;amp;&amp;amp;
Tasks[TaskFinishDate]&amp;gt;=Today(),
Tasks[TaskFinishDate],date(1999,12,31))&lt;/LI-CODE&gt;&lt;P&gt;which gives dates greater than or equal to Today or 31/12/1999, on all tasks, but does not give a single, lowest date value and I can't see any way to pick that "next date after today"&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 16:15:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-02T16:15:15Z</dc:date>
    <item>
      <title>Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/947084#M10417</link>
      <description>&lt;P&gt;A new attempt to get the NextGoLive date. Our project plans can have multiple Go-Live dates and we need to be able to show when the next one is in our weekly reports. I have cobbled together the following DAX but it is giving me the really helpful error message "The syntax for ')' is incorrect" and, to be honest, I am a little out of my depth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Next Go Live = 
    var NextGoLive=
        CALCULATE(MIN('Tasks'[TaskFinishDate]),
             FILTER(All('Tasks'),
                MIN(
                    FILTER(Tasks,'Tasks'[TaskFinishDate]=EARLIER('Tasks'[TaskFinishDate]) &amp;amp;&amp;amp;
                        'Tasks'[MilestoneType]="Go Live")&amp;amp;&amp;amp;
                        'Tasks'[TaskFinishDate].[Date]&amp;gt;=TODAY() &amp;amp;&amp;amp;
                        'Tasks'[TaskIsExternal]=FALSE()&amp;amp;&amp;amp;
                        'Tasks'[TaskIsSummary]=FALSE()&amp;amp;&amp;amp;
                        'Tasks'[TaskIsMilestone]=TRUE()&amp;amp;&amp;amp;
                        IF('Tasks'[MilestoneType]="Go Live",
                            'Tasks'[NextGoLive],0))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried the following, it gives no errors, but instead of a date for anything in the future or past, it only outputs zero but this might be down to a DAX nested AND constraint.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NextGoLive = if(
    AND(
        AND(
            AND(Tasks[TaskIsMilestone]=TRUE(),Tasks[TaskIsExternal]=FALSE()),
            AND(Tasks[MilestoneType]="GoLive",Tasks[TaskIsSummary]=FALSE())),
            Tasks[TaskFinishDate].[Date]&amp;gt;=Today()),
            Tasks[TaskFinishDate].[Date],0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 12:28:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/947084#M10417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-25T12:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/947108#M10418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it is difficult to give a correct answer without a data example but in first statement try to remove string&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;var NextGoLive=&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;second statement rewrite as&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NextGoLive = if(
Tasks[TaskIsMilestone]=TRUE() &amp;amp;&amp;amp; Tasks[TaskIsExternal]=FALSE() 
&amp;amp;&amp;amp; Tasks[MilestoneType]="GoLive" &amp;amp;&amp;amp; Tasks[TaskIsSummary]=FALSE() &amp;amp;&amp;amp;
Tasks[TaskFinishDate]&amp;gt;=Today(),
Tasks[TaskFinishDate],0)&lt;/LI-CODE&gt;
&lt;P&gt;pay attention to remove .[Date] part&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 12:55:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/947108#M10418</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-25T12:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/947112#M10419</link>
      <description>&lt;P&gt;Your first formula looks OK, but I believe you want to be using MINX instead of MIN. The error message you are getting indicates that you have unmatched parens ( ). Try something like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Next Go Live = 
    var NextGoLive=
        MINX(
          FILTER(
            All('Tasks'), 
            'Tasks'[TaskFinishDate]=EARLIER('Tasks'[TaskFinishDate]) &amp;amp;&amp;amp;
              'Tasks'[MilestoneType]="Go Live")&amp;amp;&amp;amp;
                'Tasks'[TaskFinishDate].[Date]&amp;gt;=TODAY() &amp;amp;&amp;amp;
                  'Tasks'[TaskIsExternal]=FALSE()&amp;amp;&amp;amp;
                    'Tasks'[TaskIsSummary]=FALSE()&amp;amp;&amp;amp;
                      'Tasks'[TaskIsMilestone]=TRUE()&amp;amp;&amp;amp;
                        'Tasks'[MilestoneType]="Go Live"
          ),
          'Tasks'[TaskFinishDate]
       )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 12:59:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/947112#M10419</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-02-25T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/948672#M10497</link>
      <description>&lt;P&gt;Hi Greg, &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;, thanks for the pointers . . . . .&lt;/P&gt;&lt;P&gt;I needed to modify the code slightly, not really changing the overall effect, but the "EARLIER" statement gives me an error, "A single value for column 'TaskFinishDate' cannot be determined".&amp;nbsp; It's a date field on each task entry, so I'm not sure what the problem is.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Next Go Live = 
    MINX( 
        FILTER( 
            All('Tasks'),
            'Tasks'[TaskFinishDate]=EARLIER('Tasks'[TaskFinishDate]) &amp;amp;&amp;amp;
                'Tasks'[MilestoneType]="Go Live" &amp;amp;&amp;amp;
                    'Tasks'[TaskFinishDate].[Date]&amp;gt;=TODAY() &amp;amp;&amp;amp;
                        NOT('Tasks'[TaskIsExternal]) &amp;amp;&amp;amp;
                            NOT('Tasks'[TaskIsSummary]) &amp;amp;&amp;amp;
                                'Tasks'[TaskIsMilestone]
                ),
        'Tasks'[TaskFinishDate]
        )&lt;/LI-CODE&gt;&lt;P&gt;I tried using the TaskIndex field but got the same error. The data is all single entry on each Task, so&amp;nbsp;TaskIsExternal,&amp;nbsp; TaskIsSummary and TaskIsMilestone are&amp;nbsp;all either&amp;nbsp;True or False, MilestoneType is one of Level 1, Level 2 or Go Live and TaskFinishDate is just a date field, there cannot be multiple finish dates on a task, you would need to have multiple tasks . . . . . would that cause a problem if they had the same TaskName ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 10:56:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/948672#M10497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T10:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/948868#M10528</link>
      <description>&lt;P&gt;Hmm, I think I need some sample data to test this with and see what the problem is. Any chance you can provide sample data in text?&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 12:58:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/948868#M10528</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-02-26T12:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/949352#M10556</link>
      <description>&lt;P&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;&amp;nbsp;I've put a spreadsheet of data on a shared drive &lt;A title="Task and Milestone Data" href="https://mitiegrp-my.sharepoint.com/:x:/g/personal/fred_newton_mitie_com/ETkla09yFjNJq5bFaG7OEBMBmkMWPsGGAGYd8nB2CKeLHw?e=PHJorx" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 16:25:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/949352#M10556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955154#M10905</link>
      <description>&lt;P&gt;Hi &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;&lt;/P&gt;&lt;P&gt;For completeness,&lt;/P&gt;&lt;P&gt;Tasks table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Projects table&lt;/P&gt;&lt;P&gt;ProjectId *:1 ProjectId&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Single&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result, I'd hope for is that the NextGoLive field would populate on the Projects table (i.e.&amp;nbsp; single entry) rather than on the Tasks entries, which would be one entry per task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 11:47:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955154#M10905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T11:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955258#M10914</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;Aleksei,&amp;nbsp; I modified the code as follows&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NextGoLive = if(
    AND(
        AND(
            AND(Tasks[TaskIsMilestone],NOT(Tasks[TaskIsExternal])),
            AND(Tasks[MilestoneType]="GoLive",NOT(Tasks[TaskIsSummary]))),
            AND(Tasks[TaskFinishDate]&amp;gt;=Today(),NOT(Tasks[TaskIsProjectSummary]))),
            Tasks[TaskFinishDate],31/12/1999)&lt;/LI-CODE&gt;&lt;P&gt;but ended up with every task showing the NextGoLive as 30/12/1899, totally ignoring the default date I expected to see.&amp;nbsp; The data I'm working from can be found &lt;A title="NextGoLive data" href="https://mitiegrp-my.sharepoint.com/:x:/g/personal/fred_newton_mitie_com/ETkla09yFjNJq5bFaG7OEBMBmkMWPsGGAGYd8nB2CKeLHw?e=RTYfzD" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955258#M10914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T13:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955295#M10917</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;why did you do that? didnt you try the statements above?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955295#M10917</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-02T13:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955318#M10918</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;Aleksei, yes, I did try but they gave me a date of 30/12/1899 on all tasks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:42:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955318#M10918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T13:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955342#M10920</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;its because of space in "Go Live"&lt;/P&gt;
&lt;P&gt;try a column&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NextGoLive = if(
Tasks[TaskIsMilestone]=TRUE() &amp;amp;&amp;amp; Tasks[TaskIsExternal]=FALSE() 
&amp;amp;&amp;amp; Tasks[MilestoneType]="Go Live" &amp;amp;&amp;amp; Tasks[TaskIsSummary]=FALSE() &amp;amp;&amp;amp;
Tasks[TaskFinishDate]&amp;gt;=Today(),
Tasks[TaskFinishDate],date(1999,12,31))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955342#M10920</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-02T14:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955391#M10924</link>
      <description>&lt;P&gt;Hi &lt;A title="" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/82403" target="_blank"&gt;@az38&lt;/A&gt;&amp;nbsp;Aleksei, ah, so obvious, thankyou for that.&lt;/P&gt;&lt;P&gt;How do I now get the minimum go live date that is either today of after today ?&amp;nbsp; That's why I tried&amp;nbsp;creating a column with&amp;nbsp;MINX(Filter in the Projects table, however, at present, that gives me blanks, no dates/values at all.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Next Go Live = 
    MINX( 
        FILTER( 
            All('Tasks'),
            'Tasks'[TaskFinishDate]=MIN('Tasks'[TaskFinishDate]) &amp;amp;&amp;amp;
                'Tasks'[MilestoneType]="Go Live" &amp;amp;&amp;amp;
                    'Tasks'[TaskFinishDate].[Date]&amp;gt;=TODAY() &amp;amp;&amp;amp;
                        NOT('Tasks'[TaskIsExternal]) &amp;amp;&amp;amp;
                            NOT('Tasks'[TaskIsSummary]) &amp;amp;&amp;amp;
                                'Tasks'[TaskIsMilestone]
                ),
        'Tasks'[TaskFinishDate]
        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:47:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955391#M10924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T14:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955465#M10929</link>
      <description>&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;, could you please stop using EARLIER? Please use variables instead.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Mon, 02 Mar 2020 15:36:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955465#M10929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T15:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955506#M10933</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a chill pill man&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 15:58:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955506#M10933</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-02T15:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955523#M10935</link>
      <description>&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;,&lt;BR /&gt;&lt;BR /&gt;EARLIER is not only obsolete, it's not recommended. I know you have some die-hard habits, it's understandable to a point, but you're not making it easier for others to understand your code. Since VAR's have been introduced there's no need for EARLIER anymore.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Mon, 02 Mar 2020 16:11:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955523#M10935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T16:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955529#M10936</link>
      <description>&lt;P&gt;Sorry &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;Anonymous&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp; did I miss something &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The current versions of code in "use" are as follows, both are columns&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Next Go Live = 
    MINX( 
        FILTER( 
            All('Tasks'),
            'Tasks'[TaskIsMilestone] &amp;amp;&amp;amp;
            'Tasks'[TaskFinishDate]=MIN('Tasks'[TaskFinishDate]) &amp;amp;&amp;amp;
            'Tasks'[MilestoneType]="Go Live" &amp;amp;&amp;amp;
            'Tasks'[TaskFinishDate]&amp;gt;=TODAY() &amp;amp;&amp;amp;
                NOT('Tasks'[TaskIsExternal]) &amp;amp;&amp;amp;
                NOT('Tasks'[TaskIsSummary])
                ),
        'Tasks'[TaskFinishDate]
        )&lt;/LI-CODE&gt;&lt;P&gt;This gives blank results, no date at all.&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NextGoLive = if(
Tasks[TaskIsMilestone] &amp;amp;&amp;amp; NOT(Tasks[TaskIsExternal]) &amp;amp;&amp;amp;
Tasks[MilestoneType]="Go Live" &amp;amp;&amp;amp; NOT(Tasks[TaskIsSummary]) &amp;amp;&amp;amp;
Tasks[TaskFinishDate]&amp;gt;=Today(),
Tasks[TaskFinishDate],date(1999,12,31))&lt;/LI-CODE&gt;&lt;P&gt;which gives dates greater than or equal to Today or 31/12/1999, on all tasks, but does not give a single, lowest date value and I can't see any way to pick that "next date after today"&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:15:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955529#M10936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T16:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955631#M10944</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;- I just downloaded the Excel spreadsheet so let me have a look and see. Will need some time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; - I respect your opinion. But the forums are not for chastising people or spouting opinions. Use a blog for that. And I have been through 10 pages of search results looking for EARLIER is obsolete or not recommended or deprecated and nothing. Nothing in the official Microsoft documents about it. I know Marco doesn't recommend it on his page but that's all I've ever seen. But then again he doesn't like SUMMARIZE even though you have to use it sometimes because there is no perfect alternative. Anyway, perhaps you should write a blog about it and you can chastise people there and keep it off of the forums. I provide solutions for people that work. I don't claim that those solutions are always best practice or the most computationally efficient or make any other claims. Generally they are not because they are quick things that I bang out in 15 minutes or less. And they are free. So I don't have time to do all the fancy formatting and make sure I put in the table names everywhere and all that because I am not being paid to produce the best DAX code of all time. When I get paid I try to make sure I follow all the best practices, etc. But nobody is perfect. People are more than welcome to take my solutions and modify the code to put it into best practices and have all the proper formatting. So, in closing, chill out, this is a nice place for nice people to do nice things for one another.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 17:08:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955631#M10944</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-02T17:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955675#M10950</link>
      <description>So you have to be paid to do things properly? That's a very interesting stance. But I don't second it. I respect your opinion as well but I also care about the readers.&lt;BR /&gt;&lt;BR /&gt;By the way, SUMMARIZE is OK to use when you don't make any calculations inside it. Otherwise, you'll be creating headaches and bugs before you know it. And they'll be almost impossible to find, especially for those less experienced.&lt;BR /&gt;&lt;BR /&gt;All I asked you for was not to use EARLIER and use variables instead - is this really that hard that you have to get paid to follow this practice? On top of that, you are shooting at me with a cannon. And I'm the one to take a pill...  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;But you know? After all, who cares. I don't because I know DAX. And those who don't will take your word for it and will be happy. Right?&lt;BR /&gt;&lt;BR /&gt;Have a well-paid evening &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Mon, 02 Mar 2020 17:38:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955675#M10950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T17:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955768#M10957</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;- First apologies for this thread getting off track.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, I am not 100% clear on exactly what you are going for exactly, but I believe that this code returns the next Go Live date perhaps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Next Go Live = 
    MINX( 
        FILTER( 
            All('Tasks'),
            'Tasks'[TaskIsMilestone] = TRUE() &amp;amp;&amp;amp;
            //'Tasks'[TaskFinishDate]=MIN('Tasks'[TaskFinishDate]) &amp;amp;&amp;amp;
            'Tasks'[MilestoneType]="Go Live" &amp;amp;&amp;amp;
            'Tasks'[TaskFinishDate]&amp;gt;=TODAY() &amp;amp;&amp;amp;
            'Tasks'[TaskIsExternal] = FALSE() &amp;amp;&amp;amp;
            'Tasks'[TaskIsSummary] = FALSE()
        ),
        'Tasks'[TaskFinishDate]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PBIX is attached.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 18:43:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/955768#M10957</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-02T18:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Find next date on or after Today()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/956919#M11016</link>
      <description>&lt;P&gt;Hi &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;, not a problem with off-piste thread, it comes with the territory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re the question, thanks, that's definitely on the right track.&amp;nbsp; That code gave me the next Go Live across all projects, what I was hoping for was the next go live for each project as some projects have only 1 go live but others have staged go lives and we want to pick up the next one for each in either type of project.&amp;nbsp; I tried the code in both the Projects and Tasks tables (in MS Project) and it gives the same, single, go live date.&lt;/P&gt;&lt;P&gt;Thanks for your efforts/patience on this, it's much appreciated.&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 13:00:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-next-date-on-or-after-Today/m-p/956919#M11016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-03T13:00:55Z</dc:date>
    </item>
  </channel>
</rss>

