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
iDataDrew
Advocate IV
Advocate IV

How to duplicate the Excel STANDARDIZE() function in DAX to generate normalized ratio?

I'm trying to duplicate the STANDARDIZE() function available in Exel in order to generate a standardized ratio, or z-score.

 

z= (x - m) / sd

 

How would I write a formula for this?

1 REPLY 1
dkay84_PowerBI
Microsoft Employee
Microsoft Employee

I'm assuming you have a data table that has the X and SD values, and you can calculate the population mean from the data?

 

I would create a measure in the following form:

 

Zscore = 

 

var popMean = calculate(average(Table[Value]),all(Table)),

 

return (table[Value] - popMean) / table[SD]

 

Note: you could calculate the SD if necessary using another variable like popMean

 

 

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.