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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.