Forum Discussion
Median giving incorrect values
It would be returning the median across the entire dataset, it wouldn't be split into any categories.
16 Replies
- johnt75
Super User
It would be returning the median across the entire dataset, it wouldn't be split into any categories.
- stevezly
Helper I
Thanks John.
Is there anyway I could get these to match up do you think?
Basically I'm having to use a summary column in order to bypass RLS and create benchmarks, but I can't think of a way to calculate median in a way that would tie up with the rest of the report.
Thanks for your help so far
- johnt75
Super User
If you add the CALCULATE then the summary table should be correct, with the correct median per category.
- johnt75
Super User
You need to wrap the MEDIAN call inside CALCULATE() so that it picks up the row context from the SUMMARIZE.
- stevezly
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.