My Error or rather JMP's funky interpretation. Because of the way Tabulate works, it uses the specific names to key actions, and by changing the label name to Column %, Tabulate recalculated the value. So if the label is changed to "The Column %" it does not do the recalcuation.
names default to here(1);
// Open Data Table: Air Traffic.jmp
// → Data Table( "Air Traffic" )
dt = Open( "$SAMPLE_DATA/Air Traffic.jmp" );
tab = dt << Tabulate(
Add Table(
Column Table( Statistics( Column % ) ),
Row Table( Grouping Columns( :Airline ) )
)
);
dtCalc = tab << make into data table;
dtCalc << select where( :Airline == "Alaska" | :Airline == "America West" |
:Airline == "American"
);
dtSub = dtCalc << Subset( selected rows( 1 ), selected columns( 0 ) );
dtSub << Tabulate(
Change Item Label( Statistics( Sum, "The Column %" ) ),
Remove Column Label( Analysis Columns( Column % ) ),
Show Control Panel( 0 ),
Add Table(
Column Table( Analysis Columns( :Column % ) ),
Row Table( Grouping Columns( :Airline ) )
)
);
Jim