SOLVED
Conditional If and String functions together
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Mancunian
8 - Asteroid
‎07-26-2018
05:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello
I have the following Module, I require the Fascia to be replaced with the "The Food Warehouse" when the fascia has the word "Warehouse" in it but has "Iceland" in the Company field.
Solved! Go to Solution.
Labels:
- Labels:
- Data Investigation
7 REPLIES 7
ACE Emeritus
‎07-26-2018
05:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
if [Company] = "Iceland" then
if contains([Fascia],"Warehouse")
then "The Food Warehouse"
else [Fascia] endif else [Fascia] endif
Should do the trick.
16 - Nebula
‎07-26-2018
05:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @Mancunian!
Try the following expression in your Formula tool:
iif([Company]='Iceland' && contains([Fascia],"Warehouse"),"The Food Warehouse",[Fascia])
Here we make use of the contains function.
Hope this helps!
20 - Arcturus
‎07-26-2018
05:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
IF [Company] = "Iceland" AND Contains([Fascia],"Warehouse") THEN Replace([Fascia],"Warehouse", 'The Food Warehouse') ELSE [Fascia] ENDIF
Based upon the text of you post, this is what I see a potential solution looking like.
Cheers,
Mark
Alteryx ACE & Top Community Contributor
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
ACE Emeritus
‎07-26-2018
05:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
HA! Three solutions in less than a minute! Hopefully one works!
jasperlch
12 - Quasar
‎07-26-2018
05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
JoeS
Alteryx Alumni (Retired)
‎07-26-2018
05:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Alteryx Community at its best!
3 answers within 5 minutes of the question being posted, all slightly different responses as well.
‎07-26-2018
05:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
And possibly solutions from all over the world!
