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

Alteryx Designer Desktop Discussions

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

How to rename an attribute ?

meziane36u
7 - Meteor

hello ! 

 

I want to rename an attribute, for example I have, 1 and 2 for ( sex ) I want to replace the character 1 by Female and the character 2 by male.

3 REPLIES 3
jrgo
14 - Magnetar

Hi @meziane36u 

 

One option would be to use a Select tool to change the field type of [sex] to one of the string field types (assuming it's coming in as one of the numeric types). Then use a Formula tool to update that field

IF [sex] = '1'
THEN 'FEMALE'
ELSE 'MALE'
ENDIF

Hi @meziane36u 

 

Please check the below. Hope it helps. Cheers!

 

christine_assaad_0-1608158106988.png

 

meziane36u
7 - Meteor

Thanks !!

Labels