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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
BishopKeltie
Regular Visitor

RLS Help - Data rows not filtering based on role membership

Hi,

I have built a report comprising of a custom kpi bar and approx 10 chart visuals. Each visual has its own data source table but they are linked to the kpi bar's table with a common column (lets call the the primary). This column holds all the user identifiers which is a stripped down version of the User principle names. 

 

What we want to achieve is that that standard users should only see data/rows relevent to them. this should be the report's default posistion.

We also have a poweruser/manages group of users that should be able to see all data rows and thus all user's data. They can utilise the filters to filter down to what they need.

 

I have configure the roles as below applying the main DAX expression to the primary table.

BishopKeltie_0-1616760971508.png

example 'True' match = username in [USERNAME] table column = XYZ, UPN = XYZ@Contoso.com

In desktop, when i test by viewing as this role is see the expected result. All visuals on the report are empty.

BishopKeltie_1-1616761554232.png

When this report is published to the cloud service and the role memberships/security are assigned. All users can see all rows, not just theirs. Further more when i test with a test user i know has no linked row at all, it too can see all data/rows.

 

Im also aware of the dataset owner testing quirk/problem. For this reason we design and publish reports using a special BI developer account. This way when we/I test as myself the same restrictions based on role membership should happen to me.

Again, i should not be seeing any data as above, but i the RLS is showing me everything.

 

Can anyon assist or give pointers as ive had similar setups work on other reports (although less complicated).

 

The only other cause i can think of is maybe it's related to where the report is published. In this case it is published to a team/workspace where all staff are members (not owners). This gives access the the actual report without having to share indiviually to users or groups.

By doing this, would it grant access to all data rows? I didnt think it would.

1 ACCEPTED SOLUTION
BishopKeltie
Regular Visitor

Hi All,

Shortly after posting i found the fix. 

I was indeed related to the workspace privacy settings in that all members were able to edit.

 

As per link below, this gives members access to the whole dataset regardless of RLS. A change to view only fixed my problem.

 

Ref links:

View solution in original post

1 REPLY 1
BishopKeltie
Regular Visitor

Hi All,

Shortly after posting i found the fix. 

I was indeed related to the workspace privacy settings in that all members were able to edit.

 

As per link below, this gives members access to the whole dataset regardless of RLS. A change to view only fixed my problem.

 

Ref links:

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.