Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Setting a certain letter as a word

Sjkitts
7 - Meteor

In a certain column in my output I want this column to say employee if the input file read F so I put in this code but it is just shows as "E"

 

anything that I'm doing wrong? See screenshots for more information 

 

IF [EMPTYPE]= "f" THEN "Employee" ELSE 'False' ENDIF

9 REPLIES 9
binuacs
20 - Arcturus

@Sjkitts can you check the  field size  in your desired output column? If it is 1 then it will only show one character 

IraWatt
17 - Castor
17 - Castor

Hey @Sjkitts,

Your column has a size of 1 use a select tool before the formula tool to increase the size of the EMPTYPE column to 200.

Any questions or issues please ask :)
HTH!
Ira

Sjkitts
7 - Meteor

It was at 1 before and I just set it as 200 but I'm still seeing 'e'

IraWatt
17 - Castor
17 - Castor

Hey @Sjkitts,

That is after the formula tool, you'll need to update it before the formula tool

Sjkitts
7 - Meteor

Hell Yes! Thank you so much!

IraWatt
17 - Castor
17 - Castor

No worries @Sjkitts 😄 has happened to me a few times before

Sjkitts
7 - Meteor

wait one last question.......now I need to set a different letter to another word but I'm getting an error.

 

 

IF [EMPTYPE]= "f" THEN "Employee" ELSE 'False' and
IF [EMPTYPE]= "A" THEN "Supplier/Contractor" ELSE 'False' ENDIF

IraWatt
17 - Castor
17 - Castor

@Sjkitts Try:

 

IF [EMPTYPE]= "f" THEN "Employee" ELSEIF

[EMPTYPE]= "A" THEN "Supplier/Contractor" ELSE 'False' ENDIF

 

It should be ELSEIF in your second ELSE, not sure what the "'False' and" is supposed to check?

Sjkitts
7 - Meteor

Awesome, thanks that makes sense!

Labels