<?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 use a column property in a formula? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-a-column-property-in-a-formula/m-p/10058#M9814</link>
    <description>&lt;P&gt;Here's an example assuming the fitness data is the active table. Use the Column Info dialog to put your own spec limits in for, say, the oxy column. For testing I set the LSL, Target, USL as 40, 50, 60 respectively. Open the log window to see that the spec info was read correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = Data Table( "Fitness" );
specs = Column( dt1, "Oxy" ) &amp;lt;&amp;lt; get property( "Spec Limits" );
lsl = specs["LSL"];
usl = specs["USL"];
target = specs["Target"];
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show( lsl, usl, target );&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 17:54:11 GMT</pubDate>
    <dc:creator>mpb</dc:creator>
    <dc:date>2019-04-03T17:54:11Z</dc:date>
    <item>
      <title>How to use a column property in a formula?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-a-column-property-in-a-formula/m-p/10057#M9813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva; font-size: 12pt;"&gt;I've assigned the Column Property: Spec Limits; Target to some columns. I need to create a pass/fail formula that checks if the value is &amp;gt;= 25% of that column's Target value. Can the formula editor access the Target property? If not, what is the best way to script use of the column Target in a formula?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva; font-size: 12pt;"&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 18:28:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-a-column-property-in-a-formula/m-p/10057#M9813</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2014-11-07T18:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a column property in a formula?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-a-column-property-in-a-formula/m-p/10058#M9814</link>
      <description>&lt;P&gt;Here's an example assuming the fitness data is the active table. Use the Column Info dialog to put your own spec limits in for, say, the oxy column. For testing I set the LSL, Target, USL as 40, 50, 60 respectively. Open the log window to see that the spec info was read correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = Data Table( "Fitness" );
specs = Column( dt1, "Oxy" ) &amp;lt;&amp;lt; get property( "Spec Limits" );
lsl = specs["LSL"];
usl = specs["USL"];
target = specs["Target"];
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show( lsl, usl, target );&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 17:54:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-a-column-property-in-a-formula/m-p/10058#M9814</guid>
      <dc:creator>mpb</dc:creator>
      <dc:date>2019-04-03T17:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a column property in a formula?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-a-column-property-in-a-formula/m-p/10059#M9815</link>
      <description>&lt;P&gt;You can get column properties in a column formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/people/mpb" target="_blank"&gt;mpb&lt;/A&gt; showed the syntax. Here's what it would look like in a formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(:Weight &amp;lt;&amp;lt; get property( "Spec Limits" ))["LSL"]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The parentheses are important as you need to make sure the "LSL" subscript is on the result of the Get Property message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a data table showing this formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Jeff&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 17:53:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-a-column-property-in-a-formula/m-p/10059#M9815</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2019-04-03T17:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a column property in a formula?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-a-column-property-in-a-formula/m-p/10060#M9816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jeff. Was exactly what I was looking for: avoiding to having to script (not that scripting is bad, but formula editor is easier). I will use this a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 19:22:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-a-column-property-in-a-formula/m-p/10060#M9816</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2014-11-10T19:22:25Z</dc:date>
    </item>
  </channel>
</rss>

