Forum Discussion
Median giving incorrect values
- 4 years ago
It would be returning the median across the entire dataset, it wouldn't be split into any categories.
Calculated tables and columns are only calculated during data refresh so they do not take into account filters or slicers. The only way to get it to react to slicers would be by creating a measure which stores the table in a variable, thus calculating it each time, and then retrieving the relevant value or aggregate from that variable.
You can use functions like FILTER and SELECTCOLUMNS on variables, just like normal tables.
Thanks John, I actually tried this the other day but unfortunately the RLS wasnt working with it. I'll take another look now but I'll leave the DAX here incase you can notice anything that might be causing it.
Thanks a lot for all help