How to get related data in Group By

The idea would be to keep a RowID or artificial ID together with the New ID and then join back all lines that are associated with it.

We had a similar discussion involving duplicates where instead of removing them one could keep the latest one:

1 Like