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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

concatenate values

I need to unite the values of fields of type text in two different tables, how can I do?

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

You can nested CONCATENATE() within CONCATENATE() to add concatenate more characters you need.

 

CONCATENATE(string_expression,CONCATENATE(string_expression,string_expression))

 

Regards,

View solution in original post

8 REPLIES 8
qwertzuiop
Advocate III
Advocate III

Hello there,

 

To connect my divisions, I use this. I wanted to share them with you.

Relation = [startLocation] & " ->" & [targetLocation)]
 
In addition, any string can be selected as the connection: Here ->
 
Cheers qwertzuiop
MattAllington
Community Champion
Community Champion

Well it depends. Are the tables related?  Are you writing a measure or a calc column?  Why do you want to do this - IE what are you trying to achieve and why?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

The tables are related and I'm wanting to apply to a measure

Hi vitexo87,

 

If these two tables are related, you can use LOOKUPVALUE() function to import the expected column into current table based on the related column. And concatenate it with existing column.

 

=CONCATENATE(table1[Column],

LOOKUPVALUE(table2[ExpectColumn],table2[RelatedColumn],table1[RelatedColumn])

)

 

Then involve this calculated column in your measure.

 

Reference:
LOOKUPVALUE Function (DAX)

CONCATENATE Function (DAX)

 

Regards,

 

Anonymous
Not applicable

What if I need to add a character in the middle of the information that will be formed, for example a "-"?

Hi @Anonymous,

 

You can nested CONCATENATE() within CONCATENATE() to add concatenate more characters you need.

 

CONCATENATE(string_expression,CONCATENATE(string_expression,string_expression))

 

Regards,

I would usually just do the excel way ie. =(Value1)&" - "&(Value 2), I find it quicker and easier then using a function. 

Ok, you assuming you are writing a measure over your data table, you can use the RELATED() function to do what you want. https://msdn.microsoft.com/en-us/library/ee634202.aspx

 

If you are writing a measure over a lookup table, there is a RELATEDTABLE function, but this may be an issue as it will return multiple rows of data.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.