<?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 Get row number or row value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-row-number-or-row-value/m-p/15382#M14107</link>
    <description>&lt;P&gt;Hello Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to Jmp and JSL as well. I am trying to get say the minimum value in "&lt;STRONG&gt;MaxGPM&lt;/STRONG&gt;" column which will be &lt;SPAN style="text-decoration: underline;"&gt;57&lt;/SPAN&gt; in this case and also get the row value corresponding to "&lt;STRONG&gt;ASF&lt;/STRONG&gt;" and "&lt;STRONG&gt;GSF&lt;/STRONG&gt;" columns which is &lt;SPAN style="text-decoration: underline;"&gt;6871&lt;/SPAN&gt; and &lt;SPAN style="text-decoration: underline;"&gt;10221&lt;/SPAN&gt;. I can only get the first one but can't get the latter two. Is there a script to get the row number for the values. Here is my script(not working) and table below. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
x = Col Minimum(:"Max.GPM");
dt &amp;lt;&amp;lt; get row(x);
y = :"ASF" (Col Minimum(:"Max.GPM"));
z = :"GSF" (Col Minimum(:"Max.GPM"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10454_sdsdgfd.JPG" style="width: 363px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2428i6769B202E76DB4F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10454_sdsdgfd.JPG" alt="10454_sdsdgfd.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 20:36:30 GMT</pubDate>
    <dc:creator>luqi</dc:creator>
    <dc:date>2018-06-21T20:36:30Z</dc:date>
    <item>
      <title>Get row number or row value</title>
      <link>https://community.jmp.com/t5/Discussions/Get-row-number-or-row-value/m-p/15382#M14107</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to Jmp and JSL as well. I am trying to get say the minimum value in "&lt;STRONG&gt;MaxGPM&lt;/STRONG&gt;" column which will be &lt;SPAN style="text-decoration: underline;"&gt;57&lt;/SPAN&gt; in this case and also get the row value corresponding to "&lt;STRONG&gt;ASF&lt;/STRONG&gt;" and "&lt;STRONG&gt;GSF&lt;/STRONG&gt;" columns which is &lt;SPAN style="text-decoration: underline;"&gt;6871&lt;/SPAN&gt; and &lt;SPAN style="text-decoration: underline;"&gt;10221&lt;/SPAN&gt;. I can only get the first one but can't get the latter two. Is there a script to get the row number for the values. Here is my script(not working) and table below. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
x = Col Minimum(:"Max.GPM");
dt &amp;lt;&amp;lt; get row(x);
y = :"ASF" (Col Minimum(:"Max.GPM"));
z = :"GSF" (Col Minimum(:"Max.GPM"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10454_sdsdgfd.JPG" style="width: 363px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2428i6769B202E76DB4F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10454_sdsdgfd.JPG" alt="10454_sdsdgfd.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:36:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-row-number-or-row-value/m-p/15382#M14107</guid>
      <dc:creator>luqi</dc:creator>
      <dc:date>2018-06-21T20:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get row number or row value</title>
      <link>https://community.jmp.com/t5/Discussions/Get-row-number-or-row-value/m-p/15383#M14108</link>
      <description>&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;I noticed that you refer to the MaxGPM column as Max.GPM.&amp;nbsp; Is that a typo?&amp;nbsp; Anyway the following code will do the trick:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();
 
x = col minimum(:MaxGPM);
 
rmat = dt &amp;lt;&amp;lt; get rows where(:MaxGPM == x);
 
r = rmat[1];
 
y = :ASF[r];
z = :GSF[r];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:36:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-row-number-or-row-value/m-p/15383#M14108</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-06-21T20:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get row number or row value</title>
      <link>https://community.jmp.com/t5/Discussions/Get-row-number-or-row-value/m-p/15384#M14109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much!!! You're the best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 18:25:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-row-number-or-row-value/m-p/15384#M14109</guid>
      <dc:creator>luqi</dc:creator>
      <dc:date>2015-11-12T18:25:01Z</dc:date>
    </item>
  </channel>
</rss>

