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
UserID16644
Level V

Selecting duplicates with complete row values

How to select duplicate rows with conditions?
I have a table with duplicate IDs, but some of the values from other rows are missing. What I need to do is to delete the duplicate row with missing information and retain the complete one.

 

For example:

ID Name Age
1 Jane 12
1 Jane  
2 John 16
3 Anna  
3 Anna 15
4 Mark  

 

Rows 3, 5 should be deleted. I know "Select duplicate rows( Match( :Col1, :Col2 ) );" but I'm not sure how to specify to select and delete those with blank :Age. Please help

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Selecting duplicates with complete row values

If you run the Summary Platform as I specified, it will result in removing the specified rows.  Below is your sample data table, and the preview of what the results of running the Summary Platform will produce

txnelson_0-1744262531253.png

The data you want removed has been removed.

Jim

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: Selecting duplicates with complete row values

If there is always only 1 record for each person that has a non missing value for age then a simple

     Tables=>Summary

where you group on name and specify to calculate the mean of age.

 

Jim
UserID16644
Level V

Re: Selecting duplicates with complete row values

But I need to delete the blank duplicates

txnelson
Super User

Re: Selecting duplicates with complete row values

If you run the Summary Platform as I specified, it will result in removing the specified rows.  Below is your sample data table, and the preview of what the results of running the Summary Platform will produce

txnelson_0-1744262531253.png

The data you want removed has been removed.

Jim
UserID16644
Level V

Re: Selecting duplicates with complete row values

Got it! Big thanks

Recommended Articles