Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Conditional Insert more than one string

IvanMtz
6 - Meteoroid

Hello Alteryx Community 

 

I have a problem with conditionals I'm trying to do a formula but it doesn't do what I need it to do and I'm thinking that my syntax is wrong here it is

 

IF [Expense Type]=='Hotel' and [Expense Area Name]IN('Phoenix','Scottsdale','Monterey','Napa') and [Overage]=='Yes' THEN ([Reimbursement Amount] - 195) ELSE 0 ENDIF

 

But in the column, it doesn't do the subtraction 

 

Could you please help me and is correct to use IN to search for more than one string? 

 

Thank you for all your help

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @IvanMtz 

 

Your does look correct. Can you share some sample data so that we can take a look into it.

atcodedog05
22 - Nova
22 - Nova

Hi @IvanMtz 

 

Here is an example your formula is working. 

 

Workflow:

atcodedog05_0-1631208155884.png

Please check your incoming data make sure they are same dont have spaces.

 

Hope this helps : )

 

IvanMtz
6 - Meteoroid

Thank you so much for your help 

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @IvanMtz 

Cheers and have a nice day!

Labels