We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

String 1 = 'X' And String 2 = 'Y' Then String 3 = 'A' Else String 3

tcwildhart
6 - Meteoroid

This should be so straight forward, but not sure why my formula doesn't work. 

 

Table:

Type RegionMGRASST MGR
StoreILTomBill
StoreGAJaneJane
ShopILTimSue
StoreGAJaneJane
ShopILTimSue
Store GAJaneJane
ShopGAJenSam

 

OutPut Column [MGR]

 

Formula:

IF [Type]="Store"
AND [Region]="GA"
THEN "Mary"
Else [MGR]
ENDIF

 

Desired Result: 

Type RegionMGRASST MGR
StoreILTomBill
StoreGAMaryJane
ShopILTimSue
StoreGAMaryJane
ShopILTimSue
Store GAMaryJane
ShopGAJenSam
3 REPLIES 3
fmvizcaino
17 - Castor
17 - Castor

Hi @tcwildhart ,

 

Attached is a solution. I only copy pasted your formula into my workflow.

Maybe you have some additional spaces in your texts you need to remove in order to work.

 

Best,

Fernando V.

danilang
19 - Altair
19 - Altair

Hi @tcwildhart 

 

I'm just going off the table that you posted, but it has these issues

 

1. The [Type] column has a trailing space in the column name

2. One of the "Store" values has a trailing space as well.

 

The first one will cause an error in your formula.  The second will not match since "Store " != "Store"

 

Dan 

tcwildhart
6 - Meteoroid

Thanks to both of you... The good news is that I had it all right, the bad (and good) news is that I need to scrub my input before using it to calculate. Thanks!

Labels
Top Solution Authors