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

IF Function in the Formula Tool - Not pulling the correct column of data that it should be

katos
6 - Meteoroid

This is from the Select tool showing all of the data types. 

katosborn_0-1666375938291.png

This is the formula.

katosborn_1-1666375993963.png

But when I run it, it's giving me the Local amount instead of the USD amounts for account "2822"

katosborn_2-1666376093507.png

 

Any ideas on what's happening or how to fix this issue?

10 REPLIES 10
acarter881
12 - Quasar

Hey @katos. That formula should work. Are there extra characters in the "Company" field? For example, have you trimmed leading and trailing whitespace from the "Company" field? If so, I would expect your formula to work as intended. If not, it will return the "ELSE" value.

MilindG
12 - Quasar

MilindG_0-1666377518400.png

Weird, Its working for me right. 

katos
6 - Meteoroid

I just used a data cleansing tool and replaced all whitespace (I don't think there was any but worth a try) and now some of them are pulling correctly but some are now showing as null. Any thoughts on that?

katosborn_0-1666378035506.png

 

katos
6 - Meteoroid

That's so strange. I cannot figure out what's happening.

acarter881
12 - Quasar

I can resolve it with a sample of the data, if you'd like.

MilindG
12 - Quasar

@katos  Its prob showing null because your feild type. Perhaps change it to Int32

katos
6 - Meteoroid

Okay that worked for just account "2822". When I added in 2 other account numbers (I tried making them their own formulas and by using OR and now it's doing the same thing for the other 2. Am I writing this formula wrong? 

katosborn_0-1666378889000.png

katosborn_1-1666378938712.png

 

MilindG
12 - Quasar

MilindG_0-1666379367491.png@katos  try this

 

katos
6 - Meteoroid

That worked! Thank you so much!

Labels
Top Solution Authors