<?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 the control limit for a column using other columns? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315306#M56743</link>
    <description>Thanks Jim&lt;BR /&gt;this method works for the Spec limits but does not show the control limits. I am not sure what is wrong</description>
    <pubDate>Thu, 01 Oct 2020 03:23:10 GMT</pubDate>
    <dc:creator>Mikasa</dc:creator>
    <dc:date>2020-10-01T03:23:10Z</dc:date>
    <item>
      <title>how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315142#M56720</link>
      <description>&lt;P&gt;Hi every one.&lt;/P&gt;
&lt;P&gt;I know this question might be repeated. I have read all answers for example&amp;nbsp;&lt;LI-MESSAGE title="Getting control limits from column property" uid="70514" url="https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70514#U70514" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a column (:X) and I have three columns for :X control limits,&amp;nbsp; (UCL,LCL, Ave). and I like to set the control limits to :X, but I am confused.&lt;/P&gt;
&lt;P&gt;I tried ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;:X&amp;lt;&amp;lt;Set Property("Control Limits", {XBar(Ave(:Center Line[1]),LCL( :Lower Limit[1] ), UCL( Upper Limit[1] )), Show Control Limits( 1)});&lt;/P&gt;
&lt;P&gt;But it does not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, sometimes in UCL,LCL, and AVE columns, I have different values for different rows in :X&lt;/P&gt;
&lt;P&gt;I know it is not possible to have different set of Spec limits for a Colum but I was wondering if there is a way to do that for Control limit.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:39:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315142#M56720</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2023-06-09T23:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315163#M56722</link>
      <description>&lt;P&gt;Sorry, I'm a bit confused by your inquiry. &amp;nbsp;Why don't you let JMP calculate the control limits (or create control charts) on your x column? &amp;nbsp;You realize control limits are a function of the data, how it was collected and how you are subgrouping it?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 19:07:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315163#M56722</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2020-09-30T19:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315192#M56728</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4358"&gt;@statman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a report and my data table include all data that I pull by JMP. I wrote an script for my report and making a HTML report at the end. This script has to be run every day, so I am not sure if I can do what you are suggesting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 20:05:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315192#M56728</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-09-30T20:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315194#M56730</link>
      <description>&lt;P&gt;Hopefully you aren't just changing control limits every day? And hopefully the control limits are appropriate for your data set.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 20:17:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315194#M56730</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2020-09-30T20:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315258#M56736</link>
      <description>No the data table will be updated daily too. and all the data are pulled out from the same tool and appropriate.</description>
      <pubDate>Wed, 30 Sep 2020 21:27:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315258#M56736</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-09-30T21:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315259#M56737</link>
      <description>&lt;P&gt;The values within Lists will not be executed, therefore, you need to use the below methodology to create the JSL needed to upload the Control Limits&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(
	Substitute(
			Expr(
				:X &amp;lt;&amp;lt; Set Property(
					"Control Limits",
					{XBar( Ave( __avg__ ), LCL( __LCL__ ), UCL( __UCL__ ) ),
					Show Control Limits( 1 )}
				)
			),
		Expr( __avg__ ), :Center Line[1],
		Expr( __LCL__ ), :Lower Limit[1],
		Expr( __UCL__ ), :Upper Limit[1]
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 21:34:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315259#M56737</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-30T21:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315306#M56743</link>
      <description>Thanks Jim&lt;BR /&gt;this method works for the Spec limits but does not show the control limits. I am not sure what is wrong</description>
      <pubDate>Thu, 01 Oct 2020 03:23:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315306#M56743</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-10-01T03:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315307#M56744</link>
      <description>&lt;P&gt;I was going to comment on your "Show Limits()" element you added to the Control Limits specification.&amp;nbsp; As far as I know, Spec Limits and Response are the only limits that will automatically display on charts and graphs.&lt;/P&gt;
&lt;P&gt;Control limits can be set for different phases in the data table.&amp;nbsp; The Control Chart Platforms can handle the phases and the displaying of control limits.&amp;nbsp; Once you go outside of the Control Limits Platforms, the displaying of control limits has to be done by adding JSL to the charts to display the limits.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 03:38:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315307#M56744</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-01T03:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315426#M56757</link>
      <description>&lt;P&gt;sorry Jim, I think I am confused with your answer,&lt;/P&gt;&lt;P&gt;I added&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eval(&lt;BR /&gt;Substitute(&lt;BR /&gt;Expr(&lt;BR /&gt;:REM OX &amp;lt;&amp;lt; Set Property(&lt;BR /&gt;"Control Limits",&lt;BR /&gt;{XBar( Ave( __avg__ ), LCL( __LCL__ ), UCL( __UCL__ ) ),&lt;BR /&gt;Show Control Limits( 1 )}&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;Expr( __avg__ ), :Center Line[1],&lt;BR /&gt;Expr( __LCL__ ), :Lower Limit[1],&lt;BR /&gt;Expr( __UCL__ ), :Upper Limit[1],&lt;BR /&gt;),&lt;BR /&gt;);&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to my script to upload the limits.&lt;/P&gt;&lt;P&gt;It does not show any thing on the charts.&amp;nbsp; It is working for Spec limits.&lt;/P&gt;&lt;P&gt;I could not understand your comment about Show Control limits()&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 15:18:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315426#M56757</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-10-01T15:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315532#M56761</link>
      <description>As I stated in my last response:&lt;BR /&gt; As far as I know, Spec Limits and Response are the only limits that will automatically display on charts and graphs&lt;BR /&gt;&lt;BR /&gt;Control Limits do not have the capability to automatically be displayed on charts, except for Control Charts!</description>
      <pubDate>Thu, 01 Oct 2020 20:00:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/315532#M56761</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-01T20:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/317055#M56842</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp; &amp;nbsp;I'm pretty sure you're right.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you think it would be possible to have an axis property reference a control limit property?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:11:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/317055#M56842</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2020-10-05T19:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/317133#M56844</link>
      <description>&lt;P&gt;Some JMP platforms might use more than one column property, but they are not linked in any way, if that is what you are asking. Your script would have to use 'setter and getter' actions to coordinate anything beyond what JMP does automatically.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 21:29:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/317133#M56844</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-10-05T21:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the control limit for a column using other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/317401#M56869</link>
      <description>&lt;P&gt;Here is a simple example that&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Populates the Control Limits for a column&lt;/LI&gt;
&lt;LI&gt;Runs a Distribution Platform&lt;/LI&gt;
&lt;LI&gt;Adds the Control Limits from the displayed column on the graphical output&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="controllimits.PNG" style="width: 281px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27193i06858326C75BD148/image-size/large?v=v2&amp;amp;px=999" role="button" title="controllimits.PNG" alt="controllimits.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

// Open a sample data table
dt=open("$SAMPLE_DATA/big class.jmp" );

// Add a column to be used as the subgroup
dt &amp;lt;&amp;lt; new column( "group", formula(Mod(Row(), 4)));

// Add the Control Limits columns to the data table
dt &amp;lt;&amp;lt; new column("Center Line", set values({62.55}));
dt &amp;lt;&amp;lt; new column("Lower Limit", set values({58.08}));
dt &amp;lt;&amp;lt; new column("Upper Limit", set values({67.02}));

// Set the name of the Height column to match the previously distributed
// code
dt:height &amp;lt;&amp;lt; set name("X");


// Set the column Property for the Control Limits
Eval(
	Substitute(
			Expr(
				:X &amp;lt;&amp;lt; Set Property(
					"Control Limits",
					{XBar( avg( __avg__ ), LCL( __LCL__ ), UCL( __UCL__ ) )}
				)
			),
		Expr( __avg__ ), :Center Line[1],
		Expr( __LCL__ ), :Lower Limit[1],
		Expr( __UCL__ ), :Upper Limit[1]
	)
);

// Run a platform that creates a graph
dist = Distribution( Continuous Distribution( Column( :X ) ) );

// Extract the Control Limits from the column
contLimits = :X &amp;lt;&amp;lt; get property("Control Limits");

// Parse through the returned Limits to get the LCL, UCL and Avg
contLimits=char(contLimits);
found=contains(contLimits,"XBar");
contLimits=substr(contLimits,found+5);
found=contains(contLimits,"avg");
contLimits=substr(contLimits,found+4);
theAvg = num( word(1,contLimits,")"));
found=contains(contLimits,"LCL");
contLimits=substr(contLimits,found+4);
theLCL = num( word(1,contLimits,")"));
found=contains(contLimits,"UCL");
contLimits=substr(contLimits,found+4);
theUCL = num( word(1,contLimits,")"));

// Add reference lines to the graph with the Control Limit values
report(dist)[AxisBox(1)] &amp;lt;&amp;lt; add ref line(theLCL,Solid,Black,"LCL");
report(dist)[AxisBox(1)] &amp;lt;&amp;lt; add ref line(theUCL,Solid,Black,"UCL");
report(dist)[AxisBox(1)] &amp;lt;&amp;lt; add ref line(theAvg,Solid,Black,"Ave");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Oct 2020 16:11:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-set-the-control-limit-for-a-column-using-other-columns/m-p/317401#M56869</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-06T16:11:52Z</dc:date>
    </item>
  </channel>
</rss>

