Forum Discussion

awadh's avatar
awadh
New Member
3 years ago

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

  • AllisonKennedy's avatar
    AllisonKennedy
    Icon for Community Champion rankCommunity Champion

    awadh 

     

    In Power Query, unpivot the data first: 

     

     

     

    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: