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.
SOLVED

If [variable] contains (string)

all-tricks-rick
6 - Meteoroid

Is there a function that exists that does the following: If a variable contains a certain string of characters, then it is to be included in the IF function and will produce the positive of my conditional statement.

 

For example, my formula is as follows:

 

IIF([Financial Type]="Swap" and [Instrument Desc] IN("Baseload") and [Underlying Instrument Desc] = "French","Power Swap - French Baseload","No")

 

I am currently using an "IN" function but that only returns exactly "Baseload". I want it to include all phrases that include the word "Baseload". Any help on this?

 

Thanks!

3 REPLIES 3
BenMoss
ACE Emeritus
ACE Emeritus
Contains([field],'string')

This sounds what you are looking for.

Ben
all-tricks-rick
6 - Meteoroid

Thanks! Is there a reverse of this function? i.e. not contains ? or something like that

drsgriderax
8 - Asteroid

Put a ! in front of the Contains     !Contains for indicating does not contain

Labels
Top Solution Authors