<?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: Latest date with a clause in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4389739#M174264</link>
    <description>&lt;P&gt;Hi mark_endicott&lt;/P&gt;&lt;P&gt;That's perfect - exactly what I was looking for!&lt;/P&gt;&lt;P&gt;Thanks so much for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2025 10:52:01 GMT</pubDate>
    <dc:creator>_Kelz0484</dc:creator>
    <dc:date>2025-01-31T10:52:01Z</dc:date>
    <item>
      <title>Latest date with a clause</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4385930#M174109</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Bit of an odd one! I have a dataset which includes 2 x date columns, 'test date' and 'concessed date' I would like to create a new column called 'master date' which looks at the other 2 columns and gives the furthest date in the future. But there is a clause, there could be blanks in either column and in most instances where there is a date in both columns the concessed date is furthest in the future. But I have found a couple of instances where the test date and concessed date are populated and the concessed date is earlier, if this happens I need the earlier concessed date to be master instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the easiest way to put it, master date to be the furthest date in the future unless concessed date comes first. Some sample data below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 10:57:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4385930#M174109</guid>
      <dc:creator>_Kelz0484</dc:creator>
      <dc:date>2025-01-29T10:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Latest date with a clause</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4385987#M174114</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782399" data-lia-user-login="_Kelz0484" class="lia-mention lia-mention-user"&gt;_Kelz0484&lt;/a&gt;&amp;nbsp;- Try this as a calculated column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MAX( Table[Test Date], Table[Concessed Date] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will ignore blanks and always give you the latest date from both columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this works, please accept as the solution for others with the same challenge.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 11:35:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4385987#M174114</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2025-01-29T11:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Latest date with a clause</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4385996#M174116</link>
      <description>&lt;P&gt;Hi, this is similar to what I am already using and yes it works for giving me the latest date but it doesn't help with the odd instances where the earlier concessed date is found.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 11:40:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4385996#M174116</guid>
      <dc:creator>_Kelz0484</dc:creator>
      <dc:date>2025-01-29T11:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Latest date with a clause</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4386503#M174133</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782399" data-lia-user-login="_Kelz0484" class="lia-mention lia-mention-user"&gt;_Kelz0484&lt;/a&gt;&amp;nbsp;- Sorry I misread your requirement the below will now work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH (
    TRUE (),
    ISBLANK ( 'Table'[Concessed Date] ), 'Table'[Test Date],
    ISBLANK ( 'Table'[Test Date] ), 'Table'[Concessed Date],
    'Table'[Concessed Date] &amp;lt; 'Table'[Test Date], 'Table'[Concessed Date],
    MAX ( 'Table'[Test Date], 'Table'[Concessed Date] )
)&lt;/LI-CODE&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;P&gt;If this now works, please accept as the solution for others with the same challenge.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 15:21:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4386503#M174133</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2025-01-29T15:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Latest date with a clause</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4387738#M174181</link>
      <description>&lt;P&gt;That is perfect but now I've noticed that I have a lot of entries where both dates are blank. How would I populated these with today's date. I thought it would simply adding TODAY() as the final result but that didn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 08:34:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4387738#M174181</guid>
      <dc:creator>_Kelz0484</dc:creator>
      <dc:date>2025-01-30T08:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Latest date with a clause</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4388410#M174218</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782399" data-lia-user-login="_Kelz0484" class="lia-mention lia-mention-user"&gt;_Kelz0484&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH (
    TRUE (),
    ISBLANK ( 'Table'[Concessed Date] ) &amp;amp;&amp;amp; ISBLANK ( 'Table'[Test Date] ), TODAY(),
    ISBLANK ( 'Table'[Concessed Date] ), 'Table'[Test Date],
    ISBLANK ( 'Table'[Test Date] ), 'Table'[Concessed Date],
    'Table'[Concessed Date] &amp;lt; 'Table'[Test Date], 'Table'[Concessed Date],
    MAX ( 'Table'[Test Date], 'Table'[Concessed Date] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this now works, please accept as the solution for others with the same challenge.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 15:13:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4388410#M174218</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2025-01-30T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Latest date with a clause</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4389739#M174264</link>
      <description>&lt;P&gt;Hi mark_endicott&lt;/P&gt;&lt;P&gt;That's perfect - exactly what I was looking for!&lt;/P&gt;&lt;P&gt;Thanks so much for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 10:52:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-date-with-a-clause/m-p/4389739#M174264</guid>
      <dc:creator>_Kelz0484</dc:creator>
      <dc:date>2025-01-31T10:52:01Z</dc:date>
    </item>
  </channel>
</rss>

