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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
Anonymous
Not applicable

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.
Anonymous
Not applicable

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.