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
16 - Nebula

pfa

Raj_0-1679460286238.png

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels