<?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: Removing duplicates, getting latest value via multiple criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970838#M951229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try this already?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD [Product No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue([Date Created], -&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;([Date Created]+RecNo())&lt;/SPAN&gt;) as [Date Created],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue([Record No], -&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;([Date Created]+RecNo())&lt;/STRONG&gt;) as [Record No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue([Date Altered], -&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;([Date Created]+RecNo())&lt;/STRONG&gt;) as [Date Altered],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue(Reason, -&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;([Date Created]+RecNo())&lt;/STRONG&gt;) as Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Group By [Product No];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product No, Date Created, Record No, Date Altered, Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0001, 4/6/2014, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0025, 4/6/2014, AutoRepaired&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2015, RN9090, 4/11/2014, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 5/9/2015, RN0002, 3/9/2015, Creation&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 10/10/2015, RN0006, 9/9/2015, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Dec 2015 10:30:42 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-10T10:30:42Z</dc:date>
    <item>
      <title>Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970831#M951222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set of data like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product No&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date Created&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Record No&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date Altered&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Reason&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/8/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN0001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/6/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4/8/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN0025&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4/6/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AutoRepaired&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/1/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN9090&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/11/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/9/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN0002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/9/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Creation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/8/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN0003&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/7/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/8/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN0004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/7/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AutoRepaired&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/10/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN0006&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/9/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to remove duplicated based on product no, and get the latest value. Which should look like this&lt;/P&gt;&lt;P&gt;(This is to be done in load script)&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product No&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date Created&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Record No&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date Altered&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Reason&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/1/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN9090&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/11/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/9/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN0002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/9/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Creation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/10/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RN0006&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/9/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically for each product no, i would like to obtain the data that has the LATEST DateCreated,RecordNo,DateAltered.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 07:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970831#M951222</guid>
      <dc:creator />
      <dc:date>2015-12-08T07:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970832#M951223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Product No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue([Date Created], -[Date Created]) as [Date Created],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue([Record No], -[Date Created]) as [Record No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue([Date Altered], -[Date Created]) as [Date Altered],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(Reason, -[Date Created]) as Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Product No];&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; Product No, Date Created, Record No, Date Altered, Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0001, 4/6/2014, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0025, 4/6/2014, AutoRepaired&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/1/2015, RN9090, 4/11/2014, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 5/9/2015, RN0002, 3/9/2015, Creation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 10/10/2015, RN0006, 9/9/2015, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108375_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 16:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970832#M951223</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-08T16:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970833#M951224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i used resident table, and your code, the result is that it removed all records that have duplicate, leaving only product code 2 behind when i tried searching for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This data set is only a small portion of my data, my real data has around 100k+ but the concept is exactly the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------&lt;/P&gt;&lt;P&gt;I tried your code, i know why it disappears, i was looking at a set of products, that are of all the same values for every field except for recordno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for it to remove all duplicates, and seeing if say we have this&lt;/P&gt;&lt;P&gt;This is the example set of data that disappeared.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product No, Date Created, Record No, Date Altered, Reason&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0001, 4/6/2014, Damaged&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0025, &lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;STRONG&gt;4/6/2014&lt;/STRONG&gt;&lt;/SPAN&gt;, AutoRepaired&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, &lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;STRONG&gt;4/8/2014&lt;/STRONG&gt;&lt;/SPAN&gt;, RN9090, &lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;STRONG&gt;4/6/2014&lt;/STRONG&gt;&lt;/SPAN&gt;, Damaged&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Because the code locks it to datecreated, hence i can understand why it would disappear as all the datecreated are the same.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Is there a way for it to look at all 3 fields(datecreated, recordno and date altered)? For example&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;If all the 3 entries above for Date created are the same, it will look at record no, and pick the last record no. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;If even the record no are all the same, then it will look at date altered and find the latest one.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;in short is it possible for it to pick, the latest date created &amp;amp; last record no &amp;amp; latest date altered?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 01:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970833#M951224</guid>
      <dc:creator />
      <dc:date>2015-12-09T01:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970834#M951225</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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Product No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue([Date Created], -&lt;SPAN style="color: #ff0000;"&gt;([Date Created]+RecNo())&lt;/SPAN&gt;) as [Date Created],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue([Record No], -&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;([Date Created]+RecNo())&lt;/STRONG&gt;) as [Record No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue([Date Altered], -&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;([Date Created]+RecNo())&lt;/STRONG&gt;) as [Date Altered],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(Reason, -&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;([Date Created]+RecNo())&lt;/STRONG&gt;) as Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Product No];&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; Product No, Date Created, Record No, Date Altered, Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0001, 4/6/2014, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0025, 4/6/2014, AutoRepaired&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2015, RN9090, 4/11/2014, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 5/9/2015, RN0002, 3/9/2015, Creation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 10/10/2015, RN0006, 9/9/2015, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 18:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970834#M951225</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-09T18:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970835#M951226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi do you mind explaining how does adding recno() help? Thanks so much.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there another way to solve this, i have another part coming up doing the same thing, And this time the field will be mixture of text and numbers like the field in RECORD NO. Will it be confused if a larger set of say 1 million rows (not sorted) involved?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 02:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970835#M951226</guid>
      <dc:creator />
      <dc:date>2015-12-10T02:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970836#M951227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProdMaxDate:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product No, Date Created, Record No, Date Altered, Reason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0001, 4/6/2014, Damaged&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0025, 4/6/2014, AutoRepaired&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/1/2015, RN9090, 4/11/2014, Damaged&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 5/9/2015, RN0002, 3/9/2015, Creation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 10/10/2015, RN0006, 9/9/2015, Damaged&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LatestDate:&lt;/P&gt;&lt;P&gt;inner join &lt;/P&gt;&lt;P&gt;Load [Product No], &lt;/P&gt;&lt;P&gt;Date(max([Date Created])) as [Date Created]&lt;/P&gt;&lt;P&gt;Resident ProdMaxDate&lt;/P&gt;&lt;P&gt;group by [Product No];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 06:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970836#M951227</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2015-12-10T06:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970837#M951228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi as from previous top replies, this wont work because if &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, &lt;STRONG&gt;6/8/2015&lt;/STRONG&gt;, RN0006, 9/9/2015, Damaged&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This happens, then it wont get the correct one cause all the date created are the same.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do you have one that takes max of datecreated, max of recordNo and max of date altered?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For example for cases like this,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; 3, &lt;STRONG&gt;6/8/2015&lt;/STRONG&gt;, RN0006, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;6/7/2015&lt;/STRONG&gt;&lt;/SPAN&gt;, Damaged&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So is there a script that takes into account all possible scenarios?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 06:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970837#M951228</guid>
      <dc:creator />
      <dc:date>2015-12-10T06:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970838#M951229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try this already?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD [Product No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue([Date Created], -&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;([Date Created]+RecNo())&lt;/SPAN&gt;) as [Date Created],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue([Record No], -&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;([Date Created]+RecNo())&lt;/STRONG&gt;) as [Record No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue([Date Altered], -&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;([Date Created]+RecNo())&lt;/STRONG&gt;) as [Date Altered],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue(Reason, -&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;([Date Created]+RecNo())&lt;/STRONG&gt;) as Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Group By [Product No];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product No, Date Created, Record No, Date Altered, Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0001, 4/6/2014, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0025, 4/6/2014, AutoRepaired&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2015, RN9090, 4/11/2014, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 5/9/2015, RN0002, 3/9/2015, Creation&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 10/10/2015, RN0006, 9/9/2015, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 10:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970838#M951229</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-10T10:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970839#M951230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RecNo() is the order of your rows. So if you see it in table form, you will see this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Product No&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Date Created&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Record No&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Date Altered&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Reason&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;RecNo&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;4/8/2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;RN0001&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;4/6/2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Damaged&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;4/8/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;RN0025&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;4/6/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;AutoRepaired&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;4/1/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;RN9090&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;4/11/2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Damaged&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;5/9/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;RN0002&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;3/9/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Creation&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;6/8/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;RN0003&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;6/7/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Damaged&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;6/8/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;RN0004&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;6/7/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;AutoRepaired&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;10/10/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;RN0006&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;9/9/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Damaged&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am sorting by [Date Created] + RecNo(). So when they are all the same the one with the highest RecNo() row will be selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 11:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970839#M951230</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-10T11:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970840#M951231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SunnyT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i did try on a small set of my data and it works, Not sure if it is the same on larger scale,&lt;/P&gt;&lt;P&gt;I just would like to understand something. I understand what you explained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Product No&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;Date Created&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;Record No&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;Date Altered&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;Reason&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;RecNo&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;4/8/2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0001&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;4/6/2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;Damaged&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;4/8/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0025&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;4/6/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;AutoRepaired&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;4/1/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN9090&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;4/11/2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;Damaged&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;2&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;5/9/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0002&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;3/9/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;Creation&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6/8/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0003&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6/7/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;Damaged&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6/8/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0004&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6/7/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;AutoRepaired&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;10/10/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0006&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;9/9/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;Damaged&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The data above is already pretty much sorted.&lt;/P&gt;&lt;P&gt;What happens if the data is like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Product No&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;Date Created&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;Record No&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;Date Altered&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; background-position: no-repeat; background-color: #6690bc; color: #ffffff; text-align: center; font-family: inherit; font-style: inherit;" valign="middle"&gt;Reason&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;4/8/2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0001&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;4/6/2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;4/8/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0095&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;4/6/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;AutoRepaired&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;4/8/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0035&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;4/11/2014&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6/8/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0008&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6/7/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6/8/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0004&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6/7/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;AutoRepaired&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;6/8/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;RN0006&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;9/9/2015&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-family: inherit; font-style: inherit;"&gt;Damaged&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This set of data is unsorted, as you can see the latest record no is the 2nd row for product no 1, and for product no 3, the latest record no is the 4th row.&lt;/P&gt;&lt;P&gt;How would your script handle this as we didnt mention how the data of record no and date altered will be sorted.&lt;/P&gt;&lt;P&gt;Does firstsortedvalue sort unspecified columns(since recordno and date altered are not mentioned)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much SunnyT, Appreciate all your replies as it really improved my learning.&lt;/P&gt;&lt;P&gt;Oh another ques, Is it possible to do [Date Created]+[Record No]+[Date Altered] instead of [Date Created] + RecNo() ?&lt;/P&gt;&lt;P&gt;I tried it, it didnt work of course.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 16:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970840#M951231</guid>
      <dc:creator />
      <dc:date>2015-12-11T16:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970841#M951232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Record No right now is a text field. You will need to convert into a number field, May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KeepChar([Record No], '0123456789') * 100/100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Product No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue([Date Created], -([Date Created]+Check)) as [Date Created],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue([Record No], -([Date Created]+Check)) as [Record No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue([Date Altered], -([Date Created]+Check)) as [Date Altered],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(Reason, -([Date Created]+Check)) as Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Product No];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; KeepChar([Record No], '0123456789') * 100/100 as Check;&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; Product No, Date Created, Record No, Date Altered, Reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, &lt;SPAN style="color: #ff0000;"&gt;4/8/2015&lt;/SPAN&gt;, RN0001, 4/6/2014, Damaged &lt;/STRONG&gt;//Was given as 4/8/2014&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, &lt;SPAN style="color: #ff0000;"&gt;4/8/2015&lt;/SPAN&gt;, RN0095, 4/6/2014, AutoRepaired &lt;/STRONG&gt;//Was given as 4/8/2014&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2015, RN0035, 4/11/2014, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0008, 6/7/2015, Damaged&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0006, 9/9/2015, Damaged&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;Change the data above (in red) as it seems to me that they will be on the same dates. Let me know if that isn't true&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 17:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970841#M951232</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-11T17:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970842#M951233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SunnyT,&lt;/P&gt;&lt;P&gt;Thank you for the prompt reply.&lt;/P&gt;&lt;P&gt;As for whether they will be on the same dates, the thing is, this example is just like 6 records out of 1 million records that i have, and there are some records that have the same date created, but diff record no, some have same date created and diff date altered but of course diff record no. So i am trying to cover the possibilities here as i can't go through all 1 million records 1 by 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some records no are like CNB1029-102, some are RN10203, so im looking for one formula that works for all, I thought of converting all to numbers and find the largest one, but i always fail to do so using Num().&lt;/P&gt;&lt;P&gt;Using keepchar might face some issue as mentioned records no format are not the same for each product, But however, for each product they will be in the same format.&lt;/P&gt;&lt;P&gt;For example if product 1 its record No is RNxxxx, it will always be like that.&lt;/P&gt;&lt;P&gt;For product say n, if its CNB1029-202, it will always be in that format, just the number changing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an idea, remember the previous solution you posted? the one using RecNo()?&lt;BR /&gt;What if i sort my table first using loadscript, by datecreated, recordno, then date altered. That way, will it ever go wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your assistance, been trying to solve this problem for quite a while now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 17:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970842#M951233</guid>
      <dc:creator />
      <dc:date>2015-12-11T17:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970843#M951234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the data can be sorted, I would encourage you to do that and then use RecNo() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 18:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970843#M951234</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-11T18:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970844#M951235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe with a where peek; you can change the order by as you want (ascending/descending on 2, 3, n fields)&lt;/P&gt;&lt;P&gt;Or I'm missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product No, Date Created, Record No, Date Altered, Reason&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1, 4/8/2014, RN0001, 4/6/2014, Damaged&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0025, 4/6/2014, AutoRepaired&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2015, RN9090, 4/11/2014, Damaged&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 5/9/2015, RN0002, 3/9/2015, Creation&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 10/10/2015, RN0006, 9/9/2015, Damaged&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NewTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate load * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Where [Product No]&amp;lt;&amp;gt;Peek('Product No')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;order by [Product No], [Date Created] desc, [Record No] desc, [Date Altered] desc;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table Table; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 18:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970844#M951235</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-11T18:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970845#M951236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SunnyT,&lt;/P&gt;&lt;P&gt;It is a tricky situation considering different variables affecting this.&lt;/P&gt;&lt;P&gt;As i rmb, RecNo() takes data from the sorted loaded table or the original table?&lt;BR /&gt;if from the original table then there is no point sorting my data in a loadscript section beforehand?&lt;/P&gt;&lt;P&gt;basically in SAS, it would be like group by product id,&lt;/P&gt;&lt;P&gt;and if last.datecreated and last.recordno and last.datealtered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i do the same here. hmmmmmmmmmmmmmm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 18:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970845#M951236</guid>
      <dc:creator />
      <dc:date>2015-12-11T18:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970846#M951237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maxgro, do you mind explaining this further?&lt;/P&gt;&lt;P&gt;especially the &lt;EM&gt;&lt;STRONG&gt;Where [Product No]&amp;lt;&amp;gt;Peek('Product No')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;thank you.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 18:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970846#M951237</guid>
      <dc:creator />
      <dc:date>2015-12-11T18:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970847#M951238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek('Product No') is the last record read (I copied the QlikView help, below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where [Product No]&amp;lt;&amp;gt;Peek('Product No') &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;you get only the records with a different product no, one record for product no 1, one for 2, one for 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order by is needed to choose the first record by product. Change the order by and you have a different first record. The product no must always be the first field in the order by.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resident is needed because in Qlik you can only sort in a resident load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The noconcatenate is needed because the fields are the same and I don't want an automatic concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can play removing the where peek and adding the peek(....) as a new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor48"&gt;&lt;/A&gt;&lt;A name="peek"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;peek(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt;fieldname [ , row [ , tablename ] ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns the contents of the &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; in the record specified by &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; in the internal table &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt;. Data are fetched from the associative QlikView database.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt; must be given as a string (e.g. a quoted literal).&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Row&lt;/SPAN&gt; must be an integer. 0 denotes the first record, 1 the second and so on. Negative numbers indicate order from the end of the table. -1 denotes the last record read.&lt;/P&gt;&lt;P&gt;If no &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; is stated, -1 is assumed.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Tablename&lt;/SPAN&gt; is a table label, see &lt;A class="MCXref_0"&gt;&lt;EM&gt;Table Labels&lt;/EM&gt;&lt;/A&gt;, without the ending colon. If no &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; is stated, the current table is assumed. If used outside the load statement or referring to another table, the tablename must be included.&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales' )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; in the previous record read ( equivalent to &lt;SPAN class="Bold"&gt;previous(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;) &lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', 2 )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the third record read from the current internal table.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', -2 )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the second last record read into the current internal table.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', 0, 'Tab1' )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the first record read into the input table labeled Tab1.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load A, B, numsum( B, peek( 'Bsum' ) ) as Bsum...;&lt;/SPAN&gt; &lt;BR /&gt;creates an accumulation of B in Bsum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 19:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970847#M951238</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-11T19:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970848#M951239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maxgro, thanks for your explaination.&lt;/P&gt;&lt;P&gt;If thats the case, its true i will only get 1 record per product no, but how do i know which one to choose if say i have 3 product no 1, then diff date created, diff record no and diff date altered similar to the table of data above, Do note i have around 1 million records.&lt;/P&gt;&lt;P&gt;Sorry im relatively new to qlikview, do you mind providing a short example?&lt;BR /&gt;There are problems i highlighted to Sunnyindia in the above post as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the idea here is that, you sort desc, and pick the first record for each product no right?&lt;/P&gt;&lt;P&gt;How do i get it to read the first record? Since i don't know how many records there are per productno, there can be 1, 2 ,...n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 19:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970848#M951239</guid>
      <dc:creator />
      <dc:date>2015-12-11T19:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970849#M951240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You choose the record with the order by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this table&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product No, Date Created, Record No, Date Altered, Reason&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0001, 4/6/2014, Damaged&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0025, 4/6/2014, AutoRepaired&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;1, 4/1/2015, RN9090, 4/11/2014, Damaged&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;2, 5/9/2015, RN0002, 3/9/2015, Creation&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;3, 10/10/2015, RN0006, 9/9/2015, Damaged&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the last (bigger) product by &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateCreated,RecordNo,DateAltered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;add an order by product, date created desc, record no desc, date altered desc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NewTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate load * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where [Product No]&amp;lt;&amp;gt;Peek('Product No')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #ff6600;"&gt;order by [Product No], [Date Created] desc, [Record No] desc, [Date Altered] desc;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table Table; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik will read the record in this order&lt;/P&gt;&lt;P&gt;The records with product no &amp;lt;&amp;gt; previous product no (the where clause) are the records in bold&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;1, 4/1/2015, RN9090, 4/11/2014, Damaged&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0025, 4/6/2014, AutoRepaired&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/8/2014, RN0001, 4/6/2014, Damaged&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp; &lt;STRONG&gt;2, 5/9/2015, RN0002, 3/9/2015, Creation&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;3, 10/10/2015, RN0006, 9/9/2015, Damaged&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0004, 6/7/2015, AutoRepaired&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 6/8/2015, RN0003, 6/7/2015, Damaged&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG __jive_id="108836" alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108836_1.png" style="height: auto; width: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Do you agree?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you have different data and / or questions, post them.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 20:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970849#M951240</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-11T20:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates, getting latest value via multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970850#M951241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another example, in this one I want the oldest date altered, first rec no, ; you can see I changed the fields order in order by and replace descending with ascending (asc is the default, no need to specify)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NewTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate load * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where [Product No]&amp;lt;&amp;gt;Peek('Product No')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #ff6600;"&gt;order by [Product No], [Date Altered], [Record No], [Date Created];&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="108811" alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108811_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Dec 2015 07:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicates-getting-latest-value-via-multiple-criteria/m-p/970850#M951241</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-12T07:12:36Z</dc:date>
    </item>
  </channel>
</rss>

