<?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: SELECT LAST ROWS in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/SELECT-LAST-ROWS/m-p/908588#M106713</link>
    <description>&lt;P&gt;You could start with something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Data Table() &amp;lt;&amp;lt; Select Where(Col Rank(:DATE, :PART) &amp;lt;= 3)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 20 Oct 2025 10:06:23 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-10-20T10:06:23Z</dc:date>
    <item>
      <title>SELECT LAST ROWS</title>
      <link>https://community.jmp.com/t5/Discussions/SELECT-LAST-ROWS/m-p/908578#M106712</link>
      <description>&lt;P&gt;Bonjour, je cherche à construire un script JMP dans lequel je pourrais créer une nouvelle colonne qui selectionne les 3 dernières données par rapport à la colonne "PART" et en fonction des dates de la colonne "DATE" : prendre les 3 dernières données par pièce en triant les dates par ordre décroissant (mettre un 1 dans la colonne TEST lorsqu'il faut garder les données)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exemple de la table de données :&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="hcarr01_0-1760953101172.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85388iDE2FA9963C567A17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hcarr01_0-1760953101172.png" alt="hcarr01_0-1760953101172.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Ci-joint vous trouverez la table de données.&lt;/P&gt;
&lt;P&gt;Merci pour votre aide.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 09:41:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SELECT-LAST-ROWS/m-p/908578#M106712</guid>
      <dc:creator>hcarr01</dc:creator>
      <dc:date>2025-10-20T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT LAST ROWS</title>
      <link>https://community.jmp.com/t5/Discussions/SELECT-LAST-ROWS/m-p/908588#M106713</link>
      <description>&lt;P&gt;You could start with something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Data Table() &amp;lt;&amp;lt; Select Where(Col Rank(:DATE, :PART) &amp;lt;= 3)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Oct 2025 10:06:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SELECT-LAST-ROWS/m-p/908588#M106713</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-10-20T10:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT LAST ROWS</title>
      <link>https://community.jmp.com/t5/Discussions/SELECT-LAST-ROWS/m-p/908591#M106714</link>
      <description>&lt;P&gt;last 3 in descending order = first 3 in ascending order&amp;nbsp;&lt;BR /&gt;ascending&amp;nbsp; order = Rank&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 12:05:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SELECT-LAST-ROWS/m-p/908591#M106714</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-10-20T12:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT LAST ROWS</title>
      <link>https://community.jmp.com/t5/Discussions/SELECT-LAST-ROWS/m-p/908659#M106719</link>
      <description>&lt;P&gt;Expanding on Jarmo's response, If you create a new column, and use the following formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Col Rank( :DATE, :PART ) &amp;lt;= 3,
	1,
	.
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will get the following result&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1760998463502.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85405iA5F9AB76DDFA8833/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1760998463502.png" alt="txnelson_0-1760998463502.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 22:14:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SELECT-LAST-ROWS/m-p/908659#M106719</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-10-20T22:14:39Z</dc:date>
    </item>
  </channel>
</rss>

