If you want to calculate the percentage of the selected part of a distribution, you can plot the distribution in Graph Builder and use a column formula to display the percentage.
Here I took the height distribution in students.jmp, but the same holds for some income, profit etc.
Open( "$SAMPLE_DATA/Students.jmp" );
New Column( "percent",
Formula(
(Col Number( If( Selected(), :height, . ) ) / Col Number( :height )) * 100
)
);
New Column( "one",Nominal, Set each value( 1 ));
:percent << Label( 1 ); // I forgot to add this to the script, thanks @Dale_lehman
Graph Builder(
Size( 590, 393 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables( X( :height ), Y( :one ), Y( :height ) ),
Relative Sizes( "Y", [59 231] ),
Elements( Position( 1, 1 ), Heatmap( Y, Legend( 6 ), Label( "Label by Row" ) ) ),
Elements( Position( 1, 2 ), Histogram( X, Y, Legend( 9 ) ) )
);