Forum Discussion
Conditionally display text if row level security returns no data
- Anonymous4 years ago
Hi cv77 ,
There is no specific function, but the following solution can be used to solve it.
It is to count your rows. If the user can't see the data, the count is empty, and no access permission is returned.
You can create the following measure and put it into a card visual.
Measure = IF(ISBLANK(MAX('username'[username])),"No access","Have access")Users with access can see the following
Users without access can see the following
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the response. Is there a way that I can use that other than on every measure? I was looking for something that would apply across the report rather than having to write it into every calculation.
- lbendlin4 years agoSuper User
I am not aware of a more global approach - apart from using different reports for different audiences that avoid the issue in the first place.
- cv774 years agoHelper I
Thank you.
- Anonymous4 years agoNot applicable
Hi cv77 ,
There is no specific function, but the following solution can be used to solve it.
It is to count your rows. If the user can't see the data, the count is empty, and no access permission is returned.
You can create the following measure and put it into a card visual.
Measure = IF(ISBLANK(MAX('username'[username])),"No access","Have access")Users with access can see the following
Users without access can see the following
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.