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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
clem312
Resolver I
Resolver I

Standard deviation

Hi everyone,

 

I am trying to calculate a standard deviation, counting the number of Code per ID :

M1 is my average.

D1 is the number of code for each ID.

VAR M1 = DIVIDE(CALCULATE(COUNT([Code]), year=2020, Brand=A), CALCULATE(DISTINCTCOUNT([ID]), year=2020, Brand="A"))
VAR D1 = CALCULATE(COUNTX(VALUES([ID]), CALCULATE(COUNT([Code]), year=2020, Brand="A")))
 
D1-M1 should be my standard deviation
But I must do something wrong...
1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @clem312 ;

You could use STDEVX.SSTDEVX.P、 STDEV.PSTDEV.S

to calculate the standard deviation .If not, can you share your simple data and desired results?

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @clem312 ;

You could use STDEVX.SSTDEVX.P、 STDEV.PSTDEV.S

to calculate the standard deviation .If not, can you share your simple data and desired results?

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.