Forum Discussion
BishwaR
Helper V
5 years agoDax to overwrite Row Level Security
Is there any Dax function to overwrite the Row Level Security ?
I want to display a messege when the RLS is activated. So I need a Dax that can funtion outside the RLS.
Thanks
Bishwa
5 Replies
- selimovd
Most Valuable Professional
Hey BishwaR ,
you can check for a value that should be there. If it's not there the row level security works, otherwise it doesn't.
For example if the user is just allowed to see his own data you can do:
Check RLS = IF( COUNTROWS(UserTable) = 1 , "Row Level Security works", "You see all data master of the universe")Would that work for you?
If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic- BishwaR
Helper V
I had tried that DAX but the problem is when the RLS gets activated evertying on the canvas including that DAX gets blocked. So the unauthorized views will not be able to see that message as well.