How to find unique values in a column with the adjoining row values as comma separated values in each cell


I have an issue I am getting the unique mail ids using remove duplicates activity from a column named “Customer email” what I am unable to do is get the corresponding invoice numbers as comma-separated values into the same row of the mail id. Like I have and I want all invoices for the corresponding mail id as 123,345,567 and so on in the same row.