<?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 How to use '&amp;lt;&amp;lt; Select Where' or '&amp;lt;&amp;lt; Get Rows Where' on a list of columns names or references? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-lt-lt-Select-Where-or-lt-lt-Get-Rows-Where-on-a-list/m-p/12141#M11582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I have script where I'm trying to return the row numbers of certain columns that contain a specific value. In my example, I have several columns where the value can either be a 1 or a 0. I'm trying to get the row numbers for any row that contains a zero regardless of which column its in. I can do this easily enough for one column using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14303142154319771" jivemacro_uid="_14303142154319771"&gt;&lt;BR /&gt;&lt;P&gt;selectedRows = datatable &amp;lt;&amp;lt; Get Rows Where( As Column(colNameStr) == 0 );&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I want to do this for a number of columns, say in a list of column names or references, I'm stumped. I feel like this should be catered for, but I can't figure out if its possible or what the correct syntax is. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14303148616959796 jive_text_macro" jivemacro_uid="_14303148616959796"&gt;&lt;BR /&gt;&lt;P&gt;selectedRows = datatable &amp;lt;&amp;lt; Get Rows Where( FOR EACH COLUMN IN LIST == 0 );&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this matter would be greatly appreciated. The reason why I want it to work with a list is that I want it to work for any number of columns or column names. I'm using JMP11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 13:43:41 GMT</pubDate>
    <dc:creator>nkelleh</dc:creator>
    <dc:date>2015-04-29T13:43:41Z</dc:date>
    <item>
      <title>How to use '&lt;&lt; Select Where' or '&lt;&lt; Get Rows Where' on a list of columns names or references?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-lt-lt-Select-Where-or-lt-lt-Get-Rows-Where-on-a-list/m-p/12141#M11582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I have script where I'm trying to return the row numbers of certain columns that contain a specific value. In my example, I have several columns where the value can either be a 1 or a 0. I'm trying to get the row numbers for any row that contains a zero regardless of which column its in. I can do this easily enough for one column using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14303142154319771" jivemacro_uid="_14303142154319771"&gt;&lt;BR /&gt;&lt;P&gt;selectedRows = datatable &amp;lt;&amp;lt; Get Rows Where( As Column(colNameStr) == 0 );&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I want to do this for a number of columns, say in a list of column names or references, I'm stumped. I feel like this should be catered for, but I can't figure out if its possible or what the correct syntax is. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14303148616959796 jive_text_macro" jivemacro_uid="_14303148616959796"&gt;&lt;BR /&gt;&lt;P&gt;selectedRows = datatable &amp;lt;&amp;lt; Get Rows Where( FOR EACH COLUMN IN LIST == 0 );&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this matter would be greatly appreciated. The reason why I want it to work with a list is that I want it to work for any number of columns or column names. I'm using JMP11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 13:43:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-lt-lt-Select-Where-or-lt-lt-Get-Rows-Where-on-a-list/m-p/12141#M11582</guid>
      <dc:creator>nkelleh</dc:creator>
      <dc:date>2015-04-29T13:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use '&lt;&lt; Select Where' or '&lt;&lt; Get Rows Where' on a list of columns names or references?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-lt-lt-Select-Where-or-lt-lt-Get-Rows-Where-on-a-list/m-p/12142#M11583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;list = {:A, :B, :C};&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where(ANY(list));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only works as is because you have boolean values in your columns.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 13:59:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-lt-lt-Select-Where-or-lt-lt-Get-Rows-Where-on-a-list/m-p/12142#M11583</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2015-04-29T13:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use '&lt;&lt; Select Where' or '&lt;&lt; Get Rows Where' on a list of columns names or references?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-lt-lt-Select-Where-or-lt-lt-Get-Rows-Where-on-a-list/m-p/12143#M11584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much! I knew there was some way to do it. Out of curiosity, is there any way to do it for non-boolean values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 15:01:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-lt-lt-Select-Where-or-lt-lt-Get-Rows-Where-on-a-list/m-p/12143#M11584</guid>
      <dc:creator>nkelleh</dc:creator>
      <dc:date>2015-04-29T15:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use '&lt;&lt; Select Where' or '&lt;&lt; Get Rows Where' on a list of columns names or references?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-lt-lt-Select-Where-or-lt-lt-Get-Rows-Where-on-a-list/m-p/12144#M11585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the list?&amp;nbsp; Can't think of anything off hand.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do &lt;/P&gt;&lt;P&gt;ANY(:A == "donkey", :B &amp;lt;=14, :C), C being a boolean still&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 14:12:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-lt-lt-Select-Where-or-lt-lt-Get-Rows-Where-on-a-list/m-p/12144#M11585</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2015-04-30T14:12:32Z</dc:date>
    </item>
  </channel>
</rss>

