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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kevinEGE
Regular Visitor

RLS with levels

Hello,

 

I got a dashboard with 4 tables;

 -The first one have 3 columns: Leader, department and Leader Email.

 -2nd have 3 columns: employee, department and employee Email.

 -3rd are some project details, wich includes employee, department and project ID.

 -The last one are the projects simplified, with ID.

 

The relationship between the tables are:

 -1st and 2nd related department;

 -2nd and 3rd related by employee;

 -3rd and 4th related by ID;

 

like this:

kevinEGE_0-1663274272516.png

 

So im trying to do a RLS, in the way the employees just see the projects in wich they are working and the leader need to see ALL of their department.

 

I could manage to do the first step with USERPRINCIPALNAME(), without issues, but i cant manage to make the leaders see everything of they department.

 

Any solution?

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@kevinEGE https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Hierarchical-Row-Level-Security/m-p/...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@kevinEGE https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Hierarchical-Row-Level-Security/m-p/...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

It worked fine! thank you so much!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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