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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
InterSimi
Helper II
Helper II

Create a Calculated Column from Different Tables

Hi,

 

I am guessing that this is a simple request, but I can't figure this out, as I always seem to struggle when my query crosses multiple tables.

 

I have multiple tables with relationships, however from 2 of these tables I need to convert the 'surname' into the a 'forename surname' format, so I can get relationships working.

 

[Employees]

Last Name

First Name

First and Last Name

 

[Learning Hours]

Last Name

Hours

Course

Date

 

I need to get the sum of the hours added as a calculated column into the [Employees] table

1 ACCEPTED SOLUTION
InterSimi
Helper II
Helper II

I have resolved my own issue....

 

Basically, I could not create a relationship, as the last names were not all unique.

 

I used Concatenate to join the first name and last name and then created a relationship between the two tables

 

Summary metrics Name = CONCATENATE(CONCATENATE('Learning Hours'[First Name], " "), 'Learning Hours'[Last Name])

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @InterSimi

Thanks for your sharing!

 

Best Regards

Maggie

InterSimi
Helper II
Helper II

I have resolved my own issue....

 

Basically, I could not create a relationship, as the last names were not all unique.

 

I used Concatenate to join the first name and last name and then created a relationship between the two tables

 

Summary metrics Name = CONCATENATE(CONCATENATE('Learning Hours'[First Name], " "), 'Learning Hours'[Last Name])

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.