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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
johnnypantera
New Member

Display RLS in force when user views report

Greetings!  We have a PBI Report with RLS that is published to the PBI Service.  When users access a report we would like to visibly show them the RLS in placed for their personal view (much like they can see report filters in play), so we can avoid users lack of clarity regarding the organizational data slice they are viewing.

 

If someone could share the PBI feature and/or DAX code to make this happen, I would be very grateful.  Thank you in advance.

1 ACCEPTED SOLUTION
darentengdrake
Resolver II
Resolver II

Hi @johnnypantera ,

 

This is what I would do:

  1. Create a table (let's call the column RLSName) in Power BI that has rows with your RLS names, e.g. Row 1: Manager, Row 2: Employee
  2. Assign the RLS you created previous with an "Or" statement (which I believe is the syntax || ), with the values equals to the RLS values (just like how you create RLS, but this time with the RLSName)
    • e.g. Role "Manager" >[RLSName] = "Manager"
    • e.g. Role "Employee" >[RLSName] = "Employee"
  3. Create a new visual that will show you the RLSName, so if someone is assigned Role Manager, he/she will see "Manager" in the visual

 

Hope this works and hope this helps!

 

Daren

View solution in original post

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @johnnypantera ,

 

I'd like to suggest you looking through below references whick much helpful:

Official document mainly about the static RLS: https://docs.microsoft.com/en-us/power-bi/desktop-rls

Dynamic RLS:https://radacad.com/dynamic-row-level-security-with-manager-level-access-in-power-bi

https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
darentengdrake
Resolver II
Resolver II

Hi @johnnypantera ,

 

This is what I would do:

  1. Create a table (let's call the column RLSName) in Power BI that has rows with your RLS names, e.g. Row 1: Manager, Row 2: Employee
  2. Assign the RLS you created previous with an "Or" statement (which I believe is the syntax || ), with the values equals to the RLS values (just like how you create RLS, but this time with the RLSName)
    • e.g. Role "Manager" >[RLSName] = "Manager"
    • e.g. Role "Employee" >[RLSName] = "Employee"
  3. Create a new visual that will show you the RLSName, so if someone is assigned Role Manager, he/she will see "Manager" in the visual

 

Hope this works and hope this helps!

 

Daren

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.