Reputation: 11
Background: Our sales order dataset contains a column for "Delivery Number" which typically contains 1 number if the order has been processed and is null if the order is still open. We now have a situation where some orders are coming in with multiple delivery numbers all combined in a text string separated by ";". Some of the delivery numbers are unique and some are duplicates (highlighted below):
My end goal: is to use "delivery number" as a key to join another data table that will provide more detail for each unique delivery. This is the current way I'm thinking of approaching the problem:
Questions:
Upvotes: 0
Views: 174
Reputation: 12146
Instead of 1, 2, 3 and 4 - you can split directly into rows, then remove duplicates.
Split columns by delimiter into rows
Upvotes: 1