<?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: Want to check each numeric column for each row of test and then assign a value (yes or No) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/330383#M57961</link>
    <description>&lt;P&gt;Here is a hardcoded straight forward piece of formula that will create the results you want, given your latest description&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="or1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28139iEBE2A0E9E2BE9F3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="or1.PNG" alt="or1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	(:value 1 &amp;gt; 0 &amp;amp; :value 1 &amp;lt; 1 | :value 2 &amp;gt; 0 &amp;amp; :value 2 &amp;lt; 1 | :value 3 &amp;gt; 0 &amp;amp;
	:value 3 &amp;lt; 1 | :value 4 &amp;gt; 0 &amp;amp; :value 4 &amp;lt; 1 | :value 5 &amp;gt; 0 &amp;amp; :value 5 &amp;lt; 1 |
	:value 6 &amp;gt; 0 &amp;amp; :value 6 &amp;lt; 1 | :value 7 &amp;gt; 0 &amp;amp; :value 7 &amp;lt; 1 | :value 8 &amp;gt; 0 &amp;amp;
	:value 8 &amp;lt; 1) &amp;amp; Max(
		:value 1,
		:value 2,
		:value 3,
		:value 4,
		:value 5,
		:value 6,
		:value 7,
		:value 8
	) &amp;gt; 1,
	"Yes",
	"No"
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Nov 2020 22:49:39 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-11-05T22:49:39Z</dc:date>
    <item>
      <title>Want to check each numeric column for each row of test and then assign a value (yes or No)</title>
      <link>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/329894#M57909</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to go through each row in this table for compare value 1 thru value 8, and if one value is less than 1 and any other remaining value is greater than 1, then i say yes or no in the result column. How do i do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;value 1&lt;/TD&gt;&lt;TD&gt;value 2&lt;/TD&gt;&lt;TD&gt;value 3&lt;/TD&gt;&lt;TD&gt;value 4&lt;/TD&gt;&lt;TD&gt;value 5&lt;/TD&gt;&lt;TD&gt;value 6&lt;/TD&gt;&lt;TD&gt;value 7&lt;/TD&gt;&lt;TD&gt;value 8&lt;/TD&gt;&lt;TD&gt;Result&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3200110503&lt;/TD&gt;&lt;TD&gt;0.064064&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;Yes&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3200110520&lt;/TD&gt;&lt;TD&gt;0.057864&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;No&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3200110546&lt;/TD&gt;&lt;TD&gt;0.06985&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3200110562&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0.064931&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3200110597&lt;/TD&gt;&lt;TD&gt;0.06241&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:42:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/329894#M57909</guid>
      <dc:creator>samsam</dc:creator>
      <dc:date>2023-06-09T23:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Want to check each numeric column for each row of test and then assign a value (yes or No)</title>
      <link>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/329914#M57911</link>
      <description>In you example data table, all data are less than 1, there are no numeric data greater than 1, so the algorithm you have described could never happen.  I assume that either the example data table is in error, or your description of what you are looking for is not correct.&lt;BR /&gt;You show that row 1 should result in a Yes, and row 2 in a No, but they are identical in data pattern.  All values are less than 1 and no values are greater than 1.&lt;BR /&gt;I am sure that I am missing something.</description>
      <pubDate>Thu, 05 Nov 2020 02:15:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/329914#M57911</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-11-05T02:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Want to check each numeric column for each row of test and then assign a value (yes or No)</title>
      <link>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/329937#M57914</link>
      <description>Hi,&lt;BR /&gt;When you are referring to "one value is less than 1" do you mean less than the numerical value = 1 or are you referring to the value of Column 1? Assuming the latter, it is still difficult to grasp the logic behind the results you shared for row 1 and row 2 as &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; mentioned&lt;BR /&gt;Please, help us help you.&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Thu, 05 Nov 2020 06:37:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/329937#M57914</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2020-11-05T06:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Want to check each numeric column for each row of test and then assign a value (yes or No)</title>
      <link>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/330180#M57948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table is long and there are some columns for each row that has value greater than 0 and less than 1. Then next column for the same row is greater than 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want my logic as follow:&lt;/P&gt;&lt;P&gt;1. Check each column to see the values are greater than 0 and less than 1.&lt;/P&gt;&lt;P&gt;2. Second, check each column again to see if the values are greater than 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Third, if there are two columns, one represent between 0 and 1 and any other column that represents greater than 1, I fill in the result column as true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if that makes sense.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 18:00:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/330180#M57948</guid>
      <dc:creator>samsam</dc:creator>
      <dc:date>2020-11-05T18:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Want to check each numeric column for each row of test and then assign a value (yes or No)</title>
      <link>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/330181#M57949</link>
      <description>D value 1 value 2 value 3 value 4 value 5 value 6 value 7 value 8 Result&amp;nbsp;&lt;BR /&gt;3200110503 0.064064 0 0 0 0 0 1.5 0 Yes&amp;nbsp;&lt;BR /&gt;3200110520 0.057864 0 0 0 0 0 0 0 No&amp;nbsp;&lt;BR /&gt;3200110546 0.06985 0 0 0 0 0 0 2.6 Yes&amp;nbsp;&lt;BR /&gt;3200110562 0 0.064931 0 0 0 0 0 0&lt;BR /&gt;3200110597 0.06241 0 0 0 0 0 0 0&lt;BR /&gt;&lt;BR /&gt;I am referring to check each column for each row to look for two conditions:&lt;BR /&gt;1. Check each column to identify any column has value greater than 0 and less than1.&lt;BR /&gt;2. Check each column again to identify if any column has value greater than 1.&lt;BR /&gt;3. If statement 1 and statement 2 is true for any row, then i report value Yes. If false, then i report value No.&lt;BR /&gt;&lt;BR /&gt;Thanks again for helping.</description>
      <pubDate>Thu, 05 Nov 2020 18:03:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/330181#M57949</guid>
      <dc:creator>samsam</dc:creator>
      <dc:date>2020-11-05T18:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Want to check each numeric column for each row of test and then assign a value (yes or No)</title>
      <link>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/330383#M57961</link>
      <description>&lt;P&gt;Here is a hardcoded straight forward piece of formula that will create the results you want, given your latest description&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="or1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28139iEBE2A0E9E2BE9F3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="or1.PNG" alt="or1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	(:value 1 &amp;gt; 0 &amp;amp; :value 1 &amp;lt; 1 | :value 2 &amp;gt; 0 &amp;amp; :value 2 &amp;lt; 1 | :value 3 &amp;gt; 0 &amp;amp;
	:value 3 &amp;lt; 1 | :value 4 &amp;gt; 0 &amp;amp; :value 4 &amp;lt; 1 | :value 5 &amp;gt; 0 &amp;amp; :value 5 &amp;lt; 1 |
	:value 6 &amp;gt; 0 &amp;amp; :value 6 &amp;lt; 1 | :value 7 &amp;gt; 0 &amp;amp; :value 7 &amp;lt; 1 | :value 8 &amp;gt; 0 &amp;amp;
	:value 8 &amp;lt; 1) &amp;amp; Max(
		:value 1,
		:value 2,
		:value 3,
		:value 4,
		:value 5,
		:value 6,
		:value 7,
		:value 8
	) &amp;gt; 1,
	"Yes",
	"No"
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:49:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Want-to-check-each-numeric-column-for-each-row-of-test-and-then/m-p/330383#M57961</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-11-05T22:49:39Z</dc:date>
    </item>
  </channel>
</rss>

