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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors