<?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 do FIRST_VALUE() OVER in JMP script? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-do-FIRST-VALUE-OVER-in-JMP-script/m-p/768417#M94865</link>
    <description>&lt;P&gt;Here are a couple of ways to do a similar selection&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = 
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );

// Find the Name of the tallest person by sorting
sortDT = dt &amp;lt;&amp;lt; sort(by(:height), order(descending));
value = sortDT:name[1];
close( sortDT, nosave );
show("Tallest by sorting",value);

// Tallest by selection
value = :Name[(dt&amp;lt;&amp;lt;get rows where( :height == col max(:height) ))[1]];
show("Tallest by selection", value );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Jun 2024 01:47:14 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-06-26T01:47:14Z</dc:date>
    <item>
      <title>How to do FIRST_VALUE() OVER in JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-do-FIRST-VALUE-OVER-in-JMP-script/m-p/768397#M94863</link>
      <description>&lt;P&gt;How to do FIRST_VALUE() OVER in JMP script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;FIRST_VALUE(..) OVER (PARTITION BY .. ORDER BY ..) AS ..&lt;/P&gt;&lt;P&gt;FROM ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 00:26:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-do-FIRST-VALUE-OVER-in-JMP-script/m-p/768397#M94863</guid>
      <dc:creator>kyf</dc:creator>
      <dc:date>2024-06-26T00:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to do FIRST_VALUE() OVER in JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-do-FIRST-VALUE-OVER-in-JMP-script/m-p/768417#M94865</link>
      <description>&lt;P&gt;Here are a couple of ways to do a similar selection&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = 
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );

// Find the Name of the tallest person by sorting
sortDT = dt &amp;lt;&amp;lt; sort(by(:height), order(descending));
value = sortDT:name[1];
close( sortDT, nosave );
show("Tallest by sorting",value);

// Tallest by selection
value = :Name[(dt&amp;lt;&amp;lt;get rows where( :height == col max(:height) ))[1]];
show("Tallest by selection", value );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jun 2024 01:47:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-do-FIRST-VALUE-OVER-in-JMP-script/m-p/768417#M94865</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-26T01:47:14Z</dc:date>
    </item>
  </channel>
</rss>

