We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
fireworks
SOLVED

Regex Parse on multiple columns

archanacg1
7 - Meteor

In the attached i would like to parse/search for the strings 'APPLE|DELL|HP' on multiple columns like Summary, Description, technical summary and final attribute Computer should be populated with the values.

 

Currently i can only parse only on one column.

 

archanacg1_0-1678302804435.png

 

6 REPLIES 6
ChrisTX
16 - Nebula
16 - Nebula

Use the Transpose tool to convert the column values to Name and Value  (convert from columns to rows)

Then a Filter tool to select only the records you want

Then a Crosstab tool to convert from rows back into columns

 

Chris

archanacg1
7 - Meteor

ANy sample job please

Robin_McIntosh
11 - Bolide

Here's an example.  This is using REGEX_Match within a formula.  I added some non-match examples to the input so you can see it only results in those that match HP, DELL, or Apple.

 

Robin_McIntosh_0-1678306946016.png

 

archanacg1
7 - Meteor

Thank you. I dont want to filter the records. I just want to extract the keywords and populate in a new column like this.

 

archanacg1_0-1678309327774.png

 

Robin_McIntosh
11 - Bolide

Updated.

 

Robin_McIntosh_0-1678310357239.png

 

flying008
15 - Aurora

Hi, @archanacg1 

 

Maybe you like this way: (If you only need parse 3 columns, you can use formula to manual CONCATENATE string then parse it.)

 

1- Manual method:

录制_2023_03_09_08_53_03_368.gif

 

2- Dynamic method:

 

录制_2023_03_09_08_41_58_699.gif

Labels
Top Solution Authors