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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ojt1
Frequent Visitor

Using Standard Deviation in Power BI

Hi

I have been using the following in Excel for a while to use standard deviation (as a rating as opposed to a ranking such as %rank):

=($DM2-AVERAGE($DM:$DM))/STDEV($DM:$DM)

 

I have been trying to recreate in DAX (or even query) and struggling to find solutions online. I have created measures for both Average and STdev(for the columns) to use in an expression, but can't seem to solve it or find the right type of Dax expression.

I don't need the exact forumla from excel creating, just a way of measuring Stdev from the mean for each row.

 

Any help would be appreciated - thank you.

3 REPLIES 3
ojt1
Frequent Visitor

Update - I have created the first half of the formula as a calculated column (Col1 lets say), but am now having trouble dividing the new column with a measure ([standard deviation]). Is it possible to do that?

The Expression I have tried is

NewColumn = Divide('table1'[col1],[standard deviation],0) 

But this will only return 0.

Any help would be appreciated, thanks.

ojt1
Frequent Visitor

I have used that for the measure, but once StDev has been created (as a measure or otherwise) I am haing trouble creating an expression to use the calculated StDev in the way I have previously (the formula that I pasted from excel)

ray_aramburo
Super User
Super User

Check the DAX documentation to see which one suits you the best as there are several formulas. 

Check the left panel for more:

ray_aramburo_0-1687886864207.png

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

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.