hi kschnarrs
if i understood your request correctly you should be using the local data filter.
perhaps this example can help:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Control Charts",
V List Box(
dt << Control Chart Builder(
Variables( Y( :height ) ),
Chart( Position( 1 ), Limits( Spec Limits( 1 ) ) ),
Chart( Position( 2 ) ),
Local Data Filter(
Location( {0, 18} ),
Add Filter( columns( :sex ), Where( :sex == "F" ) ),
Mode( Select( 0 ), Show( 1 ), Include( 1 ) )
)
),
dt << Control Chart Builder(
Variables( Y( :height ) ),
Chart( Position( 1 ), Limits( Spec Limits( 1 ) ) ),
Chart( Position( 2 ) ),
Local Data Filter(
Location( {0, 18} ),
Add Filter( columns( :sex ), Where( :sex == "M" ) ),
Mode( Select( 0 ), Show( 1 ), Include( 1 ) )
)
)
)
);
best!
ron