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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Solution Specialist
Solution Specialist

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

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

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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