cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
sipho-ss
Level I

Finding value of column y at max value of column X

I want to find the maxium value in column "Power (dBm)" grouped by BarID, ChipID.

And use that to find the corresponding value in column "Wavelength (nm)" to give me a summary table showing the value of maxium power and what value of wavelngth it occurs at grouped by BarID, ChipID etc.

siphoss_0-1659393423869.png

 

 

1 REPLY 1
txnelson
Super User

Re: Finding value of column y at max value of column X

Here is an example of doing a similar thing using the Big Class data table

Names Default To Here( 1 );
dt = 
// Open Data Table: big class.jmp
// → Data Table( "big class" )
Open( "$SAMPLE_DATA/big class.jmp" );

dt << select where(col max(:height,:sex) == :height );

dt << subset(selected rows(1), columns({"Sex","Height","Weight"}));
Jim