Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nehajadhav166
Resolver I
Resolver I

Stdev.s giving incorrect value

Hi Experts,

 

In my Cpk calculation, I see STDEV.S is giving incorrect value.

Data set I have as below

-11.67
-11.71
-11.67
-11.67
-11.69
-11.65
-11.68
-11.67
-11.63
-11.60
-11.65

 

I expect value as 

MEAN-11.6627
STD0.0297
CpK37.46

But my Cpk value is 39.18. When I debugged issue, I see std deviation caculation is different . 

Formula I use is 

STDEV.S(RFLoopback[Value]) but value I get for 
STDEV.P(RFLoopback[Value])
This is creating issue.
Does anyone have idea how to resolve this issue?
 
Thanks,
Neha
1 ACCEPTED SOLUTION

@v-jianboli-msft ,

 

Issue is resolved now. There was data discrepency when I am loading data using M query. I removed some colunms and removed duplicate values. Now its working fine.

There is no issue with STDEV.S and STDEV.P calculation in power BI.

 

Thanks,

Neha

View solution in original post

7 REPLIES 7
v-jianboli-msft
Community Support
Community Support

Hi @nehajadhav166 ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-jianboli-msft ,

 

Issue is resolved now. There was data discrepency when I am loading data using M query. I removed some colunms and removed duplicate values. Now its working fine.

There is no issue with STDEV.S and STDEV.P calculation in power BI.

 

Thanks,

Neha

Greg_Deckler
Super User
Super User

@nehajadhav166 Correct.

Greg_Deckler_0-1663331378570.png

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler ,

 

This is strange.I use below formula.

CpkLoop =
VAR sigma = STDEV.S(RFLoopback[Value])
VAR estimatedMean = AVERAGE(RFLoopback[Value])
VAR Cplower = (estimatedMean-MIN(RFLoopback[LSL]))/(3*sigma)
VAR Cpupper = (MAX(RFLoopback[USL])-estimatedMean)/(3*sigma)
RETURN IFERROR(MIN(Cplower,Cpupper),1e6)
 
Still STDEV.S give me 0.0281.
Any idea what could be the issue?
 
Thanks,
Neha

@nehajadhav166 Mystery. See my attached PBIX below sig.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

@nehajadhav166 How is CPK being calculated? Your formula. If I use STDEV.S I get back 0.0297 whereas STDEV.P returns 0.02831. So use STDEV.S?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler , yes I am using STDEV.S.

How did you calculate? in power BI?

 

Thanks,

Neha

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.