<?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: Find earliest date across multiple columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/839158#M6322</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8103" data-lia-user-login="mclarin" class="lia-mention lia-mention-user"&gt;mclarin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You are welcome! Glad it worked!&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 22:22:22 GMT</pubDate>
    <dc:creator>Nathaniel_C</dc:creator>
    <dc:date>2019-11-06T22:22:22Z</dc:date>
    <item>
      <title>Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/834194#M6106</link>
      <description>&lt;P&gt;Any ideas for code to return the earliest date across multiple columns? My table has at least five date columns, I need to return the earliest date per row.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 17:18:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/834194#M6106</guid>
      <dc:creator>mclarin</dc:creator>
      <dc:date>2019-10-31T17:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/834331#M6115</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8103" data-lia-user-login="mclarin" class="lia-mention lia-mention-user"&gt;mclarin&lt;/a&gt;&amp;nbsp;,&amp;nbsp; I am assuming this is a calculated column. Let me know if this works, as I did it free hand.&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Calculated column =
VAR _earlycol1 = table[col1]
VAR _earlycol2 = table[col2]
VAR _earlycol3 = table[col3]
VAR _earlycol4 = table[col4]
VAR _calc1 =
    IF ( _earlycol1 &amp;lt; _earlycol2, _earlycol1, _earlycol2 )
VAR _calc2 =
    IF ( calc1 &amp;lt; _earlycol3, _calc1, earlycol3 )
VAR _calc3 =
    IF ( _calc2 &amp;lt; _earlycol4, _calc2, _earlycol4 )
RETURN
    _calc3&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 20:26:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/834331#M6115</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-31T20:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/839148#M6320</link>
      <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;. This worked great. Since most of the columns were blank, I also performed a check for that, but otherwise, this solved it.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 22:02:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/839148#M6320</guid>
      <dc:creator>mclarin</dc:creator>
      <dc:date>2019-11-06T22:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/839158#M6322</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8103" data-lia-user-login="mclarin" class="lia-mention lia-mention-user"&gt;mclarin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You are welcome! Glad it worked!&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 22:22:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/839158#M6322</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-11-06T22:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/1060964#M14749</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8103" data-lia-user-login="mclarin" class="lia-mention lia-mention-user"&gt;mclarin&lt;/a&gt;&amp;nbsp;can you show your formula including the blank check?&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 13:10:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/1060964#M14749</guid>
      <dc:creator>lj910628</dc:creator>
      <dc:date>2020-05-01T13:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/1067569#M14940</link>
      <description>&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EarliestDate = 
VAR _earlyBlue = IF(ISBLANK([Blue Print Meeting].[Date]),DATE(2200,1,1),[Blue Print Meeting].[Date])
VAR _earlyIEP = IF(ISBLANK([Initial EP].[Date]),DATE(2200,1,1),[Initial EP].[Date])
VAR _earlyComp = IF(ISBLANK([Composition Meeting].[Date]),DATE(2200,1,1),[Composition Meeting].[Date])
VAR _earlyFund = IF(ISBLANK([Funding Meeting].[Date]),DATE(2200,1,1),[Funding Meeting].[Date])
VAR _earlyTR = IF(ISBLANK([TR Meeting].[Date]),DATE(2200,1,1),[TR Meeting].[Date])
VAR _earlyMedicade = IF(ISBLANK([MA Engagement].[Date]),DATE(2200,1,1),[MA Engagement].[Date])
VAR _earlyPB = IF(ISBLANK([PB 1st Meeting].[Date]),DATE(2200,1,1),[PB 1st Meeting].[Date])
VAR _earlySV = IF(ISBLANK([SV 1st Meeting].[Date]),DATE(2200,1,1),[SV 1st Meeting].[Date])
VAR _calc1 =
    IF(_earlyBlue &amp;lt; _earlyIEP,_earlyBlue,_earlyIEP)
VAR _calc2 =
    IF(_calc1 &amp;lt; _earlyComp,_calc1,_earlyComp)
VAR _calc3 =
    IF(_calc2 &amp;lt; _earlyFund,_calc2,_earlyFund)
VAR _calc4 = 
    IF(_calc3 &amp;lt; _earlyTR,_calc3,_earlyTR)
VAR _calc5 =
    IF(_calc4 &amp;lt; _earlyMedicade,_calc4,_earlyMedicade)
VAR _calc6 =
    IF(_calc5 &amp;lt; _earlyPB,_calc5,_earlyPB)
VAR _calc7 =
    IF(_calc6 &amp;lt; _earlySV,_calc6,_earlySV)
RETURN
    _calc7&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 May 2020 18:32:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/1067569#M14940</guid>
      <dc:creator>mclarin</dc:creator>
      <dc:date>2020-05-04T18:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/1605803#M32225</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how would this change if it is a measure rather than a calculated column?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 13:07:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/1605803#M32225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-18T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/3842558#M150217</link>
      <description>&lt;P&gt;Hello, thank you for your solution! May I ask if you have a solution for another column that shows the corresponding earliest dates column header please?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 20:19:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/3842558#M150217</guid>
      <dc:creator>alya1</dc:creator>
      <dc:date>2024-04-16T20:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/3857113#M150680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="673339" data-lia-user-login="alya1" class="lia-mention lia-mention-user"&gt;alya1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;This question focused on each row. You asked for earliest date column header. What are looking for? It is also helpful if can either include your data, or a picture of your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 20:33:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/3857113#M150680</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2024-04-21T20:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/3860473#M150805</link>
      <description>&lt;P&gt;Hi Nathaniel_C, thank you for your response! I found what I was looking for here:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Return-column-name-if-data-matches-another-column-data-in-same/m-p/3842798#M1239944" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Return-column-name-if-data-matches-another-column-data-in-same/m-p/3842798#M1239944&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 22:37:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/3860473#M150805</guid>
      <dc:creator>alya1</dc:creator>
      <dc:date>2024-04-22T22:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find earliest date across multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/3865304#M150992</link>
      <description>&lt;P&gt;You Can Also Try This One :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Earliest date =
VAR D1 = min(table[Date1])
VAR D2= min(table[Date2])
VAR D3= min(table[Date3])
VAR D4= min(table[Date4])
return
min(D1,D2,D3,D4)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Apr 2024 11:46:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-earliest-date-across-multiple-columns/m-p/3865304#M150992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-24T11:46:38Z</dc:date>
    </item>
  </channel>
</rss>

