<?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: Column to return earliest date based on another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-return-earliest-date-based-on-another-column/m-p/3073101#M106752</link>
    <description>&lt;P&gt;Hi Tamerj1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for the super quick reply. I think I must have entered something wrong but this was also returning the earliest overall date for each record rather than the version code earliest date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have ended up creating a new table of distinct versions and then applied the following DAX which seems to be working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Earliest Record = &lt;/SPAN&gt;&lt;SPAN&gt;MaxX&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Version Code]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;EARLIER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Version Code]&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[CaseMonthAndYear]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 09 Feb 2023 20:37:07 GMT</pubDate>
    <dc:creator>Topjacket</dc:creator>
    <dc:date>2023-02-09T20:37:07Z</dc:date>
    <item>
      <title>Column to return earliest date based on another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-return-earliest-date-based-on-another-column/m-p/3072791#M106732</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column "Case Month and Year" which lists the date of a case, I then have another column "Version Code". I would like a column that will will return the earliest date for the Version code in each row of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried adding a new table with a distinct list of version codes but no matter which way I try I am just getting the earliest date of the entire dataset, not the earliest date spesific to the Version code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is something easy! Any help would be great,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 18:29:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-return-earliest-date-based-on-another-column/m-p/3072791#M106732</guid>
      <dc:creator>Topjacket</dc:creator>
      <dc:date>2023-02-09T18:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Column to return earliest date based on another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-return-earliest-date-based-on-another-column/m-p/3072814#M106735</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372268" data-lia-user-login="Topjacket" class="lia-mention lia-mention-user"&gt;Topjacket&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create a new &lt;STRONG&gt;calculated&lt;/STRONG&gt; &lt;STRONG&gt;column&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;Earliest Date =&lt;BR /&gt;MINX (&lt;/P&gt;
&lt;P&gt;CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[&lt;SPAN&gt;Version Code] ) ),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'Table'[Case Month and Year]&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 18:39:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-return-earliest-date-based-on-another-column/m-p/3072814#M106735</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-09T18:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Column to return earliest date based on another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-return-earliest-date-based-on-another-column/m-p/3073101#M106752</link>
      <description>&lt;P&gt;Hi Tamerj1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for the super quick reply. I think I must have entered something wrong but this was also returning the earliest overall date for each record rather than the version code earliest date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have ended up creating a new table of distinct versions and then applied the following DAX which seems to be working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Earliest Record = &lt;/SPAN&gt;&lt;SPAN&gt;MaxX&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Version Code]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;EARLIER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Version Code]&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[CaseMonthAndYear]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Feb 2023 20:37:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-return-earliest-date-based-on-another-column/m-p/3073101#M106752</guid>
      <dc:creator>Topjacket</dc:creator>
      <dc:date>2023-02-09T20:37:07Z</dc:date>
    </item>
  </channel>
</rss>

