I hope some trick is out there somewhere to handle this puzzle.
I have a column that shows which possible groups a product may belong to. The product MAY NOT belong to any group at all - but if it does; groups start after '/' and can range from A-Z.
Current format of the values is:
| ProductGroup |
| A49-8547/A/B/C/... |
| X59-4857 |
What I need is to split this column into multiple rows so that the product code is repeated with the value of the group concatenated at the end. Note that NOT all products belong to all groups.
| ProductGroup |
| A49-8547A |
| A49-8547B |
| A49-8547C |
| .... |
| A49-8547Z |
My current (very poor) approaches:
- split the column on multiple rows using / as a delimiter, but cant figure out how to concatenate the group values with related product rows.
- add "endswith()" filters in chronological order for testing each group (26 cascading layers). Then replacing() the remaining group names.
any help is appreciated