<?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: Evaluate duplicate data on same column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Evaluate-duplicate-data-on-same-column/m-p/474384#M71910</link>
    <description>&lt;P&gt;Many ways to handle this. Writing one formula like&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;suggested, or you could include a few more steps and have a bit simpler formula with extra step&lt;/P&gt;
&lt;P&gt;1. Recode Column 2 in such a way that Good is 0 and Outlier 1 (can use JMPs Recode for this), make sure new column is numeric&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1648617375012.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41285i4A5445CA551A369A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1648617375012.png" alt="jthi_0-1648617375012.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Use formula which will calculate sum (or max value) of the data in the new column (this could be also done with Summary and join or many other ways)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(ColSum(:"Column 22"n, :"Column 1"n) &amp;gt;= 1,
	"Outlier",
	"Good"
)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1648617408616.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41286i523044123AEC7782/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1648617408616.png" alt="jthi_1-1648617408616.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Then depending on what you want to do with your data, you could remove duplicates or just the values. Select columns Column 1 and Column 3 and then use JMPs select duplicate rows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1648617467404.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41287i4C0A2F64931EB742/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1648617467404.png" alt="jthi_2-1648617467404.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4. From here you could delete the rows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1648617493906.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41288i77DF857327508866/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1648617493906.png" alt="jthi_3-1648617493906.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;5. Or if you want to keep the duplicated values but just clear the Column 3 values. While &lt;STRONG&gt;holding alt&lt;/STRONG&gt; press on Column3 header so you have only Column3 selected&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1648617616183.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41289iF0AFC427F717DBE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1648617616183.png" alt="jthi_4-1648617616183.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and press delete&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_5-1648617637796.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41290iDE19D9D3B99C7F02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_5-1648617637796.png" alt="jthi_5-1648617637796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 05:22:37 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-03-30T05:22:37Z</dc:date>
    <item>
      <title>Evaluate duplicate data on same column</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluate-duplicate-data-on-same-column/m-p/474355#M71908</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have these duplicate data where I need to evaluate them as one. Is it possible to evaluate data as one on the same column? I have this example. If column1 (same data value) has different column2 values, column3 result should be Outlier and be counted as one and not in duplicate values like column1. But if their column2 has the same "Good" values, column3 value will be "good".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this evaluation possible?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Column 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Column 2&amp;nbsp; &amp;nbsp; &amp;nbsp;Column 3&lt;BR /&gt;5631823522&amp;nbsp; &amp;nbsp; &amp;nbsp;Good&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Outlier&lt;BR /&gt;5631823522&amp;nbsp; &amp;nbsp; &amp;nbsp;Outlier&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;563180572E&amp;nbsp; &amp;nbsp; Good&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Good&lt;BR /&gt;563180572E&amp;nbsp; &amp;nbsp; Good&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;5631826915&amp;nbsp; &amp;nbsp; Outlier&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Outlier&lt;BR /&gt;5631826915&amp;nbsp; &amp;nbsp; Good&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:46:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluate-duplicate-data-on-same-column/m-p/474355#M71908</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-06-10T23:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate duplicate data on same column</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluate-duplicate-data-on-same-column/m-p/474376#M71909</link>
      <description>&lt;P&gt;Here is one way of handling this.&amp;nbsp; The below is a formula&amp;nbsp; for Column 3&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Row() == 1 | :Column 1 != Lag( :Column 1 ),
	theColumn = :Column 1;
	theRows = Current Data Table() &amp;lt;&amp;lt; get rows where( :Column 1 == theColumn );
	x = "Good";
	For( i = 1, i &amp;lt;= N Rows( theRows ), i++,
		If( :Column 2[theRows[i]] == "Outlier",
			x = "Outlier";
			Break();
		)
	);
	x;
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Mar 2022 04:28:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluate-duplicate-data-on-same-column/m-p/474376#M71909</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-30T04:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate duplicate data on same column</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluate-duplicate-data-on-same-column/m-p/474384#M71910</link>
      <description>&lt;P&gt;Many ways to handle this. Writing one formula like&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;suggested, or you could include a few more steps and have a bit simpler formula with extra step&lt;/P&gt;
&lt;P&gt;1. Recode Column 2 in such a way that Good is 0 and Outlier 1 (can use JMPs Recode for this), make sure new column is numeric&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1648617375012.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41285i4A5445CA551A369A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1648617375012.png" alt="jthi_0-1648617375012.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Use formula which will calculate sum (or max value) of the data in the new column (this could be also done with Summary and join or many other ways)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(ColSum(:"Column 22"n, :"Column 1"n) &amp;gt;= 1,
	"Outlier",
	"Good"
)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1648617408616.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41286i523044123AEC7782/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1648617408616.png" alt="jthi_1-1648617408616.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Then depending on what you want to do with your data, you could remove duplicates or just the values. Select columns Column 1 and Column 3 and then use JMPs select duplicate rows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1648617467404.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41287i4C0A2F64931EB742/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1648617467404.png" alt="jthi_2-1648617467404.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4. From here you could delete the rows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1648617493906.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41288i77DF857327508866/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1648617493906.png" alt="jthi_3-1648617493906.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;5. Or if you want to keep the duplicated values but just clear the Column 3 values. While &lt;STRONG&gt;holding alt&lt;/STRONG&gt; press on Column3 header so you have only Column3 selected&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1648617616183.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41289iF0AFC427F717DBE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1648617616183.png" alt="jthi_4-1648617616183.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and press delete&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_5-1648617637796.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41290iDE19D9D3B99C7F02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_5-1648617637796.png" alt="jthi_5-1648617637796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 05:22:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluate-duplicate-data-on-same-column/m-p/474384#M71910</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-30T05:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate duplicate data on same column</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluate-duplicate-data-on-same-column/m-p/474389#M71911</link>
      <description>&lt;P&gt;I would use summary for this,&lt;/P&gt;
&lt;P&gt;put Column 1 into Group to ensure single occurrence,&lt;/P&gt;
&lt;P&gt;and put Column 2 into Subgroup, to be able to see what has been in Column 2.&lt;/P&gt;
&lt;P&gt;Than you can take e.g. "N(Outlier)" to see, whether there as been an outlier, or whatever you need.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/16.1/?os=win&amp;amp;source=application&amp;amp;utm_source=helpmenu&amp;amp;utm_medium=application#page/jmp/summarize-your-data.shtml#" target="_blank"&gt;Summarize Your Data (jmp.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georg_0-1648622488648.png" style="width: 774px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41294iD4828FFD1DCEE378/image-dimensions/774x360?v=v2" width="774" height="360" role="button" title="Georg_0-1648622488648.png" alt="Georg_0-1648622488648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 06:43:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluate-duplicate-data-on-same-column/m-p/474389#M71911</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2022-03-30T06:43:22Z</dc:date>
    </item>
  </channel>
</rss>

