
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yup, SPC is sometimes challenging. Attached is a formula that works.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I too would like help on this.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good info here, Im trying to work on the formula now.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yup, SPC is sometimes challenging. Attached is a formula that works.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What verison of Qilkview are you using? Also, if both my min and max are defined do I need the bottom half the formula?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
