Conditional Statement with "Contains" or Starts With Instead of "="
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi there all,
Is it possible to write a conditional statement within the same column that uses a "Contains", "Starts with", "Does not Include" instead of just equals or does not equal?
here is what i would like to happen
IF [Queue Name] Contains (or starts with) "+1" THEN "External Call"
ELSEIF [Queue Name] Is NULL THEN "Undetermined Call"
ELSE "Internal Call"
ENDIF
If not possible, i know that i can try to use a filter tool to separate them out to additional columns, but i am trying to avoid that
Thanks so much
Solved! Go to Solution.
- Labels:
- Preparation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Absolutely!
IF Contains([Queue Name], "+1") THEN "External Call" ELSEIF IsNull([Queue Name]) THEN "Undetermined Call" Else "Internal Call" Endif
Cheers,
Mark
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I appreciate the quick response, however, all the results display "Internal Call" regardless of the type.
FYI - currently the data type selection is V_String, which i changed at the beginning of the workflow from "Double" (the field contains names or phone numbers). maybe that plays a part in why its not running as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
please show a screen print of you formula configuration.
OUTPUT COLUMN = ?
Data Type = ?
I tried this and got good results.
Cheers,
Mark
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
it worked. I had to arrange the tool so it came before another formula tool. I think the data types got jumbled along the way. Thank you so much. Still learning IF statements in Alteryx, they can be tricky.
