<?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: MAX date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-date/m-p/2404264#M63066</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="308095" data-lia-user-login="Dom87326" class="lia-mention lia-mention-user"&gt;Dom87326&lt;/a&gt; , Try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new =&lt;BR /&gt;var _max = max(Table%DATE_KEY]) &lt;BR /&gt;return &lt;BR /&gt;format(date(left(_max,4), mid(_max,5,2), right(_max,2)), "YYYY MM DD")&lt;/P&gt;</description>
    <pubDate>Sat, 19 Mar 2022 04:23:14 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-19T04:23:14Z</dc:date>
    <item>
      <title>MAX date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-date/m-p/2403536#M63013</link>
      <description>&lt;P&gt;Hello PBI Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following table with both fields in text type and filter slicer with year from dimDate table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dimDate 1:* %DATE_KEY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build a conditional column 'date check' in text type to return a text type value with the largest %DATE_KEY in yyyy mm 01 format. I.e. when filter is set to 2021 05 03, date check would return 2021 12 01 in text type else is null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using below code with no luck:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FORMAT ( LEFT ( MAX ( [%DATE_KEY] ), 6 ) &amp;amp; "01", "General Number" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any ideas.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 14:53:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-date/m-p/2403536#M63013</guid>
      <dc:creator>Dom87326</dc:creator>
      <dc:date>2022-03-18T14:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: MAX date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-date/m-p/2404264#M63066</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="308095" data-lia-user-login="Dom87326" class="lia-mention lia-mention-user"&gt;Dom87326&lt;/a&gt; , Try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new =&lt;BR /&gt;var _max = max(Table%DATE_KEY]) &lt;BR /&gt;return &lt;BR /&gt;format(date(left(_max,4), mid(_max,5,2), right(_max,2)), "YYYY MM DD")&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2022 04:23:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-date/m-p/2404264#M63066</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-19T04:23:14Z</dc:date>
    </item>
  </channel>
</rss>

