cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
AsymptoticCos
Level II

How to account for redundant rows

I have the following table. I want to only select the last unique entries in column 1. In other words, I want to make a subset with only the highlighted rows. How do I do that? 

 

AsymptoticCos_0-1721760527591.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to account for redundant rows

And one more option is to use select duplicate. First you have to sort your data by Column 2 so you get the "latest" value as first (you might have to add row column to your data unless you nothing else to use to sort)

jthi_0-1721764368432.png

Then select Column 1 and use Select Duplicate Rows

jthi_1-1721764406571.png

You should now have the rows selected you wish to drop

jthi_2-1721764433240.png

You can then delete these or right click on rows and invert selection

jthi_3-1721764462694.png

Now you should have the rows you wish to have selected. You can also sort while having the selection if you wish to, but it will then select values from the Column 2

jthi_4-1721764597169.png

 

All of these different options have their own place.

-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: How to account for redundant rows

One option is to use a script like

Current Data Table() << Select Where(Row() == Col Max(Row(), :Column 1))
-Jarmo
jthi
Super User

Re: How to account for redundant rows

And if you just need those you can use Summary

jthi_0-1721762013091.png

and then perform a join with this to the original table (if there is more information you need) to drop columns which do not match

jthi_1-1721762058302.png

 

-Jarmo
jthi
Super User

Re: How to account for redundant rows

And one more option is to use select duplicate. First you have to sort your data by Column 2 so you get the "latest" value as first (you might have to add row column to your data unless you nothing else to use to sort)

jthi_0-1721764368432.png

Then select Column 1 and use Select Duplicate Rows

jthi_1-1721764406571.png

You should now have the rows selected you wish to drop

jthi_2-1721764433240.png

You can then delete these or right click on rows and invert selection

jthi_3-1721764462694.png

Now you should have the rows you wish to have selected. You can also sort while having the selection if you wish to, but it will then select values from the Column 2

jthi_4-1721764597169.png

 

All of these different options have their own place.

-Jarmo