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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
t_guet01
Helper I
Helper I

How to compute a standard deviation of a calculated column (matrix structure)

Hi guys,

 

I am currently trying to compute the standard deviation based on a calculated column. I want to compute the deviation of gross revenue share within a continent per group. Say, e.g.: Group A makes 17.5 % of the gross revenue from total Africa. 

t_guet01_0-1629455452998.png

 

I now would like to compute the standard deviation of the values from Group A across the Continent. So 17.5 %, 15.42 %, ..., 19.19 %. I tried "STDDEV.P" over the calculated column with the same formula as the gross revenue share, but that doesn't work.


Any ideas? Please find the respective files here:

 

https://www.dropbox.com/sh/1rknfclljs8sigp/AADj8XxAkJW9YTE5UfJFJzWwa?dl=0

 

Thank and best!

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You can try something like this

 

GR Share STD = STDEVX.P(VALUES(Table[Continent]), [Gross Revenue Share Measure])

 

or you can use ALLSELECTED(Table[Continent]) instead of VALUES depending on where you are doing this calculation.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

You can try something like this

 

GR Share STD = STDEVX.P(VALUES(Table[Continent]), [Gross Revenue Share Measure])

 

or you can use ALLSELECTED(Table[Continent]) instead of VALUES depending on where you are doing this calculation.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Perf, thank you Pat! 🙂

Knew it was something obvious, didn't see the forest for the trees.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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