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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
awadh
New Member

Concatenate unique values from multiple columns

Dears, 

I have below table

CustidBuldingLand sharescash
12021
11010
21000
30000
20100
42000

 

 i need to create new column coll type where the expected result have to be.

 

CustidColltype
1Bulding, Shares, Cash
2Bulding , Land
3 
4Bulding
1 REPLY 1
AllisonKennedy
Super User
Super User

@awadh 

 

In Power Query, unpivot the data first: 

AllisonKennedy_0-1677057358038.png

 

AllisonKennedy_1-1677057391050.png

 

 

You can rename your columns here, but I'll keep as 'attribute' and 'value' to make this post more generic.

 

 

Then close and apply. Create a new MEASURE: 

 

Coll Type = CONCATENATEX(VALUES(awadh[Attribute]), awadh[Attribute], ", " )
 
Then add that to a table visual with your Custid: 
 
AllisonKennedy_2-1677057559182.png

 

 
 

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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