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
Anonymous
Not applicable

How to calculate the Normalized Standard Deviation in Power Bi?

Hello, 

 

I have 16 employees from 2 countries.
The Dataset contains multiple records for each employee.
 
1. I need to show Total Salary per employee/country based on filters content (i.e months, country)
Salary = SUM ( dimSalaryPerEmployee[Salary]  )
2. I need to show Average Salary per employee/country based on filters content (i.e months, country)
Avg = AVERAGE ( dimSalaryPerEmployee[Salary] )
3. I need to show Normalized Std of Salary per employee/country based on filters content (i.e months, country)
Std =  STDEV.S ( dimSalaryPerEmployee[Salary)
 
I need to have a Normalized Std measure per country! Meaning each employee will be evaluated in its own country.
Normalized Std = (Salary-Avg)/Std
How can I tell Dax to use an Avg for the country that is in the current context?

 

Capture.PNG

 

Thanks,

Tamir

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

Seems like you could just wrap those measures in a CALCULATE with a FILTER for the country or maybe I don't understand what you are asking for?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

I believe you understand perfectly 🙂

 

I tried,

Normalized Std = calculate((Salary-Avg)/Std,ALL(dimCountries[Country])

and of course it doesn't work...

 

I think I need to do 

Normalized Std = calculate((Salary-Avg)/Std,FILTER(dimCountries[Country]=????)

 but I don't know what to put in the ????

 

Thank you for the help,

Tamir

 

 

 

Well, you could create two measures, one for each country and then you would just plug in the country name in double quotes.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

It is just a sample...I have around 60 countries...

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.