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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
vpawan
Regular Visitor

Row level security Help

Hi,

 

Can any one please help me to apply row level security on country and also need to filter departments related to country.

I have the data model like below. Between Department and country i have inactive relationship. please help me how to achive RLS on country with relavent Departments filter.

 

User emails are coming from User table which is also have realtionship with fact table

 

 

Thanks in advance

 

 

1 ACCEPTED SOLUTION
RossEdwards
Solution Sage
Solution Sage

The first consideration is going to be your model.  Right now you are filtering Invoice based on Country and Department separately.  This being that your invoice record must have some ID that links to Country and another ID that links to Department.

 

When you turn on the inactive relationship, Power BI will ignore the direct link of Country & Invoice and apply all country filtering via Department.

 

From a row level security perspective, which direction do you want Row Level security to filter via?  Do you want Country to filter invoice directly, or department?  I cannot be both.

 

Once you have made that choice, modify your relationships to match your choice above, then row level security should work.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @vpawan ,

 

Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!

 

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

RossEdwards
Solution Sage
Solution Sage

The first consideration is going to be your model.  Right now you are filtering Invoice based on Country and Department separately.  This being that your invoice record must have some ID that links to Country and another ID that links to Department.

 

When you turn on the inactive relationship, Power BI will ignore the direct link of Country & Invoice and apply all country filtering via Department.

 

From a row level security perspective, which direction do you want Row Level security to filter via?  Do you want Country to filter invoice directly, or department?  I cannot be both.

 

Once you have made that choice, modify your relationships to match your choice above, then row level security should work.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 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.