<?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: Compare two date colums in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3310360#M106900</link>
    <description>&lt;P&gt;Just chirping in here, you can actually return the dates using the varia&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date Measure = 
VAR Date1 = MAX('Table'[Date Column 1])
VAR Date2 = MAX('Table'[Date Column 2])
RETURN
IF(Date1 &amp;gt; Date2, Date1, Date2)&lt;/LI-CODE&gt;&lt;P&gt;ble, see:&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 14:18:17 GMT</pubDate>
    <dc:creator>ray_aramburo</dc:creator>
    <dc:date>2023-06-30T14:18:17Z</dc:date>
    <item>
      <title>Compare two date colums</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3308769#M106824</link>
      <description>&lt;P&gt;Hi I have 2 date columns. I need to find out which date is greater than other.please suggest a solution&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 17:28:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3308769#M106824</guid>
      <dc:creator>neenu</dc:creator>
      <dc:date>2023-06-29T17:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two date colums</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3308836#M106827</link>
      <description>&lt;P&gt;You have 2 options, both simple:&lt;/P&gt;&lt;P&gt;1) Create a calculated column with DAX in Power BI Desktop: DateEvaluation = IF(Table[Date1] &amp;gt; Table[Date2], "Greater", "Not Greater")&lt;/P&gt;&lt;P&gt;2) In Power Query create a Conditional column with the same logic using the UI for conditional columns.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 18:29:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3308836#M106827</guid>
      <dc:creator>ray_aramburo</dc:creator>
      <dc:date>2023-06-29T18:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two date colums</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3309057#M106837</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="449869" data-lia-user-login="neenu" class="lia-mention lia-mention-user"&gt;neenu&lt;/a&gt;- Check this out, let me know if this works.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date Measure = 
VAR Date1 = MAX('Table'[Date Column 1])
VAR Date2 = MAX('Table'[Date Column 2])
RETURN
IF(Date1 &amp;gt; Date2, "Date Column 1", "Date Column 2")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Jun 2023 23:04:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3309057#M106837</guid>
      <dc:creator>Manoj_Nair</dc:creator>
      <dc:date>2023-06-29T23:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two date colums</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3309076#M106838</link>
      <description>&lt;P&gt;If you want to do this in Power Query, there are several ways. If you want to know which is larger:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if [Date1] &amp;gt; [Date2] then "Date 1" else "Date 2"&lt;/LI-CODE&gt;
&lt;P&gt;If you just want to return the largest date, then&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;List.Max({[Date1], [Date2]})&lt;/LI-CODE&gt;
&lt;P&gt;The {} brackets put the Date1 and Date2 field in a list and returns the largest.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In DAX, it is similar:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF(
   Table[Date1] &amp;gt; Table[Date2],
   "Date 1",
   "Date 2"
)&lt;/LI-CODE&gt;
&lt;P&gt;Or just returning the largest:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MAX(Table[Date1],Table[Date2])&lt;/LI-CODE&gt;
&lt;P&gt;You could substitute measures for those table[date] fields depending on what your report is doing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 00:04:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3309076#M106838</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2023-06-30T00:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two date colums</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3310360#M106900</link>
      <description>&lt;P&gt;Just chirping in here, you can actually return the dates using the varia&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date Measure = 
VAR Date1 = MAX('Table'[Date Column 1])
VAR Date2 = MAX('Table'[Date Column 2])
RETURN
IF(Date1 &amp;gt; Date2, Date1, Date2)&lt;/LI-CODE&gt;&lt;P&gt;ble, see:&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:18:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Compare-two-date-colums/m-p/3310360#M106900</guid>
      <dc:creator>ray_aramburo</dc:creator>
      <dc:date>2023-06-30T14:18:17Z</dc:date>
    </item>
  </channel>
</rss>

