Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Formula troubleshooting

gabrielmier222
7 - Meteor

Hi y'all,

 

using the Muti-Field Formula tool, I am trying to populate the first cell in my Description column, by using the following IF statement:

if [LINE_NO]==1 then "Data Conversion 12/31" else "" ENDif

 

My output is still returning with a blank description column. any thoughts?

 

Thanks in advance

-Gabriel

7 REPLIES 7
binuacs
21 - Polaris

@gabrielmier222 Why don't you use the formula tool instead of the multi-formula tool?

binuacs_0-1683564709672.png

 

binuacs
21 - Polaris

@gabrielmier222 Multi-Formula version

binuacs_1-1683564792604.png

 

gabrielmier222
7 - Meteor

Thanks for replying so quickly!

 

I tried the formula tool, but Alteryx doesnt like something about it that seemed to be resolved by using the Multi-formula

gabrielmier222_0-1683565284917.png

This is my error for the multi tool

gabrielmier222_1-1683565603243.png

 

apathetichell
19 - Altair

First off - for multi-field formula - you must check at least ONE field in the top part of the config. Second - this is toggled to numeric. You need to select at least one string field here if you are supplying a string in the return - like you are here.

 

Third... why are you using a multi-field versus a standard formula here?

 

gabrielmier222
7 - Meteor

Using multi-field because standard formula tool gives me this error 

 

gabrielmier222_0-1683567900497.png

 

binuacs
21 - Polaris

@gabrielmier222 Make sure the Line_No field data type is numeric if it is string type then update your formula like below 

IF [LINE_NO] = '1' then "Data Conversion 12/31" else "" ENDif

 

gabrielmier222
7 - Meteor

Thanks, you're brilliant!

Labels
Top Solution Authors