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
cristianml
Post Prodigy
Post Prodigy

Summarize and Concatenate or & " - "

Hi,

 

I want to return a single column with a concatenation of two columns and " - "  between them :

First I have to summarize 5 different tables. In the screenshot below I have 2 but I have 5

cristianml_0-1660857080810.png

 

I was trying to combine summarize with concatenate or & but I couldn't .

 

EXAMPLE :

cristianml_1-1660857275492.png

 

 

Hope you can help me.

 

Thanks,

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@cristianml ,

You use Addcolumns

 

addcolumns(v2, "combine", [Master Client#] & "-" & [Client Name])

 

You can use selectcolumns to reduce the column if you want

https://docs.microsoft.com/en-us/dax/selectcolumns-function-dax

View solution in original post

2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @cristianml ,

Please select the 2 columns.

Click add column>> merge columns.

vpollymsft_0-1661237358932.png

vpollymsft_1-1661237393574.png

If I have misunderstood your meaning, please provide more details with your desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@cristianml ,

You use Addcolumns

 

addcolumns(v2, "combine", [Master Client#] & "-" & [Client Name])

 

You can use selectcolumns to reduce the column if you want

https://docs.microsoft.com/en-us/dax/selectcolumns-function-dax

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.