cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

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

Invert Col Rank Functionality

All, 

      Is there a way to invert Col Rank() functionality especially when using with a By Variable i.e. by default Col Rank() assigns 1 the lowest value in the group. However, I would like it to assign "1" the highest value similar to the Sort Argument allowing a "descending" flag. 

 

 

Best
Uday
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Invert Col Rank Functionality

Here is a simple example of how to do it

Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "Rank Height",
	Formula(
		Col Rank( :height, <<tie( "average" ) )
	)
);
New Column( "Rank Height by age",
	Formula( col number(:height, :age)+1-Col Rank( :height, :age ) )
);
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Invert Col Rank Functionality

Here is a simple example of how to do it

Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "Rank Height",
	Formula(
		Col Rank( :height, <<tie( "average" ) )
	)
);
New Column( "Rank Height by age",
	Formula( col number(:height, :age)+1-Col Rank( :height, :age ) )
);
Jim
uday_guntupalli
Level VIII

Re: Invert Col Rank Functionality

Thanks for the quick turn around Jim. 

Probably, worth requesting this a feature request for future releases. 

Best
Uday

Recommended Articles