Hi
I want to control the Chart Type of a Control Chart using an if-statement. I have tried the code beneath (with Eval, quotes ("), and just P, but get "Error for Control Chart on data table Emodulus: unknown chart type" ever time. How is this done?
Control Chart(
Sample Size(
If( Length( lstStatColumnCount[1] ) > 1,
Column( lstStatColumnCount[1] ),
:Batchno
)
),
KSigma( 3 ),
Chart Col( Column( lstStatColumn[1] ) ),
Chart Type(
If( Length( lstStatColumnCount[1] ) > 1,
Eval( P ),
Eval( Individual on Group Means )
)
),
SendToReport(
Dispatch(
{},
"Presummarize Control Chart",
OutlineBox,
Set Title( lstAxisLabel[1] )
),
Dispatch(
{},
"2",
ScaleBox,
{Format( "Best", 10 ), Min( lstLegendMin[1] ), Max( lstLegendMax[1] ),
Inc( lstLegendInc[1] ), Minor Ticks( 1 )}
)
)
);
Best Regards
Tarrild