<?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 evaluate each column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447750#M69447</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;txnelson,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Thank you for explaining it clearly. Just an additional question,&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;How can I apply these in multiple columns? with different set of limits&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 10:19:35 GMT</pubDate>
    <dc:creator>UserID16644</dc:creator>
    <dc:date>2021-12-22T10:19:35Z</dc:date>
    <item>
      <title>How to evaluate each column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447622#M69441</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have Amplitude 21 as an example data table, and for example, I want to determine if the amplitude passes or fail. How can I evaluate each columns if they are pass/fail?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amplitude limit is 4. Every amplitude value with &amp;gt; 4 and &amp;lt; 4 will be marked as failed using a new column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Amplitude 21.jmp");
New Column ("Pass/Fail", Character)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:41:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447622#M69441</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-06-10T23:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to evaluate each rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447641#M69442</link>
      <description>&lt;P&gt;You can use For Each Row() !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
For Each Row( :height = -:height );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Dec 2021 01:19:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447641#M69442</guid>
      <dc:creator>jemg</dc:creator>
      <dc:date>2021-12-22T01:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to evaluate each column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447688#M69444</link>
      <description>&lt;P&gt;I don't understand how Amplitude can be&amp;nbsp;&lt;SPAN&gt;&amp;gt; 4 and &amp;lt; 4 unless you are looking for Amplitude values that has the exact value of 4.Below are 3 different ways to do value checking.&amp;nbsp; I hope they make sense to you.&amp;nbsp; BTW, formulas automatically loop through all rows in a data table and run the JSL on each row.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Amplitude 21.jmp" );
New Column( "Pass/Fail",
	Character,
	formula( If( 4 &amp;lt; :amplitude &amp;lt; 6, "Pass", "Fail" ) )
);
//or
New Column( "Pass/Fail 2",
	Character,
	formula(
		If( :amplitude &amp;lt; 4 | :amplitude &amp;gt; 6,
			"Fail",
			"Pass"
		)
	)
);
//or if you are looking for values that are exactly 4
New Column( "Pass/Fail 3",
	Character,
	formula(
		If( :amplitude == 4 ,
			"Fail",
			"Pass"
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please take the time to read the Discovering JMP documentation, found under the Help pull down menu.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 05:46:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447688#M69444</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-12-22T05:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to evaluate each column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447750#M69447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;txnelson,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Thank you for explaining it clearly. Just an additional question,&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;How can I apply these in multiple columns? with different set of limits&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 10:19:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447750#M69447</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2021-12-22T10:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to evaluate each column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447756#M69451</link>
      <description>&lt;P&gt;To make sure that we are fully understanding each other, in regards to columns and rows.&amp;nbsp; In the Amplitude 21 data table, there are 4 columns(Labels, Amplitude, x, y)&amp;nbsp; and 21 rows.&amp;nbsp; Therefore your question&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"&lt;SPAN&gt;How can I apply these in multiple columns? with different set of limits"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You would just create an additional column.&amp;nbsp; If you wanted to apply limits to both Column Amplitude and Column X it would look like this&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Amplitude 21.jmp" );
New Column( "Pass/Fail",
	Character,
	formula( If( 4 &amp;lt; :amplitude &amp;lt; 6, "Pass", "Fail" ) )
);
New Column( "Pass/Fail X",
	Character,
	formula( If( 0.5 &amp;lt; :x &amp;lt; 2, "Pass", "Fail" ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 13:28:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-evaluate-each-column/m-p/447756#M69451</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-12-22T13:28:56Z</dc:date>
    </item>
  </channel>
</rss>

