Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Using the IF formula in Alteryx

HannahSwain
7 - Meteor

Hi all,

I am relatively new to using Alteryx and I am attempting to write a formula where if either/both column A and B contains 'Exceeds' then I require a 'Yes' otherwise I need the formula to show as 'No'.

Any assistance is greatly appreciate!

Many thanks,

Hannah

4 REPLIES 4
afv2688
16 - Nebula
16 - Nebula

Hello @HannahSwain ,

 

The formula would be like this

 

IF [A] = "Exceeds" OR [B] = "Exceeds" THEN "YES" ELSE "NO" ENDIF

 

P.d: Welcome to the community :)

 

Cheers!

Loic
Alteryx
Alteryx

Look at the attached workflow.

I created 2 formulas. One is a Boolean (True/False) the other is a string that returns Yes/No. It uses contains (vs. perfect equal sign) and it takes into account that the case could be different.

 

Match Boolean:

Contains(LowerCase([A]),"exceeds") OR Contains(LowerCase([B]),"exceeds")

 

Match Yes/No:

IF Contains(LowerCase([A]),"exceeds") OR Contains(LowerCase([B]),"exceeds") then "Yes"
ELSE "No"
ENDIF

 

data.PNG

vplante
7 - Meteor

Works fine, thanks !

nowacki0727
5 - Atom

Hello,  I'm hoping you can assist me as well.

 

I am trying to come up with a formula which basically says:

 

If Item description contains brochure and State does not equal GA then change Value to 0.00 otherwise leave it alone

 

Any assistance is appreciated 🙂

Labels