<?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 select rows with multiple criteria combined in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34540#M20453</link>
    <description>&lt;P&gt;Thanks for the information! Modifying the Fruit_Scanner=="2" to Fruit_Scanner==2 worked like a charm. Using that I was finally able to get the rows I was looking for using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dt &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Open&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"myfile.jmp"&lt;SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dt &lt;SPAN&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Select Where&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testendurance_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;|&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;teststrong_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;|&lt;/SPAN&gt; &lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testenjoy_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testsad_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testsports_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testsleep_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;testperform_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testlibido_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;maleenergy_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN&gt;&amp;gt;=&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again all for everything!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2017 16:51:52 GMT</pubDate>
    <dc:creator>ccharlie</dc:creator>
    <dc:date>2017-01-16T16:51:52Z</dc:date>
    <item>
      <title>How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34481#M20413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to isolate a specific group within a large data set using the following criteria: all subjects who answered yes to 2 particular questions AND all subjects who answered yes to any 3 other questions combined (total number of questions = 9). I was able to isolate subjects meeting the first criteria rather easily but don't know how to select subjects who meet the second criteria (assuming all subjects who met the 1st one were removed from the sample of interest to avoid counting them twice). Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 19:45:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34481#M20413</guid>
      <dc:creator>ccharlie</dc:creator>
      <dc:date>2017-01-13T19:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34486#M20416</link>
      <description>&lt;P&gt;Below is a "Select Rows Where" script that shows the logic of what you need to do.&amp;nbsp; If you want to do this interactively, just take the logic component of the statement and build it in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rows==&amp;gt;Row Selection==&amp;gt;Select Where&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
dt &amp;lt;&amp;lt; select rows where(
	q1 == "Yes" &amp;amp; q2 == "Yes" &amp;amp; Sum(
		q3 == "Yes",
		q4 == "Yes",
		q5 == "Yes",
		q6 == "Yes",
		q6 == "Yes",
		q7 == "yes",
		q8 == "Yes",
		q9 == "Yes"
	) == 3 /* or &amp;gt;= 3 if that is what you want */
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Jan 2017 21:00:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34486#M20416</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-01-13T21:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34501#M20430</link>
      <description>&lt;P&gt;Thank you so much for the quick reply Jim. Using my variables and 1 as the yes code, I tried what you gave me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dt &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; Current Data Table&lt;SPAN&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dt &lt;/SPAN&gt;&amp;lt;&amp;lt; &lt;STRONG&gt;select rows where&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; testendurance_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"1"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; teststrong_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"1"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; testenjoy_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; testsad_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; testsports_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; testsleep_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; testperform_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; testlibido_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; maleenergy_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"1"&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&amp;nbsp;&amp;gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and got the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unexpected end of input. Perhaps there is a missing "," or ")". Trying to parse arguments of function "select rows where". Line 12 Column 4: );►&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked row 12 and it does not meet any of the inclusion criteria. I'm clearly missing something but can't figure out what.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2017 20:48:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34501#M20430</guid>
      <dc:creator>ccharlie</dc:creator>
      <dc:date>2017-01-14T20:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34502#M20431</link>
      <description>&lt;P&gt;You started a comment on the next to last line, so the closing parenthesis is not seen.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2017 21:19:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34502#M20431</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-01-14T21:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34503#M20432</link>
      <description>&lt;P&gt;Mark's comment below is correct.&amp;nbsp; In the example that I gave you, it had a comment&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/* or &amp;gt;= 3 if that is what you want */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;embedded in a line of code.&amp;nbsp; This type of comment starts with "/*" and looks for "*/" to end the comment.&amp;nbsp; Since your code just has the /*, the ");" on the next line is considered part of the on going comment&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2017 21:19:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34503#M20432</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-01-14T21:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34507#M20436</link>
      <description>&lt;P&gt;Thank you all! I tried modifying the code but it still didn't work so I went into the JMP&amp;nbsp;Scripting Guide to try to figure things out. I was able to select all rows using this code:&lt;/P&gt;&lt;P&gt;dt&amp;nbsp;=&amp;nbsp;Open&lt;STRONG&gt;(&lt;/STRONG&gt;&amp;nbsp;"myfile.jmp"&amp;nbsp;&lt;STRONG&gt;)&lt;/STRONG&gt;;&lt;/P&gt;&lt;DIV class="page"&gt;&lt;DIV class="layoutArea"&gt;&lt;DIV class="column"&gt;&lt;P&gt;&lt;SPAN&gt;dt&amp;lt;&amp;lt;Select All Rows;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Since this worked I tried to go for a simpler code than the original one I had to see if I could get things on track using the JMP instructions. I tried to following code unsuccessfully:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dt &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Open&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"myfile.jmp"&lt;SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dt&lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;STRONG&gt;Select Where&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;( &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:ID==10322&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran it with no error message coming up but nothing happened. I checked the specific row which should have been selected but&amp;nbsp;it was still unselected. I tried again but still nothing. Going in the script log, I found the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//:*/&lt;/P&gt;&lt;P&gt;dt = Open( "myfile.jmp" );&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :ID==10322 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scriptable[]&lt;/P&gt;&lt;P&gt;//:*/&lt;/P&gt;&lt;P&gt;dt = Open( "Pre_Post_Freshman_Screener_.jmp" );&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :ID==10322 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried switching the code to ID=10322 to see if it would make a difference and got the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//:*/&lt;/P&gt;&lt;P&gt;dt = Open( "Pre_Post_Freshman_Screener_.jmp" );&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :ID=10322 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use == for comparison, = is assignment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use == for comparison, = is assignment{1}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//:*/&lt;/P&gt;&lt;P&gt;dt = Open( "Pre_Post_Freshman_Screener_.jmp" );&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :ID=10322 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use == for comparison, = is assignment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use == for comparison, = is assignment{1}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//:*/&lt;/P&gt;&lt;P&gt;dt = Open( "Pre_Post_Freshman_Screener_.jmp" );&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :ID=10322 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't help but think that this must be a simple error but I'm still stumped. Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 15 Jan 2017 20:28:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34507#M20436</guid>
      <dc:creator>ccharlie</dc:creator>
      <dc:date>2017-01-15T20:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34508#M20437</link>
      <description>Is your ID column character or numeric?&lt;BR /&gt;&lt;BR /&gt;Remember that character columns are displayed right justified and numeric columns are left. &lt;BR /&gt;&lt;BR /&gt;If your column is character you'll need to put the ID value in double quotes for the comparison. &lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;:ID=="1234"&lt;BR /&gt;</description>
      <pubDate>Sun, 15 Jan 2017 20:56:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34508#M20437</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-01-15T20:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34509#M20438</link>
      <description>&lt;P&gt;Is your ID column character or numeric?&lt;BR /&gt;&lt;BR /&gt;Remember that character columns are displayed &lt;STRIKE&gt;right&lt;/STRIKE&gt;&amp;nbsp;left justified and numeric columns are &lt;STRIKE&gt;left&lt;/STRIKE&gt; right. &lt;BR /&gt;&lt;BR /&gt;If your column is character you'll need to put the ID value in double quotes for the comparison. &lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;:ID=="1234"&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2017 21:05:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34509#M20438</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-01-15T21:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34510#M20439</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6878"&gt;@Jeff_Perkinson&lt;/a&gt; wrote:&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;Remember that character columns are displayed &lt;STRIKE&gt;right&lt;/STRIKE&gt;&amp;nbsp;left justified and numeric columns are &lt;STRIKE&gt;left&lt;/STRIKE&gt; right. &lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I got my left and my right messed up above. Sorry!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Jeff&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2017 21:04:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34510#M20439</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-01-15T21:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34511#M20440</link>
      <description>&lt;P&gt;Thank you for the quick response Jeff! Adding the " " did the trick as far isolating the row matching that particular ID number. Since I don't actually know if any row matches the criteria of a "yes" (coded as 1) answer to at least 3 questions from the set of 7 questions mentioned before, I tried to do enter a sum command for a couple variables which I knew should return something. Here is what I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dt &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Open&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"myfile.jmp"&lt;SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dt &lt;SPAN&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Select Where&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&amp;nbsp;:Fruit_Screener &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"2"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&amp;nbsp;:Vegetables_Screener &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"2"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunatelt nothing happened. I do know that at least one row meets the criteria of "no" (coded as 2) for these two variables but no selection occurred. Could the _ in the variable names be an issue or is it an error with the sum formula?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2017 22:51:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34511#M20440</guid>
      <dc:creator>ccharlie</dc:creator>
      <dc:date>2017-01-15T22:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34512#M20441</link>
      <description>&lt;P&gt;You seem to be missing how the logic is working.&amp;nbsp; What you have below can never have a sum greater than one.&lt;/P&gt;
&lt;P&gt;a Boolean comparison always results in a 0 or a 1.&lt;/P&gt;
&lt;P&gt;So if you were checking to see if a variable called X has a value of 22, the comparitor or&lt;/P&gt;
&lt;P&gt;X==22 will return a 1 when it is true, and a 0 when it is false.&lt;/P&gt;
&lt;P&gt;in your example below, the comparitor of&lt;/P&gt;
&lt;P&gt;Fruit+Screener == "2" &amp;amp; Vegitables_Screener == "2" can only be true(1) or False(0).&lt;/P&gt;
&lt;P&gt;The sum of this can only be a 0 or a 1, never a 4&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2017 22:58:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34512#M20441</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-01-15T22:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34513#M20442</link>
      <description>&lt;P&gt;Thanks Jim! I tried replacing that 4 with a 1 since I know this combination to be true of at least one row but still nothing was selected. Overall, I am looking to select rows which have "yes" (coded as 1) as answers for at least 3 questions out of a group of 7 total questions (so &amp;gt;=3 total). Any tips would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2017 23:27:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34513#M20442</guid>
      <dc:creator>ccharlie</dc:creator>
      <dc:date>2017-01-15T23:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34515#M20443</link>
      <description>&lt;P&gt;I suspect that Fruit_scanner and Vegitable_Scanner columns are numeric, not character.&amp;nbsp; In your "Nonworking" example, you specified the comparison as:&lt;/P&gt;
&lt;P&gt;Fruit_Scanner=="2".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If Fruit_Scanner is a numerical column the comparison would be:&lt;/P&gt;
&lt;P&gt;Fruit_Scanner==2&lt;/P&gt;
&lt;P&gt;Also look at the actual values of Fruit_scanner.&amp;nbsp; I thought you indicated that the values were 0 or 1.&amp;nbsp; If that is true then you need to be looking for:&lt;/P&gt;
&lt;P&gt;Fruit_Scanner==1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original reply that I published is the format that needs to be used to get what you want.&amp;nbsp; What is needed are the actual names of the columns and the actual values in those columns.&amp;nbsp; If you can provide that, I think I could give you the JSL&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 01:22:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34515#M20443</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-01-16T01:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to select rows with multiple criteria combined</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34540#M20453</link>
      <description>&lt;P&gt;Thanks for the information! Modifying the Fruit_Scanner=="2" to Fruit_Scanner==2 worked like a charm. Using that I was finally able to get the rows I was looking for using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dt &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Open&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"myfile.jmp"&lt;SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dt &lt;SPAN&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Select Where&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testendurance_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;|&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;teststrong_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;|&lt;/SPAN&gt; &lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testenjoy_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testsad_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testsports_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testsleep_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;testperform_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;testlibido_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;:&lt;/SPAN&gt;maleenergy_T1 &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN&gt;&amp;gt;=&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again all for everything!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 16:51:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-rows-with-multiple-criteria-combined/m-p/34540#M20453</guid>
      <dc:creator>ccharlie</dc:creator>
      <dc:date>2017-01-16T16:51:52Z</dc:date>
    </item>
  </channel>
</rss>

