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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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