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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
M0n5ta09
Helper I
Helper I

HELP - Standard Deviation

Hi everyone,
 
I've been trying for hours to calculate the Standard Deviation by month and by year based on _Faults per Day but getting nowhere.
I'm expecting the STDEV to be around 0.75 for 2017 and 0.65 for 2018.
Eventually I will be using the STDEV to calculate Lower and Upper Control Limits to visualise on a line chart against _Faults per Day.
 
Table1.JPG
 
 
 
 
 
 
 
 
 
 
 
 
Table2.JPG
 
 
 
 
 
 
 
 
 
 
 
Measures:
  • Faults = DISTINCTCOUNT('Full WO Extract'[FaultNum])     // Distinctcount of Fault Numbers
  • _Selected EOMonth = SELECTEDVALUE('Full WO Extract'[c_EOMonth])     // Number of Days for Month
  • _Faults per Day = DIVIDE( 'Full WO Extract'[Faults], 'Full WO Extract'[_Selected EOMonth])
  • _Mean - Faults per Day = DIVIDE(SUMX('Full WO Extract','Full WO Extract'[_Faults per Day]),12)
 Any help will be most appreciated. Thank you.
1 ACCEPTED SOLUTION
ALLUREAN
Solution Sage
Solution Sage

Can you try this measure:

STDEV (LongTerm) = STDEV.S([_Faults per Day])
 

Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.

Appreciate your Kudos !!!

https://allure-analytics.com/




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




View solution in original post

5 REPLIES 5
M0n5ta09
Helper I
Helper I

Thanks for your replies @ALLUREAN and @amitchandak 

 

_Faults per Day and _Mean - Faults per Day are both measures, I modified each to;

__STDEV = CALCULATE(STDEVX.P('EXTRACT','EXTRACT'[_Faults per Day]), ALLEXCEPT('DATES',DATES[Year]))

and

STDEV (LongTerm) = STDEVX.S('EXTRACT','EXTRACT'[_Faults per Day])

 

but both produce a 0.00 result.

 

YearMonthName_Selected EOMonth_DistinctWO_Faults per Day_Mean - Faults per Day
2017Jan312126.840.57
2017Feb281936.890.57
2017Mar312177.000.58
2017Apr302498.300.69
2017May312297.390.62
2017Jun302598.630.72
2017Jul312718.740.73
2017Aug312588.320.69
2017Sep302247.470.62
2017Oct312417.770.65
2017Nov302127.070.59
2017Dec312728.770.73

 

I'm looking for the Standard Deviation for _Faults per Day. In Excel, STDEV for _Faults per Day returns 0.75.

 

Thank you.

Hi, 

 

I used the measure that proposed earlier and get this result, check the file here. For 2017 STDEV is 0.75. I just remove the filter for month (ALL function) if you want to have the same value in each month in case you will show months also in the table

 

https://www.dropbox.com/s/pafc51sst6ggvuu/STDEV_%28allure-analytics.com%29.pbix?dl=0

 

 

 




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




ALLUREAN
Solution Sage
Solution Sage

Can you try this measure:

STDEV (LongTerm) = STDEV.S([_Faults per Day])
 

Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.

Appreciate your Kudos !!!

https://allure-analytics.com/




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Many thanks @ALLUREAN.

 

Once I got the values into a column in the table opposed to using a measure, it worked perfectly.

amitchandak
Super User
Super User

@M0n5ta09 , Try like

calculate(Stddev.p(Table[_Mean - Faults per Day]), allexcept(table[Year]))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors