Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

How to substitute data when the original data meets both conditions?

phoebe_90
8 - Asteroid
Accounttext
69011530taxi
66020000meeting
69015000hotel
69031000train
69015000hotel
69031000taxi
69031000meeting

If Account=69031000 and text=train, transfer the account=69031000 into account=69011510 

If Account=69031000 and text=taxi, transfer the account=69031000 into account=69011530

 

2 REPLIES 2
ShankerV
17 - Castor

Hi @phoebe_90

 

Please use the below formula in Formula tool.

 

IF [Account] = 69031000 and [text] = "train" 

THEN 69011510 

ELSEIF [Account] = 69031000 and [text] = "taxi"

THEN 69011530

ELSE [Account]

ENDIF

 

I have considered the column Account as numeric datatype and doesn't used "" in the formula.

If its string datatype in your workflow please add "" for account similar to text i have used.

 

Many thanks 

Shanker V

Raj
15 - Aurora

pfa

Raj_0-1679460286238.png

 

Labels