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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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