<?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: Selecting one row from many based on the value in one column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497457#M1147331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachement&lt;/P&gt;&lt;P&gt; try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Shipment,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Event Type],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date#([Date Occured],'MMM DD, YYYY'),'MMM DD, YYYY') AS [Date Occured],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date#([Date Submitted],'MMM DD, YYYY'),'MMM DD, YYYY') AS [Date Submitted];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shipment, Event Type, Date Occured, Date Submitted&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, Estimated delivery, "July 1, 2013", "June 25, 2013"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, Estimated delivery, "June 30, 2013", "June 24, 2013"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcde, Actual delivery, "June 14, 2013", "June 14, 2013"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcde, Estimated delivery, "June 14, 2013", "June 10, 2013"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shipment,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Event Type],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATE(MAX([Date Occured]),'MMM DD, YYYY') AS [MAX_Date Occured],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATE(MAX([Date Submitted]),'MMM DD, YYYY') AS [MAX_Date Submitted]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group by Shipment,[Event Type];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then output like this&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="392"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Shipment&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Event Type&lt;/TD&gt;&lt;TD class="xl65" width="98"&gt;[Date Occured]&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Date Submitted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;12345&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jul 01, 2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 25, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;abcde&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Actual delivery&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 14, 2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 14, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;abcde&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 14, 2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 10, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 07:26:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-19T07:26:28Z</dc:date>
    <item>
      <title>Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497448#M1147322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I need help with how to write a script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this is really simple, but I am trying to select the only one row of data with multiple columns based on the value in one of the columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have the following data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Shipment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Event Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date Occured&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date Submitted&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;Estimated delivery&lt;/TD&gt;&lt;TD&gt;July 1, 2013&lt;/TD&gt;&lt;TD&gt;June 25, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;Estimated delivery&lt;/TD&gt;&lt;TD&gt;June 30, 2013&lt;/TD&gt;&lt;TD&gt;June 24, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abcde&lt;/TD&gt;&lt;TD&gt;Actual delivery&lt;/TD&gt;&lt;TD&gt;June 14, 2013&lt;/TD&gt;&lt;TD&gt;June 14, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abcde&lt;/TD&gt;&lt;TD&gt;Estimated delivery&lt;/TD&gt;&lt;TD&gt;June 14, 2013&lt;/TD&gt;&lt;TD&gt;June 10, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I would like to get only the most recent date occured per shipment, per event type. see below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Shipment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Event Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date Occured&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Most recent Date Submitted&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;Estimated Delivery&lt;/TD&gt;&lt;TD&gt;July 1, 2013&lt;/TD&gt;&lt;TD&gt;June, 25, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abcde&lt;/TD&gt;&lt;TD&gt;Actual Delivery&lt;/TD&gt;&lt;TD&gt;June 14, 2013&lt;/TD&gt;&lt;TD&gt;June 14, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abcde&lt;/TD&gt;&lt;TD&gt;Estimated Delivery&lt;/TD&gt;&lt;TD&gt;June 14, 2013&lt;/TD&gt;&lt;TD&gt;June 10, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could do something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Table:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;load distinct&lt;/P&gt;&lt;P&gt; [Shipment], &lt;/P&gt;&lt;P&gt;[event type], &lt;/P&gt;&lt;P&gt;[Date occured], &lt;/P&gt;&lt;P&gt;max([date Submitted]) as [most recent date submitted]&lt;/P&gt;&lt;P&gt;resident old table&lt;/P&gt;&lt;P&gt;group by [shipment],[event type], [date occured];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however since the date occured is different, I get two rows... I cant guarantee that the date something occured is the larger or smaller. In other words the date submitted has nothing to do with when it was submitted or previous dates, it can go up or down. I just need to only capture the most recent one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 14:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497448#M1147322</guid>
      <dc:creator />
      <dc:date>2013-07-18T14:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497449#M1147323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test_Table:&lt;BR /&gt;Load * inline [&lt;BR /&gt;Shipment, Event_Type, Date_Occured, Date_Submitted&lt;BR /&gt;12345, Estimated Delivery, 01/07/2013, 25/06/2013&lt;BR /&gt;12345, Estimated Delivery, 30/06/2013, 24/06/2013&lt;BR /&gt;abcde, Actual Delivery, 14/06/2013, 14/06/2013&lt;BR /&gt;abcde, Estimated Delivery, 14/06/2013, 10/06/2013&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;load Shipment,&lt;BR /&gt;max(Date_Occured) as Date_Occured&lt;BR /&gt;resident Test_Table&lt;/P&gt;&lt;P&gt;group by Shipment;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can find attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 15:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497449#M1147323</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2013-07-18T15:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497450#M1147324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;You can load the data finding only the max(date submitted) and then left join to find the date the event ocurred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;New_Table:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;noconcatenate&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;load distinct&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Shipment],&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[event type]&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;max([date Submitted]) as [most recent date submitted]&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;resident old table&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;group by [shipment],[event type];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Left Join (New_Table)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Shipment],&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[event type],&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Date occured],&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[date Submitted] as [most recent date submitted]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Resident old_table&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;However, you are going to link using the shipment, event type and date submitted, what can cause dupplicated results. So I suggest you use a Primary Key on your Old table ( f.i. RowNo()), so you can do a better join!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;I hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Luiz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 15:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497450#M1147324</guid>
      <dc:creator />
      <dc:date>2013-07-18T15:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497451#M1147325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help Neetu, but unfortunately the source file I have is a few million lines long, thus the inline load is not an option. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 15:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497451#M1147325</guid>
      <dc:creator />
      <dc:date>2013-07-18T15:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497452#M1147326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luiz, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I see what you mean. If I have a unique identifier in the original table (Row_Number) then I can then use it for my link when I left join the second table after I filter to just the max event on the first one.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One problem, I still do not know how to sort on the first table I create and get only the maximum. I will have two unique row numbers, thus I will get two maximum values when I "group by row_number"... I will only want one one row_number that has the most recent submission. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 15:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497452#M1147326</guid>
      <dc:creator />
      <dc:date>2013-07-18T15:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497453#M1147327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, it's not going to work with the unique identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens if you have the same date submitted for one shipment and event type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F.i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="background-color: #ffffff; border: 1px solid #000000; margin: 1px 0; padding: 3px; color: #737373; font-family: Arial;"&gt;&lt;TBODY&gt;&lt;TR style="border: 0px;"&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Shipment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Event Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date Occured&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date Submitted&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;12345&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;July 1, 2013&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 25, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;12345&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 30, 2013&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 25, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should you retrieve both lines if that occurs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use Shipment, event type and date submitted to find the date occured, on your example (that doesn't have two equal date submitted for the same shipment and event type) you should get results like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;New_Table:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;noconcatenate&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;load distinct&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Shipment],&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[event type]&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;max([date Submitted]) as [most recent date submitted]&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;resident old table&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;group by [shipment],[event type];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="background-color: #ffffff; border: 1px solid #000000; margin: 1px 0; padding: 3px; color: #737373; font-family: Arial;"&gt;&lt;TBODY&gt;&lt;TR style="border: 0px;"&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Shipment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Event Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ffffff; font-family: Arial; text-align: -webkit-center; background-color: #6690bc;"&gt;Most recent Date Submitted&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;12345&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 25, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;abcde&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;Actual delivery&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 14, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;abcde&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 10, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Left Join (New_Table)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Shipment],&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[event type],&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Date occured],&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[date Submitted] as [most recent date submitted]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Resident old_table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="background-color: #ffffff; border: 1px solid #000000; margin: 1px 0; padding: 3px; color: #737373; font-family: Arial;"&gt;&lt;TBODY&gt;&lt;TR style="border: 0px;"&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Shipment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Event Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date Occured&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border: 1px solid #000000; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Most recent Date Submitted&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;12345&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;Estimated Delivery&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;July 1, 2013&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June, 25, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;abcde&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;Actual Delivery&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 14, 2013&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 14, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;abcde&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;Estimated Delivery&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 14, 2013&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; margin: 1px; padding: 3px;"&gt;June 10, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 21:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497453#M1147327</guid>
      <dc:creator />
      <dc:date>2013-07-18T21:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497454#M1147328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Neetu's solution is correct. She was using the inline table only to demonstrate. The load could be from a table or file instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 03:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497454#M1147328</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-07-19T03:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497455#M1147329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used INline only for demo as i don't have the table but you can use table directly from database or Qvds also in place of Inline table as mention below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test_Table:&lt;BR /&gt;Load Shipment,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Event_Type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date_Occured, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date_Submitted&lt;BR /&gt;From "TableName"&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;load Shipment,&lt;BR /&gt;max(Date_Occured) as Date_Occured&lt;BR /&gt;resident Test_Table&lt;/P&gt;&lt;P&gt;group by Shipment;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 06:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497455#M1147329</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2013-07-19T06:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497456#M1147330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Shipment,[Event Type],&lt;/P&gt;&lt;P&gt; max(Date(DateSubmit,'MMMM DD, YYYY')) as MaxdateSubmit,&lt;/P&gt;&lt;P&gt;max(Date(DateOccur,'MMMM DD, YYYY')) as MaxDateOccur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group by Shipment,[Event Type];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD date(Date#([Date Occured],'MMMM DD, YYYY'),'MMMM DD, YYYY')AS DateOccur,&lt;/P&gt;&lt;P&gt;date(Date#([Date Submitted],'MMMM DD, YYYY'),'MMMM DD, YYYY')AS DateSubmit,* INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shipment, Event Type, Date Occured, Date Submitted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, Estimated delivery, "July 1, 2013", "June 25, 2013"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, Estimated delivery, "June 30, 2013", "June 24, 2013"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcde, Actual delivery, "June 14, 2013", "June 14, 2013"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcde, Estimated delivery, "June 14, 2013", "June 10, 2013"&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Teke below field in table box hope it helps&lt;/P&gt;&lt;P&gt;Output like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="341"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="58"&gt;Shipment&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="103"&gt;Event Type&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="87"&gt;MaxDateOccur&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="93"&gt;MaxdateSubmit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;12345&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;July 01, 2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;June 25, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;abcde&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Actual delivery&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;June 14, 2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;June 14, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;abcde&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;June 14, 2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;June 10, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 07:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497456#M1147330</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-07-19T07:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497457#M1147331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachement&lt;/P&gt;&lt;P&gt; try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Shipment,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Event Type],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date#([Date Occured],'MMM DD, YYYY'),'MMM DD, YYYY') AS [Date Occured],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date#([Date Submitted],'MMM DD, YYYY'),'MMM DD, YYYY') AS [Date Submitted];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shipment, Event Type, Date Occured, Date Submitted&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, Estimated delivery, "July 1, 2013", "June 25, 2013"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, Estimated delivery, "June 30, 2013", "June 24, 2013"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcde, Actual delivery, "June 14, 2013", "June 14, 2013"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcde, Estimated delivery, "June 14, 2013", "June 10, 2013"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shipment,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Event Type],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATE(MAX([Date Occured]),'MMM DD, YYYY') AS [MAX_Date Occured],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATE(MAX([Date Submitted]),'MMM DD, YYYY') AS [MAX_Date Submitted]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group by Shipment,[Event Type];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then output like this&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="392"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Shipment&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Event Type&lt;/TD&gt;&lt;TD class="xl65" width="98"&gt;[Date Occured]&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Date Submitted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;12345&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jul 01, 2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 25, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;abcde&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Actual delivery&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 14, 2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 14, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;abcde&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Estimated delivery&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 14, 2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun 10, 2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 07:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497457#M1147331</guid>
      <dc:creator />
      <dc:date>2013-07-19T07:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one row from many based on the value in one column</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497458#M1147332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand why you would need a developer to do simple thing like showing the max to take your data from multiple rows to single rows per max ? Is Qlikview not capable of multi-dimensional analysis?&lt;/P&gt;&lt;P&gt;This should be a function of the properties in sheet objects, like other tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 22:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-row-from-many-based-on-the-value-in-one-column/m-p/497458#M1147332</guid>
      <dc:creator />
      <dc:date>2017-02-03T22:48:55Z</dc:date>
    </item>
  </channel>
</rss>

