Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

CPK Formula

I am trying to write an expression formula to calculate cpk.  In excel the formula looks like this:

"min((USL-mean)/(3*sigma)),((mean-LSL)/(3*sigma))"

Please help me with the syntax in Qlik View.

Thanks

Brian

1 Solution

Accepted Solutions
Not applicable
Author

Yup, SPC is sometimes challenging. Attached is a formula that works.

View solution in original post

6 Replies
Not applicable
Author

I too would like help on this.

bgerchikov
Partner - Creator III
Partner - Creator III

I've never done it before, but I'd suggest to use Statistics Chart Wizard in Tools menu using QV Help guidelines. It allows to operate many of known statistical functions.

Hope it will help.

Not applicable
Author

Good info here, Im trying to work on the formula now.

http://en.wikipedia.org/wiki/Process_capability_index

Not applicable
Author

Yup, SPC is sometimes challenging. Attached is a formula that works.

Not applicable
Author

What verison of Qilkview are you using? Also, if both my min and max are defined do I need the bottom half the formula?

Not applicable
Author

Using ver 11. But the formula I sent you was written in ver 7. Don’t really need the second half but our consultant at the time (ver 7) want to be sure to account for missing values. If I really wanted to be very accurate I would use this formula: cpk =cp*((1-((ABS(target-mean))/MIN(target-LSL,USL-target)))) This formula is intended to compensate for asymetric specs; eg: LSL 5 Target 10 USL 17.

Hope this helps.