Alteryx Designer Desktop Discussions

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

Flag a word only if within x words of another word?

BigDataGeek
8 - Asteroid

Hey All,

 

I have a workflow that is doing as needed, but we need a new functionality I'm not sure the best way to approach. 

  • Right now, this workflow finds words in a list that match the input and then adds some HTML around the word(s) identified which we use to publish. 
  • Next addition, I need to find words when they are near another word.  
    • I've updated the list to add two columns [near] and [distance], where [near] is the word it would look for around the keyword and [distance] is the number of words to look for before or after the keyword.
    • What it should do is find the word as normal, but if there is information in columns 'distance' and 'near', only flag if it meets the criteria.
    • If 'near' and 'distance' are blank, it would return the results as normal.

Snag_1765383.pngSnag_176f428.png

 

1 REPLY 1
Yoshiro_Fujimori
15 - Aurora

Hi @BigDataGeek ,

 

I focused on the word distance logic. I hope this helps.

 

Workflow

WordDistance_1.png

Output

WordDistance_2.png

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels