In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Check if text field contains list of codes, and update appropriate column

Jath
5 - Atom

I've got a large dataset of text fields (~450k). I've also got a list of ~700 codes. I want to check if these 700 codes are contained in each of the text fields. If so, I want to create a column for that code which will have a '1' value against every entry that contains that code.

 

Is this realistically doable in alteryx? I'm thinking in python I would have to do some for-if-loop.

 

Currently thinking along the lines of using a multi field formula somehow, but not quite sure  how.

2 REPLIES 2
binu_acs
21 - Polaris

@Jath Find and Replace tool would be an option for your usecase

binuacs_0-1684958264911.png

 

Yoshiro_Fujimori
15 - Aurora
15 - Aurora

Hi @Jath ,

 

It sounds that Batch Macro would help you.

You feed each one of the code to the macro,

append the code to each row of the text field with Append Field,

check if the text field contains the code with Formula tool.

 

For details of Batch Macro, you may want to check the Interactive Lesson for Batch Macro.

Good luck.

Labels
Top Solution Authors