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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
johnelliott
Frequent Visitor

Unable to create the relationship I need. Looking for alternative

Greetings experts.

 

I have a table that contains, among other things, the following.

 

Employee name| Employee Email| Employee ID| Manager name|Manager id

 

I am unable to get the manager email from the data source.

The manager is also included in the list of employees

 

I am trying to create a visual table that includes the employee name/email AND the Manager Name/Email

My thought is to relate Manager Name to the the same name in Employee Name and return the associate email.

For example:

 

Table data:

John Doe | john.doe@mail.com | 01314 | Sue Jones | 12457

Sue Jones | sue.jones@mail.com |12457 | Bob Adams | 42121

 

Visual

John Done john.doe@mail.com  Sue Jones  sue.jones@mail.com 

 

Thoughts on a way to create this table relationship to itself?

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @johnelliott ,

I don't understand what do you mean by "Thoughts on a way to create this table relationship to itself" ?
In Power BI, if you only have one table, you can't create a relationship anyway. But I can find a workaround for you.
Use this DAX to create a new column in your table:

Manager Email = 
LOOKUPVALUE(
    'Table'[Employee Email],
    'Table'[Employee name],
    'Table'[Manager name]
)

The final output is below:

vjunyantmsft_0-1704779864384.png


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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @johnelliott ,

I don't understand what do you mean by "Thoughts on a way to create this table relationship to itself" ?
In Power BI, if you only have one table, you can't create a relationship anyway. But I can find a workaround for you.
Use this DAX to create a new column in your table:

Manager Email = 
LOOKUPVALUE(
    'Table'[Employee Email],
    'Table'[Employee name],
    'Table'[Manager name]
)

The final output is below:

vjunyantmsft_0-1704779864384.png


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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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