I want to create a column "Flag" the desired values are populated in the table below.
I need to exclude all those customers who only have "Pen" as a product. Any customer who has a product in combination with "Pen" I need to include that customer.
Customer Number | Product | Flag |
123 | Pen | Include |
123 | Pen | Include |
123 | Pen | Include |
123 | Pencil | Include |
678 | Pen | Exclude |
456 | Pen | Include |
456 | Pen | Include |
456 | Pencil | Include |
567 | Pen | Exclude |
567 | Pen | Exclude |
please help me create this variable.
Thanks & Regards
Shubham