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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!!!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |