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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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