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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
ptmuldoon
Resolver I
Resolver I

Dyanamic RLS with Groups

I am trying to learn and set up user permissions using dynamic RLS, yet can't seem to to get it working correctly.  I've treid following the various samples (and videos) from google searches, but still stuck.

 

 I'm currently working with 5 tables.

 

1.  UsersTable, this contains a the email (UPN) and a 'SiteGroup'.

2. A "SiteGroups" Table.  This is just a list of all the groups available.

3. A  "SiteLists" Table.  This lists all of the SiteTags associated with each group.

4. A "Dim Sites" Table that is a list of all SiteTags available.

5. A data table

 

Below is the general model showing the relationships.  

ptmuldoon_0-1706792639821.png

 

I have setup a role called Permissions with the DAX of [email] = USERPRINCIPALNAME()

 

I can create a card and see the correct UPN of myself, and have changed the 'ViewAs" to another email address and see that card change as well.

 

But the data never filters down to only what the user should be able to see for their "SiteGroup"

 

I thinking/guessing this has maybe something to do with the data model and relationships?

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

In a default join (1:*) the filter only flows from the 1 to the many.  You would have to make these two relationships bi-directional in order for your user table to filter the data table.

jdbuchanan71_0-1706793749797.png

 

View solution in original post

2 REPLIES 2
ptmuldoon
Resolver I
Resolver I

Sweet!!.   That did the trick!!

jdbuchanan71
Super User
Super User

In a default join (1:*) the filter only flows from the 1 to the many.  You would have to make these two relationships bi-directional in order for your user table to filter the data table.

jdbuchanan71_0-1706793749797.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors