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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
chayanupadhyay
Helper III
Helper III

RLS Implementation Issue - Need Help

Hello Champions, 

I need to implement RLS and have data in below format

Table1 is Site Master table which has all the sites Id and Site Name (only unique entries and master table which is connected to all other fact table)

RLS1.JPG

Table2 has each user name with their email ID and Site ID which they have access to

 

RLS2.JPG

 

When i create the role and write below dax, i am getting error because multiple site ids are returning which is expected =Table1'[Site Id]=LOOKUPVALUE(Table2[SiteID],Table2[UserName],USERPRINCIPALNAME())

 

As per the requirement, Single site will be mapped to multiple user and Single user is having access to multiple sites as shown in above data.

I am unable to form the data model/DAX to achieve the above scenario, ideally it has to happen in Azure Analysis Service , we are conencting Power BI to AAS using Live connection, but even if someone can help me understand in Power BI , i will try to replicate in AAS.

 

Please let me know if someone has already implemented this kind of scenario.

Really Appreciate your help and support, Thank you !!

1 ACCEPTED SOLUTION
1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.