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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
rajulshah
Super User
Super User

Alternative to USERELATIONSHIP & CROSSFILTER for RLS

Hello everyone,

 

I have RLS in my dataset and there are couple of inactive relationships in our dataset. Microsoft document says that USERELATIONSHIP wouldn't work when RLS is applied. We are achieving CROSSFILTER using inactive relationships.

 

Does anyone have idea for the alternative for USERELATIONSHIP?

 

Any tip/idea might be helpful.

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @rajulshah,

I think you are misunderstanding with RLS features, it can be worked with 'USERELATIONSHIP' functions.
I think the relationship part which you mentioned is mean the indirectly cross table filter features, it is based on active relationships.
If tables did not exist relationship link to the raw table, the RLS filter not auto-apply to those tables. You need to manually set filters on these inactive relationship tables.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @rajulshah,

I think you are misunderstanding with RLS features, it can be worked with 'USERELATIONSHIP' functions.
I think the relationship part which you mentioned is mean the indirectly cross table filter features, it is based on active relationships.
If tables did not exist relationship link to the raw table, the RLS filter not auto-apply to those tables. You need to manually set filters on these inactive relationship tables.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
parry2k
Super User
Super User

@rajulshah which documentation says that USERELATIONSHIP cannot be used with RLS? You need to show your data model and the expected result. Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hello @parry2k ,

 

Unfortunately I won't be able to display the model, but I am getting the same issue as the issue mentioned in this post.

 

Also, this link show you that USRRELATIONSHIP cannot be used when RLS is applied on the table.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.