Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Conditional Formula on Boolean Resulting in "-1"

kaianderson
8 - Asteroid

I have a workflow where I'm using Regex Match to create two Boolean fields. I then changed the field type of the match fields to "String" so that I have "T" and "F" values in my data. I then want to use a formula to create a 3rd field that is "T" when either Company_Identifier or Field_1_Matched values equal "T" and "F" when neither of the 2 fields are true.

 

kaianderson_0-1584988829278.png

kaianderson_2-1584989063032.png

 

 

When I use the below formula on the data in the screenshot above, I get either "F" or "-1" values, and I cannot figure out why.

 

kaianderson_1-1584988992401.png

 

Anyone have any ideas?

2 REPLIES 2
AbhilashR
15 - Aurora
15 - Aurora

@kaianderson - modify your then statement THEN = 'T' and not THEN [Company_Identifier]='F'

 

Attached is a sample for your reference

kaianderson
8 - Asteroid

Thanks a bunch, @AbhilashR!

Labels
Top Solution Authors