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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
lewisc2000
New Member

Pull column to another table based on a relationship

Hi 

 

Looking for some help on the below.

 

I am trying to map department to email in the user table to then map the email across both tabes and pull the department to the training table. Is this possible to have a relationship between the two tables to pull this data across and have it matching?

 

lewisc2000_0-1744975453025.png

 

1 ACCEPTED SOLUTION
rosha_rosha
Resolver II
Resolver II

Hi lewisc2000,

 

To map department from users to Training using email in Power BI:

  1. In Model view, create a one-to-many relationship from users[email] (unique) to Training[email].
  2. In the Training table, add a calculated column:

Department = RELATED(users[department])

This pulls department into Training for each matching email. If emails are missing, use:

Department = IF(ISBLANK(RELATED(users[department])), "Unknown", RELATED(users[department]))

View solution in original post

4 REPLIES 4
v-saisrao-msft
Community Support
Community Support

Hi @lewisc2000,

 

We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

Hi @lewisc2000,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

v-saisrao-msft
Community Support
Community Support

Hi @lewisc2000 ,
I wanted to check if you had the opportunity to review the information provided by @rosha_rosha. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

rosha_rosha
Resolver II
Resolver II

Hi lewisc2000,

 

To map department from users to Training using email in Power BI:

  1. In Model view, create a one-to-many relationship from users[email] (unique) to Training[email].
  2. In the Training table, add a calculated column:

Department = RELATED(users[department])

This pulls department into Training for each matching email. If emails are missing, use:

Department = IF(ISBLANK(RELATED(users[department])), "Unknown", RELATED(users[department]))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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