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
IsFea
New Member

USERELATIONSHIP Ignoring RLS with Inactive all Relationships โ€“ Bug or Feature?

Hello, I have a question about how USERELATIONSHIP works when all relationships are initially deactivated.
As an example, I have prepared a simple data model (all relationships are deactivated!):

IsFea_0-1739429868952.png

dimproduct:

IsFea_1-1739429895091.png

factonlinesales:

IsFea_2-1739429912036.png

I have set up a simple RLS role.

IsFea_4-1739430248131.png

Without using USERELATIONSHIP, I only see Deluxe products:

IsFea_5-1739430320586.png

Since RLS filters my dimension table. Great!

IsFea_6-1739430432897.png

 

However, when I add USERELATIONSHIP:

IsFea_7-1739430489358.png

I start seeing Economy products!

 

Can someone explain why this happens? It looks like a bug because I expected to get the sales total only for Deluxe.

IsFea_8-1739430634747.png

Yes, I understand that RLS propagates through active relationships, but there are no active relationships in my model!
I want to filter my dimension table using RLS, and I expect this filtered dimension table to also filter my fact table.
1 REPLY 1
Rupak_bi
Super User
Super User

Hi,

Userrelationships also works as active relationships only and will bypass RLS. To enable RLS, you need to define the same in the DAX where using Userrelationship.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.