Forum Discussion
stevezly
Helper I
4 years agoMedian giving incorrect values
Hi All, I am trying to calculate median over some grouped data, but the "median" value I get back is the same for each group which cannot be correct. Am I missing something here? Thanks ...
- 4 years ago
It would be returning the median across the entire dataset, it wouldn't be split into any categories.
johnt75
Super User
4 years agoYou need to wrap the MEDIAN call inside CALCULATE() so that it picks up the row context from the SUMMARIZE.
- stevezly4 years ago
Helper I
Ah thanks, was being silly.
It is strange though. The values I am getting for "Median" do not match up with spot checked values from the main Median measure, when i filter down into these groups.