<?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 Three columns on one table, need to return the earliest in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Three-columns-on-one-table-need-to-return-the-earliest/m-p/4033292#M159652</link>
    <description>&lt;P&gt;I have one table that is being used (Pro Staff Info)&lt;/P&gt;&lt;P&gt;I have three separate columns that include a date or an N/A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pro Staff Info&lt;/P&gt;&lt;P&gt;Columns:&lt;/P&gt;&lt;P&gt;Initial Cert Exp (there is a date in this column if they have this type of cert, N/A if they don't)&lt;/P&gt;&lt;P&gt;Conditional Cert Exp&amp;nbsp;(there is a date in this column if they have this type of cert, N/A if they don't)&lt;/P&gt;&lt;P&gt;Continuing Cert Exp( there is a date in this column if they have this type of cert, N/A if they don't)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a way to compare these columns and return the earliest date of the 3 columns.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The staff can have more than one type of cert to expire.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: Sally has an initial cert expiring 6/30/2025 and a conditional cert expiring 6/30/2026.&amp;nbsp; I would need a column that just returns the earliest date (in this example&amp;nbsp; 6/30/2025).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose is for the admin assistants to know when someone is expiring and starting the process to recertify.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 23:45:41 GMT</pubDate>
    <dc:creator>bradytb</dc:creator>
    <dc:date>2024-07-09T23:45:41Z</dc:date>
    <item>
      <title>Three columns on one table, need to return the earliest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Three-columns-on-one-table-need-to-return-the-earliest/m-p/4033292#M159652</link>
      <description>&lt;P&gt;I have one table that is being used (Pro Staff Info)&lt;/P&gt;&lt;P&gt;I have three separate columns that include a date or an N/A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pro Staff Info&lt;/P&gt;&lt;P&gt;Columns:&lt;/P&gt;&lt;P&gt;Initial Cert Exp (there is a date in this column if they have this type of cert, N/A if they don't)&lt;/P&gt;&lt;P&gt;Conditional Cert Exp&amp;nbsp;(there is a date in this column if they have this type of cert, N/A if they don't)&lt;/P&gt;&lt;P&gt;Continuing Cert Exp( there is a date in this column if they have this type of cert, N/A if they don't)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a way to compare these columns and return the earliest date of the 3 columns.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The staff can have more than one type of cert to expire.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: Sally has an initial cert expiring 6/30/2025 and a conditional cert expiring 6/30/2026.&amp;nbsp; I would need a column that just returns the earliest date (in this example&amp;nbsp; 6/30/2025).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose is for the admin assistants to know when someone is expiring and starting the process to recertify.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 23:45:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Three-columns-on-one-table-need-to-return-the-earliest/m-p/4033292#M159652</guid>
      <dc:creator>bradytb</dc:creator>
      <dc:date>2024-07-09T23:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Three columns on one table, need to return the earliest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Three-columns-on-one-table-need-to-return-the-earliest/m-p/4033558#M159687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="772929" data-lia-user-login="bradytb" class="lia-mention lia-mention-user"&gt;bradytb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your needs, I have created the following table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can use the following dax to get the result you want:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = VAR select_name = SELECTEDVALUE('Pro Staff Info'[Name])
RETURN
MINX(FILTER(ALL('Pro Staff Info'),'Pro Staff Info'[Name]=select_name &amp;amp;&amp;amp; 'Pro Staff Info'[Date]&amp;lt;&amp;gt;BLANK()),'Pro Staff Info'[Date])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 03:06:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Three-columns-on-one-table-need-to-return-the-earliest/m-p/4033558#M159687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-10T03:06:39Z</dc:date>
    </item>
  </channel>
</rss>

