cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

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

How to Create a Subset Table of the Final Row of Data per Group

Hi!

Is there a way to automate the creation of a subset table such that this is the starting data table

GroupData1Data 2
A1A
A2T
A3C
B8F
B2R
C1E
C4G
C1O
C5E


And this is the subset table (the final row of each group)

GroupData1Data 2
A3C
B2R
C5E


Any help appreciated!  Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to Create a Subset Table of the Final Row of Data per Group

I can see several ways to do this with JSL. Try this:

 

Names Default To Here( 1 );
dt = Current Data Table();
dt << Subset(
	Selected Columns( 0 ),
	Rows( dt << Get rows where( Col Max( Row(), :Group ) == Row()) )
);

 

View solution in original post

1 REPLY 1
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to Create a Subset Table of the Final Row of Data per Group

I can see several ways to do this with JSL. Try this:

 

Names Default To Here( 1 );
dt = Current Data Table();
dt << Subset(
	Selected Columns( 0 ),
	Rows( dt << Get rows where( Col Max( Row(), :Group ) == Row()) )
);

 

Recommended Articles