Start Free Trial

Alteryx Designer Desktop Discussions

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

Contains Function Not Acting as Expected

johnnyt
6 - Meteoroid

Hi,

 

I am trying to use the "Contains" formula below with an If statement to replace strings of text containing the word "OPERATOR".

 

If Contains([speech_txt], "OPERATOR",1) then [speech_txt] = "OPERATOR" else [speech_txt] endif

 

But the text highlighted below doesn't change. Any idea whats happening?

 

johnnyt_0-1602454459475.png

 

3 REPLIES 3
TheOC
16 - Nebula
16 - Nebula

hey @johnnyt!

Its to do with your "[speech_txt] = "OPERATOR"" This wants to just be changed to "OPERATOR". I have attached a workflow showing it working:



Cheers,
TheOC
Connect with me:
LinkedIn Bulien
johnnyt
6 - Meteoroid

Thanks, I knew it was something simple!

TheOC
16 - Nebula
16 - Nebula

not a problem! Glad i could help, hope you've got a great week ahead 🙂

Cheers,
TheOC
Connect with me:
LinkedIn Bulien
Labels
Top Solution Authors