Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

IF Conditional Formatting

magsbiel
7 - Meteor

Hi,

 

I have two columns in my data:

 

Item   Category

A        Apple

B        Apple

C        Lemon

D        Orange

E        Apple

 

I am trying to replace "Apple" for "B" with "Banana" and "Apple" for "E" with "Banana" as well. I tried IF statements, switch, nothing works. Any idea how to do it?

2 REPLIES 2
afv2688
16 - Nebula
16 - Nebula

Hello @magsbiel ,

 

Does this work for you?

 

IIF([2] = 'Apple' AND [1] IN ('B','E'), 'Banana', [2])

 

Untitled.png

 

Regards

magsbiel
7 - Meteor

It worked. Thank you so much!

Labels
Top Solution Authors