<?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 How to filter out duplicate IDs leaving only the last duplicate? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13371#M12608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping there is a JSL solution where I can just use a '&lt;STRONG&gt;&amp;lt;&amp;lt;Select Where&lt;/STRONG&gt;' message to the datatable. I have a datatable of data in which each row of represents a device tested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 numeric columns that specify a unique identifier for each row, i.e. an 'ID' column and a 'wafer number' column. There is also another 2 columns that specify date and time respectfully. The problem is that sometimes, devices are retested within the same dataset, which leads to duplicate values for the ID and wafer columns. I'd like to be able to select all unique IDs and in the case of duplicate IDs ensure that only the last value (either by row number or timestamp) is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a sample datatable showing what I'm looking for. The two parts that were retested (highlighted here in red, corresponding retests are in green) are excluded and everything else is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9240_pastedImage_2.png" style="width: 724px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1836i41938933ECF9577F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9240_pastedImage_2.png" alt="9240_pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 23:55:28 GMT</pubDate>
    <dc:creator>nkelleh</dc:creator>
    <dc:date>2016-10-18T23:55:28Z</dc:date>
    <item>
      <title>How to filter out duplicate IDs leaving only the last duplicate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13371#M12608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping there is a JSL solution where I can just use a '&lt;STRONG&gt;&amp;lt;&amp;lt;Select Where&lt;/STRONG&gt;' message to the datatable. I have a datatable of data in which each row of represents a device tested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 numeric columns that specify a unique identifier for each row, i.e. an 'ID' column and a 'wafer number' column. There is also another 2 columns that specify date and time respectfully. The problem is that sometimes, devices are retested within the same dataset, which leads to duplicate values for the ID and wafer columns. I'd like to be able to select all unique IDs and in the case of duplicate IDs ensure that only the last value (either by row number or timestamp) is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a sample datatable showing what I'm looking for. The two parts that were retested (highlighted here in red, corresponding retests are in green) are excluded and everything else is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9240_pastedImage_2.png" style="width: 724px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1836i41938933ECF9577F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9240_pastedImage_2.png" alt="9240_pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 23:55:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13371#M12608</guid>
      <dc:creator>nkelleh</dc:creator>
      <dc:date>2016-10-18T23:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out duplicate IDs leaving only the last duplicate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13372#M12609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one option could be to create one column for date and time (concatenating) . this will allow you to use the table summary by ID and WaferNum and requesting the Max value of date and time. this will produce a new clean table for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 10:43:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13372#M12609</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2015-07-16T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out duplicate IDs leaving only the last duplicate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13373#M12610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this. I did see an example of this all right, but I was hoping there is a way to accomplish this by specifying a condition within the &amp;lt;&amp;lt; Select Where() message to the datatable. I get the feeling it should be possible, but not sure how you would go about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, another consideration is that within a test batch, the date and time stamp don't change, which means that you'll still have a duplicates where the only difference is in the row number when limited to the columns I specified. Cheers in any case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 13:02:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13373#M12610</guid>
      <dc:creator>nkelleh</dc:creator>
      <dc:date>2015-07-16T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out duplicate IDs leaving only the last duplicate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13374#M12611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take a look at these discussions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/message/213249" target="_blank"&gt;Re: Syntax: How do I create an index column by ID&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/message/172249" target="_blank"&gt;JMP formula : Rank by group&lt;/A&gt;&lt;/P&gt;&lt;P&gt;once you will establish the ranking you can filter.&lt;/P&gt;&lt;P&gt;ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:19:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13374#M12611</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2016-10-28T13:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out duplicate IDs leaving only the last duplicate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13375#M12612</link>
      <description>&lt;P&gt;I would sort the table by ID, WaferNum, date and time (in that order), so that rows with the same ID and WaferNum follow each other in the table, with the older one(s) above the most recent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would then create a new column called "Duplicate", with this formula (you should be able to copy it directly and paste into JMP):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :ID == :ID[Row() + 1, Empty()] &amp;amp; :WaferNum == :WaferNum[Row() + 1, Empty()],
1,
0
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will flag rows that are followed by another row with the same ID and WaferNum (i.e. replicatesthat are not the most recent) with a "1".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use SelectWhere Duplicate == 0.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:28:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13375#M12612</guid>
      <dc:creator>jvillaumie</dc:creator>
      <dc:date>2018-06-15T13:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out duplicate IDs leaving only the last duplicate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13376#M12613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like so many things with JMP there are multiple ways to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first thing to note is that the &lt;STRONG&gt;&lt;A href="http://www.jmp.com/support/help/Statistical_Functions.shtml" rel="noopener noreferrer" target="_blank"&gt;Col Maximum()&lt;/A&gt;&lt;/STRONG&gt; function will take optional &lt;EM&gt;ByVariable&lt;/EM&gt; arguments.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9243_JMPScreenSnapz001.png" style="width: 247px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1840i68EB2A91E258C664/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9243_JMPScreenSnapz001.png" alt="9243_JMPScreenSnapz001.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, I think you can use this to construct your condition for selecting rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P style="font-size: 16px; font-family: Courier;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Date &lt;SPAN style="color: #011993;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;Col Maximum&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Date&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;ID&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;WaferNum &lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Time &lt;SPAN style="color: #011993;"&gt;==&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-size: 16px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Col Maximum&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Time&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;ID&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;WaferNum&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Date &lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 23:56:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13376#M12613</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2016-10-18T23:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out duplicate IDs leaving only the last duplicate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13377#M12614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff, your approach would have worked great for me except that on further examination of the data, turns out there were duplicates with the same Date and Time Values (apologies, this was not shown in example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end, I went along with jvillaumie's suggestion. Below is my implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;mydt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Current Data Table&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green;"&gt;//Sort columns by ID, wafer num, date in that order&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;mydt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;Sort&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Replace Table&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; By&lt;STRONG&gt;(&lt;/STRONG&gt;:ID&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Order&lt;STRONG&gt;(&lt;/STRONG&gt;Ascending&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;mydt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;Sort&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Replace Table&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; By&lt;STRONG&gt;(&lt;/STRONG&gt;:WaferNum&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Order&lt;STRONG&gt;(&lt;/STRONG&gt;Ascending&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;mydt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;Sort&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Replace Table&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; By&lt;STRONG&gt;(&lt;/STRONG&gt;:Date&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Order&lt;STRONG&gt;(&lt;/STRONG&gt;Ascending&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green;"&gt;//Select duplicates, i.e. if the next row has the same values for ID and waferNum as the current row, i.e. everything but the last duplicate&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;mydt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;Select Where&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: black; font-family: 'Courier New';"&gt;:ID&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;:ID&lt;/SPAN&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Row&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;+&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;] &lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; &lt;STRONG style="color: black; font-family: 'Courier New';"&gt;:WaferNum &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;:WaferNum&lt;/SPAN&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Row&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;+&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green;"&gt;//Delete Selection&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;mydt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: navy; font-family: 'Courier New';"&gt;&lt;STRONG&gt;DeleteRows&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #f03246;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 13:49:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13377#M12614</guid>
      <dc:creator>nkelleh</dc:creator>
      <dc:date>2015-07-21T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out duplicate IDs leaving only the last duplicate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13378#M12615</link>
      <description>&lt;P&gt;Hi nkelleh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I said "I would sort the table by ID, WaferNum, date and time (in that order)", I meant&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Data Table() &amp;lt;&amp;lt; Sort(By(:ID, :WaferNum, :Date, :Time), Order(Ascending));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have a very strong suspicion that running several Sort (single column as an argument for each) one after the other, like you did, will not give the same results as running a single Sort with several columns as arguments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:28:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-filter-out-duplicate-IDs-leaving-only-the-last-duplicate/m-p/13378#M12615</guid>
      <dc:creator>jvillaumie</dc:creator>
      <dc:date>2018-06-15T13:28:49Z</dc:date>
    </item>
  </channel>
</rss>

