<?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: Maintain the correct zones in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Maintain-the-correct-zones/m-p/766267#M94629</link>
    <description>&lt;P&gt;*below the average not over the average .&amp;nbsp;&lt;BR /&gt;example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConvergentWhale_0-1718611938662.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65268i992F2923BA78C93A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ConvergentWhale_0-1718611938662.png" alt="ConvergentWhale_0-1718611938662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here you can see that there is no LCL, thus i want to remove the zones below the green line, but i want to keep the zones above the green line. Also, when i have points on the A zone below the average, I don't want to have alerts because there is no LCL. Does someone knows how to do it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 08:14:17 GMT</pubDate>
    <dc:creator>ConvergentWhale</dc:creator>
    <dc:date>2024-06-17T08:14:17Z</dc:date>
    <item>
      <title>Maintain the correct zones</title>
      <link>https://community.jmp.com/t5/Discussions/Maintain-the-correct-zones/m-p/766252#M94628</link>
      <description>&lt;P&gt;On the control charts, I want to exclude the zones over the average when there is no lower limit.&amp;nbsp;&lt;BR /&gt;Here is my script :&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;        // Loop across the split data table and read the values for that column from the dt_limits_copy data table. Populate the Spec Limits and Control Limits
For(i = 1, i &amp;lt;= N Cols(dtsplitcopy), i++, 

	limrow = Try((pIDlimits_copy &amp;lt;&amp;lt; get rows where(pIDlimits_copy:labelny == cols[i]))[1], .);

	If(Is Missing(limRow) == 0,
		specs = {LSL(.), USL(.), Target(.), Show Limits(1)};

		specs["LSL"] = pIDlimits_copy:Lower Limit Value[limrow];
		specs["USL"] = pIDlimits_copy:Upper Limit value[limrow];
                   
		Column(dtsplitcopy, Char(cols[i])) &amp;lt;&amp;lt; set property("spec limits", Eval(specs));

		controllimits = {Individual Measurement(Avg(a), LCL(b), UCL(c))};
                   
                    // If lower limit is missing it is set to mean - (UCL - mean) = 2*mean - UCL as this will fix issues with zones otherwise being wrong if set to missing
		Substitute Into(controllimits,
			Expr(b),
				If(Is Missing(pIDlimits_copy:Lower_Control_Limit[limrow]),
					2 * pIDlimits_copy:Mean_Plot[limrow] - pIDlimits_copy:Upper_Control_Limit[limrow],
					pIDlimits_copy:Lower_Control_Limit[limrow]
				)
		); // this is done to get correct zones
		Substitute Into(controllimits, Expr(c), pIDlimits_copy:Upper_Control_Limit[limrow]);
		Substitute Into(controllimits, Expr(a), pIDlimits_copy:Mean_Plot[limrow]);
                   
		Column(dtsplitcopy, Char(cols[i])) &amp;lt;&amp;lt; set property("control limits", Eval(controllimits));
                    // These notes are added so that later we can choose to hide the "artificial lower limits" which is only included for the zones to be correct
		Column(dtsplitcopy, Char(cols[i])) &amp;lt;&amp;lt; set property(
			"notes",
			If(Is Missing(pIDlimits_copy:Lower_Control_Limit[limrow]),
				"Only one limit",
				"Two limits"
			)
		);
	);
);
       
dtsplitcopy &amp;lt;&amp;lt; sort(by(Date), Replace Table);

n_vars = N Items(cols);
        // Create window for a control chart for all parameters of a given product from a given site
NW = New Window(sitename || " " || prod_ID || " Report",
	For(v = 38, v &amp;lt;= n_vars, v += 1, //changed from column 37 to 38 to avoid 'Date' being printet as well.
               
		tmp = :column(v) &amp;lt;&amp;lt; get property("notes");
               
		Control Chart Builder(
			Show Two Shewhart Charts(0),
			Show Control Panel(0),
			Include Missing Categories(0),
			Name("AIAG (Ppk) Labeling")(1),
			Variables(Y(:Column(v))),
			Chart(
				Points(Statistic("Individual")),
				Limits(Show Lower Limit(tmp == "Two limits"), Sigma("Moving Range"), Zones(1)),
				Warnings(Test 1(0), Test 5(1), Test Beyond Limits(1))
			),

		);
	);
           
	vlb = V List Box(ob = Outline Box("Cpk estimates and print of data"));
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;What should I add to my script ?&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jun 2024 08:15:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Maintain-the-correct-zones/m-p/766252#M94628</guid>
      <dc:creator>ConvergentWhale</dc:creator>
      <dc:date>2024-06-17T08:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Maintain the correct zones</title>
      <link>https://community.jmp.com/t5/Discussions/Maintain-the-correct-zones/m-p/766267#M94629</link>
      <description>&lt;P&gt;*below the average not over the average .&amp;nbsp;&lt;BR /&gt;example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConvergentWhale_0-1718611938662.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65268i992F2923BA78C93A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ConvergentWhale_0-1718611938662.png" alt="ConvergentWhale_0-1718611938662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here you can see that there is no LCL, thus i want to remove the zones below the green line, but i want to keep the zones above the green line. Also, when i have points on the A zone below the average, I don't want to have alerts because there is no LCL. Does someone knows how to do it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 08:14:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Maintain-the-correct-zones/m-p/766267#M94629</guid>
      <dc:creator>ConvergentWhale</dc:creator>
      <dc:date>2024-06-17T08:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Maintain the correct zones</title>
      <link>https://community.jmp.com/t5/Discussions/Maintain-the-correct-zones/m-p/767002#M94714</link>
      <description>&lt;P&gt;I think this would require to you script those zones and shaded zones (it might be easier to do this in Graph Builder rather than in Control Chart Builder)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 10:57:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Maintain-the-correct-zones/m-p/767002#M94714</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-19T10:57:34Z</dc:date>
    </item>
  </channel>
</rss>

