cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

Interactive Capability Plot - display Expected % Non-conformance (instead of, or as well as Expected PPM)

For the interactive Capability Plot, it'd be great to show Expected % Out of Spec also. The Expected PPM may be useful for some, but for most people this is a value that needs re-calculation back to a real world metric, i.e. percentage.

 

1 Comment
jthi
Super User

This could be expanded for all platforms which are missing this value.

 

I came across this topic Interactive Capability Plot - possible to convert PPM to % easily? which most likely did start this idea.

 

Definitely not the most elegant option but here is one way to script it:

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
obj = Process Capability(Process Variables(:PNP1), Individual Detail Reports(1));
obj << {:PNP1 << Process Capability Analysis(Interactive Capability Plot(1))};

tb = (((Report(obj)[OutlineBox("Interactive Capability Plot")][OutlineBox("New")][OutlineBox("Expected PPM")])) << child);
ncb = Number Col Box("Observed %", (tb[2] << get as matrix) / 1e6);
ncb << Set Format(Format("Percent", 7, 4));
Insert Into(tb, ncb);

// function for slider box
Eval(EvalExpr(
	(((((Report(obj)[OutlineBox("Interactive Capability Plot")][OutlineBox("New")]) << child) << child)<< child)[2]) << Set Function(function({this},
		Expr(ncb) << Set Values((Expr(tb[2]) << get as matrix) / 1e6);
	));
));

// function for number edit box
Eval(EvalExpr(
	(((((Report(obj)[OutlineBox("Interactive Capability Plot")][OutlineBox("New")]) << child) << child)<< child)[3]) << Set Function(function({this},
		Expr(ncb) << Set Values((Expr(tb[2]) << get as matrix) / 1e6);
	));
));

// tb[2] << Visibility("Collapse");

Reference building can be made cleaner if needed.