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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
nakul555
Frequent Visitor

Standard Dev of count of data (monthly)

I have data in power bi in the table in below form:

 

IDDateFailure
11/1/2021A
21/2/2021B
31/17/2021C
42/4/2021A
52/15/2021D
64/6/2021D
77/10/2021C
88/12/2021B
99/9/2021A
1012/30/2021E

 

And I need to calculate standard deviation of individual failure (for A,B,C....) counts in past 12 months.

Failure CountsAprMayJunJunJulJulyAugSepStandard Dev
A15356789=+STDEV.S(J21:Q21)
B27589111214=+STDEV.S(J22:Q22)
C54569172=+STDEV.S(J23:Q23)
D41308345=+STDEV.S(J24:Q24)
E31367901

=+STDEV.S(J25:Q25)

 

 

 

Something like this

FailureStd Dev
A2.5
B2.5
C3.5
D4
E1.2

 

Can someone please help me?

2 REPLIES 2
selimovd
Super User
Super User

Hey @nakul555 ,

 

that should be possible with the function STDEV.S

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Hello @selimovd,

 

The issue is how to calculate the count monthly so that its standard dev can be calculated.

 

Currently I have 

 

Failure Code Monthly = CALCULATE(COUNTX(FirstTable, 'FirstTable'[ID]), DATESINPERIOD('Work Detail'[Date],EOMONTH(TODAY(),-1),-12,MONTH))
 
Std Dev = VAR SD = STDEVX.S(VALUES('FirstTable'[Month]),[Failure Code Monthly])
RETURN
IFERROR(SD,0)
And it not giving the correct result
 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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