cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

Merging Rows based on two column conditions

Hello,


I found several topics on merging rows, however they all seemed to be different to what I am trying to accomplish. 

 

I am trying to merge rows for which the following two conditions are true:

Same lot number

Months column has the value 0

 

So for example in the below dataset, rows 1&2, rows 5&6, and rows 9&10 would be merged into 3 rows.

2020-10-26 16_18_18-Test_data - JMP.png

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Merging Rows based on two column conditions

All you need to do is to run

     Tables=>Summary

and select the following settings

combine.PNG

The data table produced will have the results you want.

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Merging Rows based on two column conditions

All you need to do is to run

     Tables=>Summary

and select the following settings

combine.PNG

The data table produced will have the results you want.

Jim
DanAlexander
Level III

Re: Merging Rows based on two column conditions

Ah thank you for this solution, I did not think to use the Mean() statistic in the summary table. 

Recommended Articles