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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ashmitp869
Responsive Resident
Responsive Resident

Need assistance,guidance with Dynamic RLS

Hi ,

I need some guidance with Dynamic RLS.


Attaching the sample pbix file

https://github.com/suvechha/samplepbi/blob/main/sample_info%20-%20security.pbix

 


Sharing the sample data model.

 

ashmitp869_0-1740704706348.png

 

The security of this model should be.

 

Userid 9 should only view the projectid assign to the user i.e 1 and 5

 

ashmitp869_1-1740700830231.png

 

 

Userid 7 should only view the projectid assign to the user i.e 1

ashmitp869_2-1740700882005.png

 

Table                                              Column

Projects                                          Project_id

Core_UserProject                            userid,Project_id

CostItem                                         Project_id,cost_item_id   
All other tables                                cost_item_id 

 

 

ashmitp869_3-1740701015574.png

 

Thanks

 

1 ACCEPTED SOLUTION
ashmitp869
Responsive Resident
Responsive Resident
8 REPLIES 8
ashmitp869
Responsive Resident
Responsive Resident

lbendlin
Super User
Super User

Please redesign your data model first. Implement a Star schema, and place the RLS dimension table on the outskirts so it can control the fact tables in the center.

Hi @lbendlin 
Is it not the correct data modelling ?
Fact tables are :

 

   CurrentBudget
   TimePhasedBudget

   TimePhasedForecast 
   ActualCost
Dimensions :

       CostItem
       Projects

 

ashmitp869_0-1740704424998.png

Please guide.

Which table has the dynamic RLS mappings?

Projects having Project_id is linked to Core_UserProjects.

I am using Dynamic RLS in the Core_UserProjects which has got email id of user.

User = [Email] = USERPRINCIPALNAME()

 

ashmitp869_2-1740705413271.png

 

The security of this model should be.

 

Userid 9 should only view the projectid assign to the user i.e 1 and 5

 

ashmitp869_0-1740705167790.png

 

 

 

Userid 7 should only view the projectid assign to the user i.e 1

ashmitp869_1-1740705167778.png

 

 

Core_Userproject is a fact table on the receiving end of the Projects dimension table. It doesn't control anything, making your RLS ineffective.

 

Your RLS table must control the rest of the data model to be effective.

Will you please provide me any solution or guidance - on how to implement the Dynamic RLS. ?

As Core_Userproject is the table where I get the information -

Which user has which project_id access.
Thanks

Change the relationship to many-to-many and make it single direction from user to projects.

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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