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.
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
- johnt754 years ago
Super User
You could put any filtering logic inside the CALCULATETABLE function, but I'm not clear what you're trying to return.
- stevezly4 years ago
Helper I
I just need the median from that summarized table returned so I can add it into existing matrix view as a benchmark. That code I linked works, and the filters are enabled, however when I turn on RLS, the figure also changes with the role. Unfortunately, that's why I'm using a summary table in the first place.
- johnt754 years ago
Super User
Ah, I don't know enough about RLS to be able to help with that.
- stevezly4 years ago
Helper I
Ah, yes that's what I'm trying to acheieve with this summarized table.
No worries, thanks for your help. - stevezly4 years ago
Helper I
I do find it strange though, that the RLS works fine when I use the summarize function in a calculated column, but it doesnt when i use it as a variable table.
- johnt754 years ago
Super User
Are you sure that RLS is being applied to the calculated table? The table would only be calculated during data refresh, so I don't think that RLS would come into effect - there wouldn't be any logged in user at that point
- stevezly4 years ago
Helper I
That's why I'm using the calculated table; to bypass the RLS filter. Although it seems like there is no solution to my problem as these calculations are incompatible with the slicer.