<?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: Delete Duplicate Data from Table using Time Stamp in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61637#M33264</link>
    <description>Oops....that should be a 1 not a nine</description>
    <pubDate>Wed, 27 Jun 2018 00:53:16 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-06-27T00:53:16Z</dc:date>
    <item>
      <title>Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61365#M33247</link>
      <description>&lt;P&gt;I apologize, i know this question has been asked quite a few times on this forum but I haven't been able to find a solution to my problem.&lt;/P&gt;&lt;P&gt;I have a large data set&amp;nbsp; ~24,000 rows of test data. Our process is to run a 5 step validation on 5 die and once we get the results we begin testing which ultimately means i am going to have repeat data on those 5 sites.&amp;nbsp; This 5 step validation verifies the contact points which sometimes results in tearing down our test equipment and setting it back up. I am looking to exclude the duplicate data from the 1st test (touchdown). Our tests are timestamped so it is easy to&amp;nbsp;distinguish between old and new. If anyone has a great solution to my problem i am all ears. Attached is the data table where i am trying to remove the duplicates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Yng&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 19:07:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61365#M33247</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2018-06-26T19:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61374#M33251</link>
      <description>&lt;P&gt;I am having trouble identifying from your attached data table, the rows that contain the data for Test 1 that you want to have deleted.&amp;nbsp; Could you please provide the row numbers for 1 or two cases that represent the target data?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 19:39:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61374#M33251</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-26T19:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61383#M33255</link>
      <description>&lt;P&gt;Sorry about that.. I deleted the&amp;nbsp;unnecessary columns and reattached.&lt;/P&gt;&lt;P&gt;test_output is the data that i need. RowCol is the identifier of the devices i am testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached the summary table of the RowCol {r2c3sr1sc1, r2c8sr1sc1, r4c5sr1sc1, r7c3sr1sc1, r7c8sr1sc1} have the duplicate data. I need to&amp;nbsp;delete&amp;nbsp;the initial tests of&amp;nbsp;those devices from the data set. They can be will have the&amp;nbsp;earliest Time Stamp.. These 5 devices are used in every set-up which will require me to remove from each test_output.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 16:07:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61383#M33255</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2018-06-28T16:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61629#M33257</link>
      <description>&lt;P&gt;I think this will do the trick....it simply finds all of the rows for a given RowCol that have a timestamp(ts) less than the maximum timestamp for that RowCol, and then deletes them.&amp;nbsp; It takes a couple of minutes to process, but it seems to work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

// remove formula leaving static data
try(dt:RowCol &amp;lt;&amp;lt; delete formula);

Summarize( dt, byGroup = by( "RowCol" ) );

For( i = 1, i &amp;lt;= N Items( byGroup ), i++,
	theRows = dt &amp;lt;&amp;lt; get rows where( dt:RowCol == byGroup[i] &amp;amp; :ts &amp;lt; Col Max( dt:ts, :RowCol ) );
	If( N Rows( theRows ) &amp;gt; 1,
		dt &amp;lt;&amp;lt; delete rows( theRows )
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jun 2018 02:03:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61629#M33257</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-27T02:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61633#M33261</link>
      <description>&lt;P&gt;Thank you so much! I am absolutely amazed at the skill you gentlefolk have with regards to scripting.. Here i was thinking that it was going to be some elaborate script that would accomplish this and you manage to get it in 10 lines..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You and Mr. &lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70" target="_blank"&gt;&lt;FONT color="#0066cc"&gt;gzmorgan0&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;have been extremely helpful..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Side note: my company has a P.O in the cycle that gets us JMP 14 which makes me super excited..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again Mr. &lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687" target="_blank"&gt;&lt;FONT color="#0066cc"&gt;txnelson&lt;/FONT&gt;&lt;/A&gt;..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yng (not so Yng anymore)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 23:35:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61633#M33261</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2018-06-26T23:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61635#M33263</link>
      <description>I am curious! I am an Industrial Engineer and coding is very difficult for me.. If() and For() have thrown me for a loop (forgive the pun) since the beginning. How were you able to determine 9 as the number?&lt;BR /&gt;&lt;BR /&gt;Thanks Again</description>
      <pubDate>Tue, 26 Jun 2018 23:43:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61635#M33263</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2018-06-26T23:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61637#M33264</link>
      <description>Oops....that should be a 1 not a nine</description>
      <pubDate>Wed, 27 Jun 2018 00:53:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61637#M33264</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-27T00:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61877#M33350</link>
      <description>&lt;P&gt;txnelson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question regarding removing duplicate data.. I forgot to mention that i do a blanket data pull that includes all wafers&amp;nbsp;in order for me to do an overall distribution and one way t-test analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data table that i attached was just the test data for one wafer..&amp;nbsp; Where in the script would i put the wafer_number? Would i include it in the summarize() part?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the new data table for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to delete the other one because it was pointed out to me that i had my sql script that pull from our servers...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:25:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61877#M33350</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2018-06-29T12:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61918#M33361</link>
      <description>&lt;P&gt;I rethought through the issue, and came up with a totally methodology.&amp;nbsp; This code will work for wafers&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

// Summarize the data to find the maximum :ts for each wafer/rowcol
dtSum = dt &amp;lt;&amp;lt; Summary(
	Group( :wafer_number, :RowCol ),
	Max( :ts ),
	Freq( "None" ),
	Weight( "None" ),
	statistics column name format( "column" ),
	link to original table( 0 )
);

// Join the data together matching only where the max :ts for each
// wafer/rowcol
dtFinal = dt &amp;lt;&amp;lt; Join(
	With( dtSum ),
	Merge Same Name Columns,
	By Matching Columns( :wafer_number = :wafer_number, :RowCol = :RowCol, :ts = :ts ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 1, 0 ),
	Preserve main table order( 1 )
);
dtSum &amp;lt;&amp;lt; delete columns("N Rows");
Close( dtSum, nosave );

// Delete all rows that do not match the maximum value of :ts within
// each Wafer, RowCol
dtFinal &amp;lt;&amp;lt; select where( Not( :Match Flag == 3 ) );
dtFinal &amp;lt;&amp;lt; delete rows;

// Get rid of the Match Flag column which is an artifact of the Join
dtFinal &amp;lt;&amp;lt; delete columns("Match Flag");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jun 2018 18:48:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61918#M33361</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-29T18:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61946#M33376</link>
      <description>&lt;P&gt;Thank you &lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687" target="_blank"&gt;&lt;FONT color="#0066cc"&gt;txnelson&lt;/FONT&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going to try this out this morning and will&amp;nbsp;incorporate it in my server pull script / table manipulation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated again..&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jun 2018 12:34:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/61946#M33376</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2018-06-30T12:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate Data from Table using Time Stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/63036#M33875</link>
      <description>&lt;P&gt;Good Afternoon Mr. &lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687" target="_blank"&gt;&lt;FONT color="#0066cc"&gt;txnelson&lt;/FONT&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought i might reach out to you here instead of creating a new thread. I am needing some assistance calculating yields and generating a pick list / wafer map using the output table from the script you provided deleting the duplicate data. I looked through the community forums and found a post that was started back in 2016 from what i can see. It is somewhat confusing and hard to follow with all the output variables and such. I haved attached&amp;nbsp;the tables that&amp;nbsp;are the final output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using split, stack, tabulate, summary and can't seem to come up with a solution. I actually have two separate tables that are identical except for a column named :trmode. As i mentioned i am trying to run yield analysis and then create a pick list and a wafer map.. I actually have another test_output table that i am currently working on using the tools that you fine gentlemen have provided to me..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dummy_data_tx: test_output have spec limits of (LSL = 20 and USL = 40) for each channel&lt;/P&gt;&lt;P&gt;dummy_data_rx: test_output have spec limits of (LSL =&amp;nbsp;15 and USL = 35)&amp;nbsp;for each channel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dummy_data_dc: test_output have spec limits of- (actually having issues with deleting the duplicate data with this test..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set_id (7000) - VDD_Dig (LSL =&amp;nbsp;0.03 and USL = 0.06)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_id (7100) - VDD_Dig (LSL =&amp;nbsp;0.03 and USL = 0.06)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_id (7200) - VDD_Dig (LSL =&amp;nbsp;0.03 and USL = 0.06)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance you can give me again, is greatly appreciated..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set_id (7000) -&amp;nbsp;ANALOG (LSL =&amp;nbsp;0.03 and USL = 0.07)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_id (7100) - VDD_Dig (LSL =&amp;nbsp;0.2 and USL = 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_id (7200) - VDD_Dig (LSL =&amp;nbsp;0.15 and USL = 0.35)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&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;</description>
      <pubDate>Mon, 16 Jul 2018 19:03:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-Data-from-Table-using-Time-Stamp/m-p/63036#M33875</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2018-07-16T19:03:50Z</dc:date>
    </item>
  </channel>
</rss>

