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
AlwaysAGooner
Helper I
Helper I

RLS based on 3 columns (All possible combinations)

Hi All,

 

Looking to implement RLS that is based on 3 columns. So all possible combinations must be taken in to account while filtering.

Consider the below table, the user could fall in either:


- None of the columns, OR
- Any 1 column, OR
- Any 2 columns, OR
- All 3 columns

AlwaysAGooner_1-1706718043785.png

 

I am using an excel to capture the role against email IDs but can't crack the DAX yet in Manage Roles, any leads with the DAX will be really helpful.

2 REPLIES 2
Anonymous
Not applicable

HI @AlwaysAGooner,

I'd like to suggest you create a new table to unpivot these conditional fields and link the user table. Then you can use the new table as bridge to link user table and other tables and apply security filter effects.

Unpivot columns - Power Query | Microsoft Learn

Regards,

Xiaoxin Sheng

Thanks for your response @Anonymous.
I need the DAX code that could accomodate all possible permutations. I am able to filter but yet to put togther a code that can accomodate all combinations under one RLS role.

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.