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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
im_newbie_123
Frequent Visitor

How to use related DAX function with concatenate

I have two tables (A and B).

 

Table A has 4 columns.

User ID                    First Name        Last Name      Preferred Name  

 

Table B has 1 column named User ID

 

I want to create a new column named Person Name in Table B based on User ID where I concatenate first name, last name and preferred name.

 

Example:

Table A 

User ID        First Name        Last Name      Preferred Name  

123                Sam                    John                  NULL

4351               Samuel              Hans                  Samu

 

Table B

User ID         Person Name

123                John, Sam

4351              Hans, Samuel (Samu)

 

Power BI creats a relationship between the Table A and Table B based on User ID

 

I understand I need to use related DAX function and concatenate the columns. 

can i get the correct syntax.

 

1 REPLY 1
Anonymous
Not applicable

@im_newbie_123 im_n

Column = CONCATENATE(CONCATENATE(RELATED(TableA[Last]),","),RELATED(TableA[First]))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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