<?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: How to set control limit based on datatable limit in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-control-limit-based-on-datatable-limit/m-p/711490#M89508</link>
    <description>&lt;P&gt;To add to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;'s response, I would also avoid giving a variable the same name as a data table column to avoid conflicts.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 13:14:03 GMT</pubDate>
    <dc:creator>mmarchandTSI</dc:creator>
    <dc:date>2023-12-21T13:14:03Z</dc:date>
    <item>
      <title>How to set control limit based on datatable limit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-control-limit-based-on-datatable-limit/m-p/711447#M89505</link>
      <description>&lt;P&gt;Greetings,&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;I'm using JMP 17, I tried to set control limit based on the datattable.&amp;nbsp;&lt;BR /&gt;&lt;SPAN class=""&gt;when I run the script, it prompts&amp;nbsp;me to set the control limit manually although i have assign the control limit value in script.&lt;BR /&gt;Is it able to set the control limit without manual key in (without prompt the windows)?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celine1_0-1703156171074.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60009i744990F179198F55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Celine1_0-1703156171074.png" alt="Celine1_0-1703156171074.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;below is the script that will prompt the set control limit window:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt2 = Open( "$SAMPLE_DATA/Little.jmp",invisible );
//[Get Limit]
Limit = New Table("C1",
    New Column("lcl", Character,"Nominal",Set Values({"4"}),
    ),
    New Column("ucl", Character,"Nominal",Set Values({"17"}),
    ),
    New Column("avg", Character,"Nominal",Set Values({"10.7"}),
    ),
    New Column("lcl2", Character,"Nominal",Set Values({"0"}),
    ),
    New Column("ucl2", Character,"Nominal",Set Values({"8"}),
    ),
    New Column("avg2",Character, "Nominal",Set Values({"3"})
    )
);

lcl = Char(Limit:lcl[1]);
ucl = Char(Limit:ucl[1]);
avg = Char(Limit:avg[1]);
lcl2 = Char(Limit:lcl2[1]);
ucl2 = Char(Limit:ucl2[1]);
avg2 = Char(Limit:avg2[1]);


g = dt2 &amp;lt;&amp;lt; Control Chart Builder( 
	Variables( Y( :yield ) ), 
	Chart(
		Position( 1 ),
		Limits,
		Warnings( Test 1( 1 ), Test 3( 1 ) ),
		Set Control Limits( {LCL( lcl ), UCL( ucl ), Avg( avg )}) 	
		),
	Chart(
		Position( 2 ),
		Limits,
		Warnings( Test Beyond Limits( 1 ) ),
		Set Control Limits( {LCL( lcl2 ), UCL( ucl2 ), Avg( avg2 )}) 	
	)	
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 11:11:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-control-limit-based-on-datatable-limit/m-p/711447#M89505</guid>
      <dc:creator>Celine1</dc:creator>
      <dc:date>2023-12-21T11:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to set control limit based on datatable limit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-control-limit-based-on-datatable-limit/m-p/711463#M89507</link>
      <description>&lt;P&gt;Store the values which are numeric as numeric values and it might work. And if that isn't enough you might have to evaluate them to Control Chart Builder &lt;LI-MESSAGE title="Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute" uid="48998" url="https://community.jmp.com/t5/JSL-Cookbook-Archived/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/m-p/48998#U48998" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 11:39:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-control-limit-based-on-datatable-limit/m-p/711463#M89507</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-21T11:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set control limit based on datatable limit</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-control-limit-based-on-datatable-limit/m-p/711490#M89508</link>
      <description>&lt;P&gt;To add to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;'s response, I would also avoid giving a variable the same name as a data table column to avoid conflicts.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 13:14:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-control-limit-based-on-datatable-limit/m-p/711490#M89508</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-12-21T13:14:03Z</dc:date>
    </item>
  </channel>
</rss>

