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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Dan_at_TWE
Helper I
Helper I

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!

Proud to be a Super User!





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!

Proud to be a Super User!





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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.