cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • 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!
  • 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

Is there a Column Formula to find 2nd highest value?

Hello all - 

I am wondering if someone can help with something that has been stumping me in JMP.  I have columns 1-10 that contain a value from the RandomGamma(1) function.  I am trying to come up with a formula to enter for column 11 that would pull out the second highest value of columns 1-10 for any row.  It would be like finding the second highest Maximum for columns 1-10.   Does anyone have any ideas of how to do this?  I am a student who is new(ish) to JMP and would appreciate as simple an answer as possible as I am very much still learning.  

Thanks! 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Is there a Column Formula to find 2nd highest value?

The Sort Descending() function would return the values in descending order. The following demonstrates the concept.  The subscript of 2 will capture the second highest value. You will need to change the column names to your actual column names:

Sort Descending( Eval List( {:A, :B, :C} ) )[2]

Hope that helps!

Wendy

View solution in original post

2 REPLIES 2

Re: Is there a Column Formula to find 2nd highest value?

The Sort Descending() function would return the values in descending order. The following demonstrates the concept.  The subscript of 2 will capture the second highest value. You will need to change the column names to your actual column names:

Sort Descending( Eval List( {:A, :B, :C} ) )[2]

Hope that helps!

Wendy

Re: Is there a Column Formula to find 2nd highest value?

Thank you so much!  That is exactly what I was wondering how to do!  :)  

Recommended Articles