Forum Discussion
VivianC
7 years agoHelper I
Median/STDEV For Each Unique Name From Multiple Values
Hello, I have a table like below. I want to calculate the Median from multiple values (and Standard Deviation, but here I just show Median as example) based on each unique Key_CountrySkill column: ...
- 7 years ago
Hi VivianC,
You can do it like below. Please also check out the demo in the attachment.
Median = CALCULATE ( MEDIAN ( Table1[Annualized USD] ), ALLEXCEPT ( Table1, Table1[Key_CountrySkill] ) )Stdev = CALCULATE ( STDEV.P ( Table1[Annualized USD] ), ALLEXCEPT ( Table1, Table1[Key_CountrySkill] ) )Best Regards,
Dale
v-jiascu-msft
7 years agoMicrosoft Employee
Hi VivianC,
You can do it like below. Please also check out the demo in the attachment.
Median =
CALCULATE (
MEDIAN ( Table1[Annualized USD] ),
ALLEXCEPT ( Table1, Table1[Key_CountrySkill] )
)
Stdev =
CALCULATE (
STDEV.P ( Table1[Annualized USD] ),
ALLEXCEPT ( Table1, Table1[Key_CountrySkill] )
)
Best Regards,
Dale
- VivianC7 years agoHelper I
OMG you are awesome!! Thanks!!!