Thank You. I think your answer is close to what I want, and only a slight modification of the code would allow me to achieve the desired result. Unfortunately, I am at the beginning of my journey with the JMP SL, I would be grateful if you could help me obtain a code that would fully implement what I want to achieve.Therefore, I will try to explain my problem better.
I need to say, that I use a loop to want control charts to be executed for different parameters from the data table. I'm having trouble with how, using your previous tip, I can change the code to take the i-th column as the one to filter on. I tried :Column(i), but I don't think that's the way...
I'm sharing a piece of code from my attempt to explain what I mean.
For( i = 2, i <= 5, i++,
dt << Control Chart Builder(
lstdates = Matrix( Associative Array( :Column( i ) ) << Get Keys );
lstdates = As List( lstdates[Loc( !Is Missing( lstdates ) )] );
Show Two Shewhart Charts( 0 );,
Sort by Row Order( 1 ),
Include Missing Categories( 0 ),
Show Excluded Region( 0 ), //sprawdź które to które
Show Limit Summaries( 0 ),
Variables( Subgroup( :Batch ), Y( :Column( i ) ) ),
Chart(
Points( Statistic( "Individual" ) ),
Limits( Sigma( "Levey Jennings" ) ),
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ), Test 4( 1 ) )
),
ldf = cc << Local Data Filter(
Add Filter( columns( :Column( i ) ), Where( :Column( i ) == lstdates ), Display( :Column( i ), N Items( 5 ) ) )
),
SendToReport(
Dispatch( {}, "graph display 1 title", TextEditBox, {Set Text( "Levey Jennings chart of " || Nazwy[i] )} ),
Dispatch( {}, "Subgroup display 1 title", TextEditBox, {Set Text( "Batch numer" )} )
)
);
)
);