Forum Discussion
Anonymous
8 years agoNot applicable
Median Calculated Column using Dax
Hello All, I have written measure for Median by using the below formula. _Median = CALCULATE(MEDIAN('Emp Master'[Emp Count]),ALLSELECTED('Emp Master')) Now when i filter by SBU and PRACTICE ...
S184019
5 years agoAdvocate III
So no solution on this?
CALCULATE(MEDIANX('Emp Master','Emp Master'[Count]*1.0),ALLSELECTED('Emp Master'))When I try re-creating this column (not measure), I get an error stating, Expressions that yield variant data-type cannot be used to define calculated columns.
How do we create a median column??
Thanks, 😊