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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply

Row Level Security with multiple conditions

Hello,

 

I am facing an issue to setup RLS in my datamodel .

The scenario is as follows -

 

I have a security table which enlists information as - (Please note this is sample data)

ProfessionGenderLocationEmail Address
AllFemaleIndiaM
LawyerAllUSR
DoctorMaleChinaS
EngineerMaleAllA
AllAllUKN
LawyerAllGermanyR
DoctorMaleAUD
EngineerMaleIndiaS
AllAllDubaiH

 

The user H gets to see all professions in Male & Female residing in Dubai, however M only sees all Female Professions residing in India. 

I tried to create one RLS table and join to the different Dim - Profession , Dim - Gender & Dim - Location , but as they all are joined to my Fact, it keeps only one relationship active. 

 

If you could please help me out with the same.

 

Thanks!

4 REPLIES 4
visheshjain
Impactful Individual
Impactful Individual

Hi @veenashenolikar,

 

It might sound simple but I have to ask, have you tried using the USERELATIONSHIP() function in your DAX measure for RLS?

 

The function uses inactive relationships.

 

Hope this helps.

 

Thank you,

Vishesh Jain

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



Hi @visheshjain ,

 

I tried writing the DAX but was not able to form the complete expression.

If you could please help me with the same.

 

Thanks in advance!

Hi @veenashenolikar,

 

Please refer to this doc USERELATIONSHIP function (DAX) - DAX | Microsoft Learn

 

Also, I can give it a shot, if you can share your sample file.

One more thing, you will need to replace ALL in your Gender column with 2 rows, unless you have the value 'All' in your data as well.

 

Thank you,

Vishesh Jain

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



Hi @visheshjain ,

 

I am handling the ALL using a crossjoin with the dimesion table and a custom column.

 

I will send over the sample file for your perusal

 

Thanks,

Veena

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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