Hello,
I have a large data set that contains duplicate records but have unique sub reasons with the duplicate record like below:
| Record | Service Date-Time | Customer | Customer Type | Primary Reason | Sub Reason |
| 1 | Apr 4 1:55pm | David P | Home Owner | Purchase | Shed |
| 2 | Apr 4 2:00pm | John S | Home Owner | General Info | Shed Catalog |
| 3 | Apr 4 2:00pm | John S | Home Owner | General Info | Garage Catalog |
| 4 | Apr 4 2:05pm | Mike R | Contractor | General Info | Power Tools Catalog |
| 5 | Apr 4 2:15pm | Sarah C | Home Owner | Purchase | Drill |
| 6 | Apr 4 2:20pm | Brian D | Home Owner | Purchase | shed |
| 7 | Apr 4 2:20pm | Brian D | Home Owner | Purchase | Drill |
| 8 | Apr 4 2:25pm | Peter A | Contractor | Purchase | Garage |
I am looking for a way to automate merging/collapsing duplicate records while preserving the unique sub reason(s) in the process.
Ideal outcome-
| Record | Service Date-Time | Customer | Customer Type | Primary Reason | Sub Reason | Sub Reason (2) |
| 1 | Apr 4 1:55pm | David P | Home Owner | Purchase | Shed | |
| 2 | Apr 4 2:00pm | John S | Home Owner | General Info | Shed Catalog | Garage Catalog |
| 4 | Apr 4 2:05pm | Mike R | Contractor | General Info | Power Tools Catalog | |
| 5 | Apr 4 2:15pm | Sarah C | Home Owner | Purchase | Drill | |
| 6 | Apr 4 2:20pm | Brian D | Home Owner | Purchase | shed | Drill |
| 8 | Apr 4 2:25pm | Peter A | Contractor | Purchase | Garage | |