<?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 clean up my Spec Limit Table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-clean-up-my-Spec-Limit-Table/m-p/419756#M66871</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pulling my spec limits from a data table that is&amp;nbsp; and they have a few issues I have noticed with my data:&lt;/P&gt;&lt;P&gt;Case 1. the LSL and the Target are the same number&amp;nbsp;&lt;/P&gt;&lt;P&gt;Case 2. The Target and the USL are the same number&amp;nbsp;&lt;/P&gt;&lt;P&gt;Case 3: If LSL and Target are Zero (0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a JSL solution to get rid of these issues?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;P&gt;Case 1: Remove the Target&amp;nbsp; if LSL is the same&lt;/P&gt;&lt;P&gt;Case 2: Remove the Target if the USL is the same&amp;nbsp;&lt;/P&gt;&lt;P&gt;Case 3:&amp;nbsp;Remove the LSL&amp;nbsp; if Target is Zero (0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example of what I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rmthomas_0-1632251086518.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35979i3340F978B1E3BA79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rmthomas_0-1632251086518.png" alt="rmthomas_0-1632251086518.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I would like to have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rmthomas_1-1632251398065.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35980i87FC5B96634084BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rmthomas_1-1632251398065.png" alt="rmthomas_1-1632251398065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not had any luck trying to get this to work with the JMP Scripting Index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Ryan&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 19:57:14 GMT</pubDate>
    <dc:creator>rmthomas</dc:creator>
    <dc:date>2023-06-09T19:57:14Z</dc:date>
    <item>
      <title>How to clean up my Spec Limit Table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-clean-up-my-Spec-Limit-Table/m-p/419756#M66871</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pulling my spec limits from a data table that is&amp;nbsp; and they have a few issues I have noticed with my data:&lt;/P&gt;&lt;P&gt;Case 1. the LSL and the Target are the same number&amp;nbsp;&lt;/P&gt;&lt;P&gt;Case 2. The Target and the USL are the same number&amp;nbsp;&lt;/P&gt;&lt;P&gt;Case 3: If LSL and Target are Zero (0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a JSL solution to get rid of these issues?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;P&gt;Case 1: Remove the Target&amp;nbsp; if LSL is the same&lt;/P&gt;&lt;P&gt;Case 2: Remove the Target if the USL is the same&amp;nbsp;&lt;/P&gt;&lt;P&gt;Case 3:&amp;nbsp;Remove the LSL&amp;nbsp; if Target is Zero (0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example of what I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rmthomas_0-1632251086518.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35979i3340F978B1E3BA79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rmthomas_0-1632251086518.png" alt="rmthomas_0-1632251086518.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I would like to have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rmthomas_1-1632251398065.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35980i87FC5B96634084BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rmthomas_1-1632251398065.png" alt="rmthomas_1-1632251398065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not had any luck trying to get this to work with the JMP Scripting Index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Ryan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:57:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-clean-up-my-Spec-Limit-Table/m-p/419756#M66871</guid>
      <dc:creator>rmthomas</dc:creator>
      <dc:date>2023-06-09T19:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean up my Spec Limit Table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-clean-up-my-Spec-Limit-Table/m-p/419775#M66872</link>
      <description>&lt;P&gt;This is fairly simple to script. Below is an example script which should handle the case1 (take note that order does matter with these):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Specs",
	Add Rows(5),
	New Column("Column 1",
		Character,
		"Nominal",
		Set Values({"Part 1", "Part 2", "Part 3", "Part 4", "Part 5"})
	),
	New Column("LSL", Numeric, "Continuous", Format("Best", 12), Set Values([0, 38, 93, 9, 9])),
	New Column("TARGET", Numeric, "Continuous", Format("Best", 12), Set Values([0, 40, 94, 10, 9])),
	New Column("USL",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Set Values([13, 41, 94, 10, 10])
	)
);

//ORDER MATTERS WITH THESE (see case1 vs case3)
//case 1&lt;BR /&gt;wait(2); //to help with visualization on what is going on
curRows = dt &amp;lt;&amp;lt; Get Rows Where(:LSL == :Target);
:Target[curRows] = .;
//case 2

//case 3&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can use &amp;lt;&amp;lt; Get Rows Where(condition) to get the rows you want to modify in a matrix and then use that matrix with &lt;A href="https://community.jmp.com/t5/Uncharted/Data-table-subscripting/ba-p/21013" target="_blank" rel="noopener"&gt;data table subscripting&lt;/A&gt; to update values.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 19:29:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-clean-up-my-Spec-Limit-Table/m-p/419775#M66872</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-09-21T19:29:48Z</dc:date>
    </item>
  </channel>
</rss>

