<?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: Summarize and Filter to keep only the first time a customer came to our school in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932776#M96522</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472962" data-lia-user-login="mlovejoy" class="lia-mention lia-mention-user"&gt;mlovejoy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find this below solution.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test table = &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&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;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Student id]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"start_date"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[datteofstart]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shreya Mukkawar&lt;/P&gt;&lt;P&gt;Appreciate with a &lt;EM&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;/EM&gt;!! (Click the Thumbs Up Button)&lt;BR /&gt;Did I answer your question? &lt;EM&gt;&lt;STRONG&gt;Mark my post as a solution!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 28 Nov 2022 11:24:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-28T11:24:37Z</dc:date>
    <item>
      <title>Summarize and Filter to keep only the first time a customer came to our school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932475#M96511</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m trying to create a table or a column to retrieve unique Student ID and their respective date of the first time they came in our school from the enrollment table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I've tried so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Student ID musst be unique and the date should be the first time he came to our school. So Minimum start date by Student ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help? Should be simple but can't do it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 09:27:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932475#M96511</guid>
      <dc:creator>mlovejoy</dc:creator>
      <dc:date>2022-11-28T09:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize and Filter to keep only the first time a customer came to our school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932776#M96522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472962" data-lia-user-login="mlovejoy" class="lia-mention lia-mention-user"&gt;mlovejoy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find this below solution.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test table = &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&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;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Student id]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"start_date"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[datteofstart]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shreya Mukkawar&lt;/P&gt;&lt;P&gt;Appreciate with a &lt;EM&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;/EM&gt;!! (Click the Thumbs Up Button)&lt;BR /&gt;Did I answer your question? &lt;EM&gt;&lt;STRONG&gt;Mark my post as a solution!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Nov 2022 11:24:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932776#M96522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-28T11:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize and Filter to keep only the first time a customer came to our school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932782#M96523</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472962" data-lia-user-login="mlovejoy" class="lia-mention lia-mention-user"&gt;mlovejoy&lt;/a&gt;&amp;nbsp;, You can achieve this by this below solution.&lt;/P&gt;&lt;P&gt;1. Go the modelling tab and click on the new table option.&lt;/P&gt;&lt;P&gt;2. Use this below logic,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Summarize_table =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Enrollments'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Enrollments'[StudentID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;"Min Intake Year",MIN('Enrollments'[Intake Year])&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Min date"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Enrollments'[Date starting]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Nikhil Chenna&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Nov 2022 11:27:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932782#M96523</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-28T11:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize and Filter to keep only the first time a customer came to our school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932924#M96531</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476799" data-lia-user-login="NikhilChenna" class="lia-mention lia-mention-user"&gt;NikhilChenna&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. Howerver Intake Year is a text column Q1 2022, S2 2023,... so there is no minimum. Would there be a possiblity to add a column in the Student table to get this information? Basically I want to use Min start date as a criteria to put the related Intake Year (Q2 2022, S2 2023, ...)&amp;nbsp; comming from the enrollment table in every student ID of the student table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 12:42:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932924#M96531</guid>
      <dc:creator>mlovejoy</dc:creator>
      <dc:date>2022-11-28T12:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize and Filter to keep only the first time a customer came to our school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932936#M96532</link>
      <description>&lt;P&gt;Hello Anonymous&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;thanks for your answer. For every Student ID I need to get the Intake Year which is text (Q2 2022, S1 2023,..). So actually the Date Min date start is the criteria to filter adn get the Intake Date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 12:46:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932936#M96532</guid>
      <dc:creator>mlovejoy</dc:creator>
      <dc:date>2022-11-28T12:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize and Filter to keep only the first time a customer came to our school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932961#M96533</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476799" data-lia-user-login="NikhilChenna" class="lia-mention lia-mention-user"&gt;NikhilChenna&lt;/a&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; I'm doing this in DAX and it works, except that I want to retrieve&amp;nbsp; the Intake Year of that "related Min Starting Date". Any ideas &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 12:55:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2932961#M96533</guid>
      <dc:creator>mlovejoy</dc:creator>
      <dc:date>2022-11-28T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize and Filter to keep only the first time a customer came to our school</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2933016#M96536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472962" data-lia-user-login="mlovejoy" class="lia-mention lia-mention-user"&gt;mlovejoy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It is easy to map, but for that you have to create a unique key between 2 tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a concat of studentid and date using this in both the tables, =CONCATENATE('table1'[studentID],TEXT('table1'[Date],"mmddyyyy")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Create a new column in the summarized table, using lookup function,&lt;/P&gt;&lt;P&gt;Calculated column = LOOKUPVALUE('table1'[Intake Year],'table1'[concat],'summarizedtable'[concat])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will solve your issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil Chenna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 13:24:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-and-Filter-to-keep-only-the-first-time-a-customer-came/m-p/2933016#M96536</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-28T13:24:53Z</dc:date>
    </item>
  </channel>
</rss>

