cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
hcarr01
Level VI

SELECT LAST ROWS

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)

 

Exemple de la table de données :

 

hcarr01_0-1760953101172.png

Ci-joint vous trouverez la table de données.

Merci pour votre aide.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: SELECT LAST ROWS

Expanding on Jarmo's response, If you create a new column, and use the following formula

If( Col Rank( :DATE, :PART ) <= 3,
	1,
	.
)

You will get the following result

txnelson_0-1760998463502.png

 

Jim

View solution in original post

3 REPLIES 3
jthi
Super User

Re: SELECT LAST ROWS

You could start with something like

Current Data Table() << Select Where(Col Rank(:DATE, :PART) <= 3)
-Jarmo
hogi
Level XIII

Re: SELECT LAST ROWS

last 3 in descending order = first 3 in ascending order 
ascending  order = Rank

txnelson
Super User

Re: SELECT LAST ROWS

Expanding on Jarmo's response, If you create a new column, and use the following formula

If( Col Rank( :DATE, :PART ) <= 3,
	1,
	.
)

You will get the following result

txnelson_0-1760998463502.png

 

Jim

Recommended Articles