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
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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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