Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

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

bslipetz3
7 - Meteor

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

Labels