Forum Discussion

VivianC's avatar
VivianC
Helper I
7 years ago
Solved

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: ...
  • v-jiascu-msft's avatar
    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