Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
YukiK
Impactful Individual
Impactful Individual

How to detect object / row level security and show a different visual

For the visual where object / row level security is in effect, it won't get populated and just show an error on the visual.

 

But is there anyway to show a better message? I'd like to do something like when a person doesn't have access to the data in a visual, instead of showing the visual, show a text box saying something like "You don't have access to see this visual".

 

Thanks in advance.

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @YukiK,

In fact, the RLS filter worked the same as a common filter. You can create a card visual with custom expression to use to show some notice message if the original visual records have been filtered to blank.

Display Custom Message in the Visual Until a Selec... - Microsoft Power BI Community
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
YukiK
Impactful Individual
Impactful Individual

How about handling OLS? It's basically where the tables / columns are gone, which I'm not sure how to catch in DAX...

Hi @YukiK,

AFAIK, OLS will affect the table structure. So I think you need to do some operations on the query table side use a template to formatting the table structure.
For example:

Initiation table with a static structure with all fields similar to your database. Fill up the filtered field with blank values, you can write RLS expressions to check multiple fields to trace if some fields not existed value(it means these fields have been filtered by OLS). Then you can use if statement with particular processing with these situations.
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
YukiK
Impactful Individual
Impactful Individual

I'm not sure if I'm confident to implement that. It looks like there is not an out-of-box solution to this.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.