March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
Need help to write DAX to calculate Cpk
Cpk formula
Sample data
current dax
Xbar = AVERAGE(Table[MeasureValue]) STDEV = STDEV.S(TableMeasureValue])
Abbreviations
USL= Limit Upper
LSL= Limit Lower
STDEV= sigma
Solved! Go to Solution.
Not entirely sure how you are using this, but perhaps something like:
Cpk = VAR CpU = (MAX([LimitUpper]) - [Xbar])/3*[STDEV] VAR CpL = ([Xbar] - MAX([LimitLower]))/3*[STDEV] RETURN MIN(CpU,CpL)
Not entirely sure how you are using this, but perhaps something like:
Cpk = VAR CpU = (MAX([LimitUpper]) - [Xbar])/3*[STDEV] VAR CpL = ([Xbar] - MAX([LimitLower]))/3*[STDEV] RETURN MIN(CpU,CpL)
Awesome and thanks alot.
PS. added a "( )" for ( 3*[STDEV] )
Cpk = VAR CpU = (MAX([LimitUpper]) - [Xbar])/(3*[STDEV]) VAR CpL = ([Xbar] - MAX([LimitLower]))/(3*[STDEV]) RETURN MIN(CpU;CpL)
@vincentakatoh- I created a Quick Measure page for these kinds of process measures if you need any others or if you want to check that I didn't make any other mistakes!
Yeah, I actually added those too after my post I was looking at the formulas and thinking, hmmm...I think it needs some parens... 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |