<?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 Selecting rows with specific data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Selecting-rows-with-specific-data/m-p/668058#M85619</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Is it possible to select something specific in rows? How can it be done? I tried creating a list and incorporate it in Select Rows () but doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in column Make, I want to select all the rows with BMW,&amp;nbsp;Hyundai and&amp;nbsp;Nissan.&lt;/P&gt;&lt;P&gt;dt = Open( "$SAMPLE_DATA/Cars.jmp" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I tried:&lt;/P&gt;&lt;P&gt;rows = {"BMW", "Hyundai", "Nissan"};&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Rows (rows);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't work. Please help&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 01:16:25 GMT</pubDate>
    <dc:creator>UserID16644</dc:creator>
    <dc:date>2023-08-15T01:16:25Z</dc:date>
    <item>
      <title>Selecting rows with specific data</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-rows-with-specific-data/m-p/668058#M85619</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Is it possible to select something specific in rows? How can it be done? I tried creating a list and incorporate it in Select Rows () but doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in column Make, I want to select all the rows with BMW,&amp;nbsp;Hyundai and&amp;nbsp;Nissan.&lt;/P&gt;&lt;P&gt;dt = Open( "$SAMPLE_DATA/Cars.jmp" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I tried:&lt;/P&gt;&lt;P&gt;rows = {"BMW", "Hyundai", "Nissan"};&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Rows (rows);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't work. Please help&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 01:16:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-rows-with-specific-data/m-p/668058#M85619</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-08-15T01:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting rows with specific data</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-rows-with-specific-data/m-p/668086#M85622</link>
      <description>&lt;P&gt;You can first use &amp;lt;&amp;lt; get rows where to get list of interesting rows and then &amp;lt;&amp;lt; Select Rows with that list. Or you could use &amp;lt;&amp;lt; Select Where directly. &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/character-functions-2.shtml?os=win&amp;amp;source=application#ww2467451" target="_blank" rel="noopener"&gt;Contains()&lt;/A&gt; is one option to perform the comparison during selection&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Cars.jmp");

models_to_find = {"BMW", "Hyundai", "Nissan"};

// option1
rows_to_select = dt &amp;lt;&amp;lt; get rows where(Contains(models_to_find, :Make));
dt &amp;lt;&amp;lt; Select Rows(rows_to_select);

// demo purposes
dt &amp;lt;&amp;lt; clear select; // for demo purposes
wait(1);

// option 2
dt &amp;lt;&amp;lt; Select Where(Contains(models_to_find, :Make));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Aug 2023 04:38:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-rows-with-specific-data/m-p/668086#M85622</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-08-15T04:38:05Z</dc:date>
    </item>
  </channel>
</rss>

