you can try to use Group function
= Table.Group(Source, {"Type"}, {{"ID", each Text.Combine([ID],",")}})