<?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: Creating a column with yes/no value based on 6 other columns with yes/no values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40083#M23467</link>
    <description>&lt;P&gt;Glad you figured out the issues and got the problem solved.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 15:43:28 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-06-07T15:43:28Z</dc:date>
    <item>
      <title>Creating a column with yes/no value based on 6 other columns with yes/no values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40036#M23435</link>
      <description>&lt;P&gt;Hi all, I'm using JMP 11.2.1. Without using script, is there a way I can, in a data table, create a new column with yes/no values based on the yes/no values of 6 other columns? Basically, I would like to have a record in the new column have a "yes" value if ANY of the values of that record in the 6 other columns are a "yes" and a "no" value if NONE of the values of that record in the 6 other columns are a "yes." Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:24:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40036#M23435</guid>
      <dc:creator>rj69</dc:creator>
      <dc:date>2017-06-06T17:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a column with yes/no value based on 6 other columns with yes/no values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40044#M23442</link>
      <description>&lt;P&gt;All you have to do, is to create a new column, right click on the column header, and select "Formula". &amp;nbsp;The Formula window will pop up. &amp;nbsp;Double click on where it says "No Formula" and an editor window will pop up. &amp;nbsp;Paste the following formula into the window. &amp;nbsp;In the formula I used the letters A-F to specify the 6 columns you said you had to compare against. &amp;nbsp;Just replace the A-F with the column names.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	:A=="No", "No",
	:B=="No","No",
	:C=="No","No",
	:D=="No","No",
	:E=="No","No",
	:F=="No","No",
	"Yes"
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What the formula is doing, is marching down the 6 columns. &amp;nbsp;If any one of them has the value "No" it will set the columns value to "No". &amp;nbsp;If none of them are equal to "No" then the column will have the value "Yes"&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 19:25:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40044#M23442</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-06T19:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a column with yes/no value based on 6 other columns with yes/no values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40069#M23459</link>
      <description>&lt;P&gt;Thank you for the idea, but it didn't seem to work. Every single row resulted in a "Yes" value being returned in the new column.&lt;/P&gt;&lt;P&gt;Following the logic, I thought it might work in reverse - marching down the columns, it should return a "Yes" value if there is a "Yes" value for any one of the 6 "comparison" columns, and a "No" if there were no "No" values across the 6 columns. When I edited the formula, however, a "No" value was returned for every single row.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 12:39:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40069#M23459</guid>
      <dc:creator>rj69</dc:creator>
      <dc:date>2017-06-07T12:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a column with yes/no value based on 6 other columns with yes/no values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40071#M23460</link>
      <description>&lt;P&gt;The formula I listed is not a question of doubt. &amp;nbsp;It works. See image below and attached file&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yesno.PNG" style="width: 629px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6378iD141C1A2EA195789/image-size/large?v=v2&amp;amp;px=999" role="button" title="yesno.PNG" alt="yesno.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What may be of issue is that your data may have mixed case. &amp;nbsp;"No" is not equal to "no", or "NO". &amp;nbsp;If this is the case, then I suggest&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	Uppercase( :A ) == "NO", "No",
	Uppercase( :B ) == "NO", "No",
	Uppercase( :C ) == "NO", "No",
	Uppercase( :D ) == "NO", "No",
	Uppercase( :E ) == "NO", "No",
	Uppercase( :F ) == "NO", "No",
	Uppercase( "Yes"
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, please note the ":" in front of each column name. &amp;nbsp;This is important for JMP to understand that it needs to look into a column by the specified name&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 13:03:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40071#M23460</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-07T13:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a column with yes/no value based on 6 other columns with yes/no values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40081#M23465</link>
      <description>&lt;P&gt;Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the follow-up. I figured it out. I needed to do a few things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I had to adjust your formula, because I was looking for the "opposite" outcome. My intent with your example would have yielded "Yes" values for all records in Column 7 since at least one "Yes" was present in each of the 7 rows. The only way a "No" would have been returned if a record featured "No" values in all columns a-f.&lt;/LI&gt;&lt;LI&gt;But that wasn't enough, as I initially had all "No" values for my new column. I wondered if different data types in the reference columns were throwing off the matching. Yes, the data types were listed as Integer while I was trying to match to a column with Character data type. (My original source file was converted from SPSS and I overlooked the column type.)&lt;/LI&gt;&lt;LI&gt;I changed the data types to Character, and also noticed Value Lables were being used, so the "No" and "Yes" were actually zeroes and ones. I went back to the formula&amp;nbsp;and changed&amp;nbsp;replaced the "No" and "Yes" with 0 and 1, and that's when it worked.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good to know about the case sensititviy and ":" protocol. Still relatively new to JMP and I don't use it as often as I'd like. Thanks again for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:29:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40081#M23465</guid>
      <dc:creator>rj69</dc:creator>
      <dc:date>2017-06-07T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a column with yes/no value based on 6 other columns with yes/no values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40083#M23467</link>
      <description>&lt;P&gt;Glad you figured out the issues and got the problem solved.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:43:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-with-yes-no-value-based-on-6-other-columns/m-p/40083#M23467</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-07T15:43:28Z</dc:date>
    </item>
  </channel>
</rss>

