I’m wondering if there is an easy way to clean up this data set.
I attached an excel file with the before and after modifications. It seems like it should just be a clean pivot, but some records are missing data for both the name and the car make.
Any ideas on a systemic way to transform the data? I tried to add an index, but that doesn’t help much.
When I try to pivot it give me an error “There were too many elements in the enumeration to complete the operation”.
Thank you for a solution. I had been experimenting with the group-by, but on the front end before I did any pivoting. I now understand why you need the unique index rather than a repetitive one. The fill down was another major step I was missing. Cheers!
Great – glad to hear that was helpful. FYI – keep your eye on the Enterprise DNA TV YouTube channel. I’ve got a video coming out next week dealing with GROUP BY and ALL ROWS that I think you’ll find relevant and hopefully interesting.