Hello,
I have a question regarding Alteryx. I have the following data set below. For some vendors I would like to keep the hyphen in the invoice number (eg. Apple as listed below). However, for vendor ABC I would like to only pull the first 6 characters, and for Amazon I would only like to remove the hyphen in the invoice number.
How would I go about doing this? Would a separate formula be needed for each vendor to produce the desired output?
Appreciate the help!
Vendor | Invoice Number | Desired Output |
ABC | 123567-2022 | 123567 |
ABC | 564868-2022 | 564868 |
Apple | 565484-April2022 | 565484-April2022 |
Amazon | 648654684-678910 | 648654684678910 |