Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
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:
Stuck here for hours...Can someone help please? Thanks!
Solved! Go to Solution.
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
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
OMG you are awesome!! Thanks!!!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!