Forum Discussion

gio1082's avatar
gio1082
Helper I
3 years ago
Solved

Combine row into a row

Hi, 
I have a similar table as the table below where I have an id column and a Task column. Each ID can have multiple pending tasks.

ID Task

1  Copy

1  Paste

2  Copy

3  Erase

1 Erase

 

I want to combine the task in one column in power query. Like the table below. How can I do this 

ID Task

1  Copy, Paste, Erase

2  Copy

3  Erase

Thank you in advance!

  • group by ID, and concatenate the task value

    =Table.Group(PreviousStepName,"ID",{"Task",each Text.Combine([Task],",")})

1 Reply

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    group by ID, and concatenate the task value

    =Table.Group(PreviousStepName,"ID",{"Task",each Text.Combine([Task],",")})