Forum Discussion

theapengelly's avatar
theapengelly
Frequent Visitor
2 years ago
Solved

Concatenate one column and group by multiple

Hey, 

 

I am trying to reduce the number of rows in my table, by concatenating distinct values in a particular column, but I want to leave all other columns the same.

 

How would I go from this

ItemClientLabel
2442431A
2442431B
2442432A
2442432B
2442433A
2442433B
2442434A
2442434B
1762225B
1762226B

 

To this:

ItemClientLabel
2442431A,B
2442432A,B
2442433A,B
2442434A,B
1762225B
1762226B

 

So I just want to concatenate the unique values in the Label column, and group by Item and Client?

 

Thanks so much!

  • theapengelly ,

     

    try this:

     

    Table.Group(Source, {"Item", "Client"}, {{"concat", each Text.Combine([Label], ", "), type text}})

3 Replies