<?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 Select rows with minimum value that meets some criteria in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-rows-with-minimum-value-that-meets-some-criteria/m-p/570399#M78060</link>
    <description>&lt;P&gt;Starting with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Open&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;"$SAMPLE_DATA/Big Class.jmp"&lt;SPAN&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;... I'd like to select the records of the shortest male student at each age who is at least 60" tall, i.e., Tim (age 12, 60" tall), Joe (age 13, 63" tall), Frederick (age 14, 63" tall), Mark (age 15, 62" tall), Phillip (age 16, 68" tall), Kirk (age 17, 68" tall).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried a half-dozen different ways to do this with either formula columns or "select where..." and haven't been able to come up with an approach to do this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:57:10 GMT</pubDate>
    <dc:creator>BHarris</dc:creator>
    <dc:date>2023-06-10T23:57:10Z</dc:date>
    <item>
      <title>Select rows with minimum value that meets some criteria</title>
      <link>https://community.jmp.com/t5/Discussions/Select-rows-with-minimum-value-that-meets-some-criteria/m-p/570399#M78060</link>
      <description>&lt;P&gt;Starting with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Open&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;"$SAMPLE_DATA/Big Class.jmp"&lt;SPAN&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;... I'd like to select the records of the shortest male student at each age who is at least 60" tall, i.e., Tim (age 12, 60" tall), Joe (age 13, 63" tall), Frederick (age 14, 63" tall), Mark (age 15, 62" tall), Phillip (age 16, 68" tall), Kirk (age 17, 68" tall).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried a half-dozen different ways to do this with either formula columns or "select where..." and haven't been able to come up with an approach to do this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:57:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-rows-with-minimum-value-that-meets-some-criteria/m-p/570399#M78060</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2023-06-10T23:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows with minimum value that meets some criteria</title>
      <link>https://community.jmp.com/t5/Discussions/Select-rows-with-minimum-value-that-meets-some-criteria/m-p/570415#M78062</link>
      <description>&lt;P&gt;One option which should work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt &amp;lt;&amp;lt; Select Where(
	:sex == "M" &amp;amp; :height &amp;gt;= 60 &amp;amp; :height == Col Min(:height, :sex, :height &amp;gt;= 60, :age)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Nov 2022 07:45:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-rows-with-minimum-value-that-meets-some-criteria/m-p/570415#M78062</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-17T07:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows with minimum value that meets some criteria</title>
      <link>https://community.jmp.com/t5/Discussions/Select-rows-with-minimum-value-that-meets-some-criteria/m-p/571776#M78137</link>
      <description>&lt;P&gt;Wow, impressive!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would love to understand this a little better -- specifically I don't understand how the Col Min is treating argument #3. I get what it's doing with args #2 and #4, but I'm really surprised that you can put an expression in there instead of just a column label. &amp;nbsp;Any comments on how you think about those arguments?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 17:38:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-rows-with-minimum-value-that-meets-some-criteria/m-p/571776#M78137</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2022-11-21T17:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows with minimum value that meets some criteria</title>
      <link>https://community.jmp.com/t5/Discussions/Select-rows-with-minimum-value-that-meets-some-criteria/m-p/571781#M78138</link>
      <description>&lt;P&gt;It is just like the other byVars, it will get value 1 if :height is over or equal to 60 and 0 if not.&lt;/P&gt;
&lt;P&gt;Split it into parts and you can test it (create new column with the :height &amp;gt;= 60 and then use that instead in the Col Min()).&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 17:43:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-rows-with-minimum-value-that-meets-some-criteria/m-p/571781#M78138</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-21T17:43:00Z</dc:date>
    </item>
  </channel>
</rss>

