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
DiCosimoA
Level I

Calculation grouped by variable

Hello,

I would like to find the maximum value from a column, but I need to group the data based on other columns; is it possible using a formula or a script?

As example, I would like to populate a new column with the maximum height, but divided by age, sex and nationality:

 

Nationality Sex Age Height
ITA M 25 180
USA F 23 180
FRE M 24 168
FRE M 25 201
GER F 23 160
ITA X 23 175
ITA X 24 158
CAN M 25 193
USA F 23 170
SPA F 24 179
SPA X 25 169
GER F 23 163
GER M 24 185
CAN X 25 201
CAN M 23 193
ITA F 24 170
USA F 25 180
FRE X 23 179
FRE F 23 169
GER M 24 163
USA M 25 185
SPA F 23 180
SPA M 24 179
GER M 25 185
GER F 23 201
ITA X 24 193

 

 

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Calculation grouped by variable

Col Max( :Height, :Age, :Sex, :Nationality )

txnelson_0-1761214939894.png

 

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Calculation grouped by variable

Col Max( :Height, :Age, :Sex, :Nationality )

txnelson_0-1761214939894.png

 

 

Jim
DiCosimoA
Level I

Re: Calculation grouped by variable

Thank you so much! That's exactly what I was looking for!

Recommended Articles