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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Dan_at_TWE
Helper III
Helper III

Getting the value from one table to add to another

I have 2 tables.

 

One table has many individual transaction records each containing an employee's name and other data.   

Another table is an employee data table containing the employee's name and their initials.

 

There is a one to many relationship from the employee's name field in employee data table to the employee's name in the individual transactions records table.

 

I want to bring over the particular employee's intials from the employee data table and add their initials to their transaction records so I can use their initials on the transaction report, instead of their name.

 

ie.

1) Look at the current transaction record and find the employee's name.

2) Based on that name, find their initials in the employee info table.

3) Bring over their initials from the employee data table to the transaction record into a new column.

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Dan_at_TWE , You can create a new calculated column for this to get intials using Related function as two table have relation on the basis of employee name column

 

EmployeeInitials = RELATED('EmployeeData'[Initials])




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

3 REPLIES 3
bhanu_gautam
Super User
Super User

@Dan_at_TWE , You can create a new calculated column for this to get intials using Related function as two table have relation on the basis of employee name column

 

EmployeeInitials = RELATED('EmployeeData'[Initials])




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thanks.  The simplicity evaded me. LOL!

HotChilli
Super User
Super User

calculated column using RELATED to get the value from the dimension table?

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors