<?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 rows in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/78966#M36636</link>
    <description>&lt;P&gt;Select Duplicat Rows() function will highlight rows for a specified column(s)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt;
Select duplicate rows( Match( :name ) );
xx=dt&amp;lt;&amp;lt;get selected rows;
if(n rows(xx)&amp;gt;0,
	dt&amp;lt;&amp;lt;delete rows;	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Oct 2018 20:45:53 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-10-15T20:45:53Z</dc:date>
    <item>
      <title>Delete Duplicate rows</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/78963#M36634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a datable that I want to delete rows on a duplicate value in a col.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Rami&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 20:28:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/78963#M36634</guid>
      <dc:creator>rshehadah</dc:creator>
      <dc:date>2018-10-15T20:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate rows</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/78966#M36636</link>
      <description>&lt;P&gt;Select Duplicat Rows() function will highlight rows for a specified column(s)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt;
Select duplicate rows( Match( :name ) );
xx=dt&amp;lt;&amp;lt;get selected rows;
if(n rows(xx)&amp;gt;0,
	dt&amp;lt;&amp;lt;delete rows;	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Oct 2018 20:45:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/78966#M36636</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-15T20:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate rows</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/79039#M36664</link>
      <description>&lt;P&gt;Hi Rami,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim's script is a nice option, but if you have JMP 14 you can also select duplicate rows in a column by point and click.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Highlight the column of interest, go to the Rows dropdown or red hot spot.&amp;nbsp; Rows &amp;gt; Row Selection &amp;gt; Select Duplicate Rows.&amp;nbsp; All of the duplicate values will be highlighted in by row number.&amp;nbsp; Right click anywhere in the blue region and select delete.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 17:53:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/79039#M36664</guid>
      <dc:creator>Bill_Worley</dc:creator>
      <dc:date>2018-10-16T17:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate rows</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/79344#M36680</link>
      <description>&lt;P&gt;&lt;SPAN class="transSent"&gt;It is recommended that JMP continue to improve to enable all automation with JSL.&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:38:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/79344#M36680</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-10-17T14:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate rows</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/280938#M54404</link>
      <description>&lt;P&gt;I have a data table which has column called Part_number.I need to remove duplicate part_numbers.The delete duplicate rows options suggested above deosnt work as in no rows get selected.The column is character,nominal type.I'm using JMP12.&lt;/P&gt;&lt;P&gt;Any other options that I can try?&lt;/P&gt;&lt;P&gt;Also does this function retain the first row and delete the repititions as in Excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 01:19:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/280938#M54404</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2020-07-22T01:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate rows</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/280946#M54408</link>
      <description>&lt;P&gt;The Select Duplicate Rows() function was not in JMP 12.&amp;nbsp; The below code should do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.JMP" );

dt &amp;lt;&amp;lt; sort( by( :Part_number ), order( ascending ), Replace Table( 1 ) );
dt &amp;lt;&amp;lt; New Column( "dup",
	formula(
		If(
			Row() == 1, value = 1,
			:Part_number != Lag( :Part_number ), value = 1,
			value
			++);
			value;
	)
);

dt &amp;lt;&amp;lt; select where( :dup &amp;gt; 1);

dt &amp;lt;&amp;lt; delete rows;

dt &amp;lt;&amp;lt; delete column( "dup" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jul 2020 03:04:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/280946#M54408</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-22T03:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate rows</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/319317#M56981</link>
      <description>&lt;P&gt;Thanks Bill for the tip/trick.&lt;/P&gt;&lt;P&gt;I sometimes have duplicate rows but struggle how to delete them. Just thinking about JMP Community and it helps to solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 18:24:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/319317#M56981</guid>
      <dc:creator>CanhKhong</dc:creator>
      <dc:date>2020-10-08T18:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate rows</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/805703#M98405</link>
      <description>&lt;P&gt;Hi txnelson!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to say, I keep seeing your solutions whenever I look up JMP help, and I really appreciate all the work you've done helping people out. You've saved me a ton of time and helped me understand this software better, and it's really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;A happy JMP user&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 14:00:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-Duplicate-rows/m-p/805703#M98405</guid>
      <dc:creator>Thomas_Kilmer</dc:creator>
      <dc:date>2024-10-15T14:00:16Z</dc:date>
    </item>
  </channel>
</rss>

