<?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: If MAX or LASTDATE then 1 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2040587#M45809</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp; That didn't work. See error below.&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>Thu, 26 Aug 2021 13:56:58 GMT</pubDate>
    <dc:creator>dwel0120</dc:creator>
    <dc:date>2021-08-26T13:56:58Z</dc:date>
    <item>
      <title>If MAX or LASTDATE then 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2038778#M45758</link>
      <description>&lt;P&gt;This should be really easy but I'm not getting it to work for reasons I can't figure out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with different dates (DATE column) and I want to add a new column that puts a 1 on the rows with the max/last date on it otherwise 0.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 21:26:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2038778#M45758</guid>
      <dc:creator>dwel0120</dc:creator>
      <dc:date>2021-08-25T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: If MAX or LASTDATE then 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2039013#M45761</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="267827" data-lia-user-login="dwel0120" class="lia-mention lia-mention-user"&gt;dwel0120&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last Date =&amp;nbsp;&lt;BR /&gt;Var _MaxDate = calculate(max(table[DATE],all(table))&lt;BR /&gt;return&lt;BR /&gt;if(table[date]=_Maxdate,1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;!!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 01:23:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2039013#M45761</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-08-26T01:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: If MAX or LASTDATE then 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2040587#M45809</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp; That didn't work. See error below.&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>Thu, 26 Aug 2021 13:56:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2040587#M45809</guid>
      <dc:creator>dwel0120</dc:creator>
      <dc:date>2021-08-26T13:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: If MAX or LASTDATE then 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2041578#M45847</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/267827" target="_blank"&gt;@dwel0120&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Please try this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Last Date =
VAR _MaxDate =
    CALCULATE ( MAX ( FB_TOP_CONTRIBUTORS[DATE] ), ALL ( FB_TOP_CONTRIBUTORS ) )
RETURN
    IF ( FB_TOP_CONTRIBUTORS[date] = _Maxdate, 1, 0 )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;!!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 23:56:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2041578#M45847</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-08-26T23:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: If MAX or LASTDATE then 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2042940#M45882</link>
      <description>&lt;P&gt;Thank you. That worked. I didn't see that I needed the ).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 12:50:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-MAX-or-LASTDATE-then-1/m-p/2042940#M45882</guid>
      <dc:creator>dwel0120</dc:creator>
      <dc:date>2021-08-27T12:50:44Z</dc:date>
    </item>
  </channel>
</rss>

