Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Keyword search in multiple fields

Meena
8 - Asteroid

Hi

 

I have a requirement to search a keyword (from a lookup file with many records) in multiple fields (Input file) and append the keyword to the input file if keyword is found in any of the fields.

 

For interim I have concatenated the fields in input file to 1 string (Birth City + Current City) and use File-Replace on the concatenated string.

 

Please help me if there are any other options available.

 

Example :

 

Input File

Birth CityCurrent City
VirginiaNewYork
DenverSeattle
Ohio

Ohio

NewYork

Toronto

 

Lookup File

Keyword
New York
Ohio

 

Output after search should append Keyword to Input File as below,

Input File

Birth CityCurrent CityKeyword
VirginiaNewYorkNewYork
DenverSeattle 
Ohio

Ohio

Ohio

NewYork

Toronto

NewYork

2 REPLIES 2
Gaurav_dup_112
7 - Meteor

Hi @Meena,

I am attaching the solved workflow. I hopeScreenshot (128).png it helps. Revert for any queries

danrh
13 - Pulsar

Here's another option.  A few more tools, but it can handle any number of fields in the input and allows for multiple keywords to be identified in different fields for a single record.

image.png

 

Hope it helps!

Labels