ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Contains not working

doublej
Météore

I am attempting to use Contains to find text.  I have attached an example.  I would expect both records to return true.  Why would they not, isn't contains looking for an instance of the string not an exact match?

3 RÉPONSES 3
OllieClarke
16 - Nebula
16 - Nebula

You have your string and field the wrong way round. CONTAINS([Field1],'Jason') is what you're after

Thableaus
17 - Castor
17 - Castor

Hi @doublej 

 

The first thing to be evaluated is your Field. The string "target" should be "Jason".

 

The original function is Contains(String, Target)

 

Cheers,

doublej
Météore

that was it.  I was thinking that when I saw the structure as Contains(String,Target) it was the string I was looking for in the field (target).  thanks!

Étiquettes
Auteurs des meilleures solutions