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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.