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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.