I would like to have parametrized Process capability, that is the process capability column will be changed by column switcher. However, the process capability analysis definition do not accept any parametrized value. In the following example, let's say the column switcher value is "d" which is a string "Displacement". The Process variables can be defined with Eval(d) without any issue, i.e., Process Variables( Eval(d)) works fine; however, the process capability analysis does not works, i.e, Eval(d)<< Process Capability Analysis does not work. The reason I need this is the columns of the column switcher changes within a list, and I want the interactive plot follows it.
Another issue I have is the Interactive Capability plot values does not change with the column switcher. Manually, it is possible to use "Revert to Original Values", but it does not work in the script (as shown in the image). How can I use this function in script so that every time I switched the column, it reverts.
d = "Displacement";
ProcessCap = dt << Process Capability(
Process Variables( Eval( d ) ),
Moving Range Method( Average of Moving Ranges ),
Individual Detail Reports( 1 ),
Capability Box Plots( 0 ),
Goal Plot( 0 ),
Capability Index Plot( 0 ),
Always use column properties( 1 ),
Process Performance Plot( 0 ),
{Eval( d ) << Process Capability Analysis(
Overall Sigma Capability( 0 ),
Nonconformance( 0 ),
Within Sigma Capability( 0 ),
Histogram( 1, Show Within Sigma Density( 0 ) ),
Interactive Capability Plot( 1, Revert to original values( 1 ), )
)},