The main issue with what you want, is that your data are not in a proper form for running the Variability-Attribute Chart platform. The script below will transform a data table with the columns you have specified, into a data table that can be used to generate the charts you want.
Names Default To Here( 1 );
dt = Current Data Table();
// Make a list of the Tests
Summarize( dt, testList = by( :Test Name ) );
dtSplit = dt << Split(
Split By( :Test Name ),
Split( :Measurement, :LSL, :USL ),
Group( :Device ),
Sort by Column Property
);
// Rename the test columns and set the Spec Limits
For( i = 2, i <= N Items( testList ) + 1, i++,
// Assign the new names
Column( dtSplit, i ) << set name( Substr( Column( dtSplit, i ) << get Name, 13 ) );
// Set the Spec Limits
Eval(
Substitute(
Expr(
Column( dtSplit, i ) << set property(
"Spec Limits ",
{LSL( __LSL__ ), USL( __USL__ ), Show Limits( 1 )}
)
),
Expr( __LSL__ ), Col Mean( As Column( dtSplit, i + N Items( (testList) ) ) ),
Expr( __USL__ ),
Col Mean( As Column( dtSplit, i + 2 * N Items( (testList) ) ) )
)
);
);
// Delete unwanted limits columns
dtSplit << delete columns( Index( N Items( testList ) + 2, N Cols( dtSplit ) ) );
Jim