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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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