Hi @caseylott,
You can do this with nested data filter context boxes, here you can see three different local data filters, including the one inside the graph builder platform. Note that you can have multiple charts which would use both of the outer local data filters, and that you can have any number of nested filters.
Names default to here(1);
dt = Open("$Sample_data/big class.jmp");
New Window("Nested Data Filters",
Data Filter Context Box( //Left Data filter context box
H List Box(
dt << Data Filter( Local, Add Filter( columns( :height ) ) ),
Data Filter Context Box( //Second-from-left context box
H List Box(
dt << Data Filter( Local, Add Filter( columns( :age ), Display( :age, N Items( 6 ) ) ) ),
//could add a v list box here and put a second graph which also uses the outer local data fitlers.
dt << Graph Builder(
Size( 528, 456 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
Elements( Points( X, Y, Legend( 5 ) ), Smoother( X, Y, Legend( 6 ) ) ),
//included a local data filter in the platform
Local Data Filter( Add Filter( columns( :sex ), Display( :sex, N Items( 2 ) ) ) )
)
)
)
)
)
);