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
prabhupan
Helper I
Helper I

Indirect relationship between table

 

Hello, 

 

I have 3 tables as given below.  Table 3 is the user info table. 

 

I now need to get the Manager name based on the Manager Id in table2. However, i cannot create a relationship between table2 & table3 due to the existence of the relationship between table1 & table3. 

 

I cannot use the RELATED command in table2 since it returns the requestor name due to the existence of indirect relatioship. 

 

 

Tabel1.png

Any thought on how to solve this issue? Smiley Happy 

 

 

@ PK
7 REPLIES 7
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @prabhupan

 

Have you looked into the LOOKUPVALUE function?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

hello @Phil_Seamark,

 

i tried LOOKUPVALUE as follows:

 

  • LOOKUPVALUE(TABLE3[Name],TABLE3[Id],TABLE2[ManagerId]). But it retruns blank mostly. Smiley Sad
@ PK

Is that because there is no match?

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

hello @Phil_Seamark,

 

Doesnt seems so. Please see the image below... in some cases you get the name (first column) & for some its blank. (the manager id is in second column)

 

 

LM.png

 

 

 

 

@ PK

Hi ,

Try this, 

Manager Name = if( COUNTROWS(Assigment)=1, LOOKUPVALUE(User[Name],User[ID],VALUES(Assigment[Managere ID])))

 

Thanks 

Sankar P

 

Hello @sankarvinop,

 

It doesnt work since table2 has more that 1 rows, so :

 

COUNTROWS(Assigment)=1 is always false 

 

@ PK

Hi,

Can you share some sample data?

Helpful resources

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

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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