Forum Discussion
Median Calculated Column using Dax
Thanks for the reply v-qiuyu-msft.
Median forumal worked.
But as i mentioned above in my question, i am grouping the median by grade here.
When i used the same formula but in calculated column it giving me wrong result.
Measure Forumula:-
_Median By Measure = CALCULATE(MEDIAN('Emp Master'[Count]),ALLSELECTED('Emp Master'))Calculated Column Formula:-
_Median By Cal Col = CALCULATE(MEDIANX('Emp Master','Emp Master'[Count]*1.0),ALLSELECTED('Emp Master'))Output:-
Can you please help me with this...
v-qiuyu-msft v-xjiin-msft can you please suggest me about this..
- v-xjiin-msft8 years ago
Solution Sage
Anonymous
That's weird. I have made some test based on your sample data. Use Enter Data directly to create a source table. However the measure and calculated column with same expression return the same result.
Please refer:
Thereby, I think the issue is not related to the expression. Maybe it exists in other parts of your report. Please verify this.
Thanks,
Xi Jin.- Anonymous8 years agoNot applicable
v-xjiin-msft Thanks for the reply.
I think you didnt checked with mulitple grades.
I too used the same formula
_Median = CALCULATE(MEDIANX('Emp Master','Emp Master'[Count]*1.0),ALLSELECTED('Emp Master'))- Anonymous8 years agoNot applicable
v-xjiin-msft v-qiuyu-msft Can you please give any suggestion regarding this..
It will be lot helpful for me.