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

Chain IF

Longdaica
7 - Meteor

Hi all

 

I have  2 fields A & B. They all have values

 

So

If A > X1, then replace A with new value else do nothing 

 

If A get replaced from the original, B will get replace, else do nothing ....

 

 

Can you do that in Alteryx

1 REPLY 1
MarqueeCrew
20 - Arcturus
20 - Arcturus
Yes. Yes is always (almost) the answer.

Within one single statement the answer is not yes. Within one formula tool when helped by a select, the answer becomes YES.

Write the results of each replacement to a new variable. Then use a select to deselect the original variables with their new fields.

W-A is the new variable:

Iif(A>x1,Q,A)

Cheers,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors