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 condition

tmahmo15
7 - Meteor

How can I make this statement work:

 

tmahmo15_0-1604669048612.png

 

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @tmahmo15 your contains in the formula should be this Contains([OS Name], "Windows") you need to specify the string field and the target to search for. The Syntax should be this

 

If [OS Family]= " " and Contains([OS Name], "Windows") then "Windows" 
Else [OS Family]
Endif

  an Improvement on the IF might be as the IsEmpty functuion searches for nulls and empty in a field

 

If Isempty([OS Family]) and Contains([OS Name], "Windows") then "Windows" 
Else [OS Family]
Endif

 

atcodedog05
22 - Nova
22 - Nova

Hi @tmahmo15 

 

Change the formula to below

 

 

IF [OS Family]=" " and Contains([OS Name], "WINDOWS") 
THEN "WINDOWS" 
ELSE [OS Family] ENDIF

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

 

tmahmo15
7 - Meteor

Thanks a lot!

Labels