<?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: Return the earliest date among a group using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-earliest-date-among-a-group-using-DAX/m-p/2768102#M86050</link>
    <description>&lt;P&gt;In Power Query select your time and you can use the date/time filters to select the earliest record&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Based on your sample data, you will still have 2 records per invoice as they are exactly the same. You can select the little table in the top left of your data and click remove duplicates.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This will give you 1 row per invoice at the earliest status change date!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 18:54:49 GMT</pubDate>
    <dc:creator>Syk</dc:creator>
    <dc:date>2022-09-14T18:54:49Z</dc:date>
    <item>
      <title>Return the earliest date among a group using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-earliest-date-among-a-group-using-DAX/m-p/2768090#M86046</link>
      <description>&lt;P&gt;Hello Power BI Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently working on some DAX expressions to reduce the amount of rows in a data extract.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the raw data, I get multiple records that use the same columns except from "Changed status date" column. So I created a concatenation to identify which are the group items that I need a unique value from (taking the earliest date) as follows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to keep only only row from each group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Invoice #&lt;/TD&gt;&lt;TD&gt;Invoice Status&lt;/TD&gt;&lt;TD&gt;Changed status Date&lt;/TD&gt;&lt;TD&gt;Concatenation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer A&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;9/14/2022 4:23&lt;/TD&gt;&lt;TD&gt;Customer A1111Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer A&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;7/26/2022 18:03&lt;/TD&gt;&lt;TD&gt;Customer A1111Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer A&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;7/26/2022 18:03&lt;/TD&gt;&lt;TD&gt;Customer A1111Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer B&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;9/14/2022 4:23&lt;/TD&gt;&lt;TD&gt;Customer B2222Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer B&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;7/26/2022 18:03&lt;/TD&gt;&lt;TD&gt;Customer B2222Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer B&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;7/26/2022 18:03&lt;/TD&gt;&lt;TD&gt;Customer B2222Paid&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen in other posts that "VAR" was used but I can't create the VAR expression either by creating a new column in Field or Add column in Power Query Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first post, so I apologize if this inquiry has been answered in this Community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 18:46:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-earliest-date-among-a-group-using-DAX/m-p/2768090#M86046</guid>
      <dc:creator>RRamirez01</dc:creator>
      <dc:date>2022-09-14T18:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Return the earliest date among a group using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-earliest-date-among-a-group-using-DAX/m-p/2768102#M86050</link>
      <description>&lt;P&gt;In Power Query select your time and you can use the date/time filters to select the earliest record&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Based on your sample data, you will still have 2 records per invoice as they are exactly the same. You can select the little table in the top left of your data and click remove duplicates.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This will give you 1 row per invoice at the earliest status change date!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 18:54:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-earliest-date-among-a-group-using-DAX/m-p/2768102#M86050</guid>
      <dc:creator>Syk</dc:creator>
      <dc:date>2022-09-14T18:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Return the earliest date among a group using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-earliest-date-among-a-group-using-DAX/m-p/2768160#M86058</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="346587" data-lia-user-login="Syk" class="lia-mention lia-mention-user"&gt;Syk&lt;/a&gt;, thanks for your promptly answer. May be I should have claryfied this better, In my brief example, we only have the same date for an earliest result. But in the raw data I have several different dates that in each group (Given by the concatenation) so that means that I have one record only with the earliest date by each separate group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To keep this as simple as possible, I changed only the "Customer B2222" date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Invoice #&lt;/TD&gt;&lt;TD&gt;Invoice Status&lt;/TD&gt;&lt;TD&gt;Changed status Date&lt;/TD&gt;&lt;TD&gt;Concatenation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer A&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;9/14/2022 4:23&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Customer A1111Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer A&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;7/26/2022 18:03&lt;/TD&gt;&lt;TD&gt;Customer A1111Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer A&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;7/26/2022 18:03&lt;/TD&gt;&lt;TD&gt;Customer A1111Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer B&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;8/14/2022 4:23&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Customer B2222Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer B&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;7/26/2022 18:03&lt;/TD&gt;&lt;TD&gt;Customer B2222Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer B&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;7/26/2022 18:03&lt;/TD&gt;&lt;TD&gt;Customer B2222Paid&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this changes the resolution I might take here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 19:23:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-earliest-date-among-a-group-using-DAX/m-p/2768160#M86058</guid>
      <dc:creator>RRamirez01</dc:creator>
      <dc:date>2022-09-14T19:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Return the earliest date among a group using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-earliest-date-among-a-group-using-DAX/m-p/2769944#M86191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="441961" data-lia-user-login="RRamirez01" class="lia-mention lia-mention-user"&gt;RRamirez01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try earliest function in table value field.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 09:40:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-earliest-date-among-a-group-using-DAX/m-p/2769944#M86191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-15T09:40:50Z</dc:date>
    </item>
  </channel>
</rss>

