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
huguo_90
Regular Visitor

PRLS with lookupvalue on 2 tables different

I have a table A I have a dimension table A containing the names and emails of managers and teams, I have a table made B with all the appropriate calculations. The problem is that when I implement the RLS, it finds all the team data, not the manager's data, but now I can't add the manager to the final data. Here is the code I used but it's not good.

IF (

    ISFILTERED ( 'A'[NAMES_TEAM] ),

    'A'[NAMES_TEAM] = USERNAME() || 'A'[MAIL] = USERPRINCIPALNAME(),

    'A'[MAIL] = USERPRINCIPALNAME() && 'B'[TEAM] = LOOKUPVALUE('A'[TEAM],'B'[MAIL],USERPRINCIPALNAME())

)

2 REPLIES 2
huguo_90
Regular Visitor

Hello @Mahesh0016 , Thanks to answer me, When I make a filter on the size table I only see the people of the Pierre team but I do not see see Pierre so in the dashbord I do not see his income, I would like to see the revenues of Pierre and his are teams, I try by putting a double relationship on it but it does not work. Hope you manage to understand my drawing.

 

huguo_90_1-1683739092384.png

 

Mahesh0016
Super User
Super User

@huguo_90 Please Share your Expected Output in Table.
THANK YOU!!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors