cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

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