Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

find and replace another values in another column

BJSOON
8 - Asteroid

Hi I would like to find out a way to replace certain values in the second column. 

My criteria: If customer = Sally, I want to blank out the items purchased in the existing column. Thank you in advance!   

 

Customer NameItems purchased
RichardHat
SallyCoat
MaryGloves
JonathanSocks
Sally

Socks

3 REPLIES 3
JoshuaGostick
11 - Bolide

Hi @BJSOON,

 

To do this, connect a Formula tool to your workflow. Then, where it says Select Column, select the Items purchased field. In the expression editor, enter the following expression:

 

IF [Customer Name] = "Sally"

THEN Null()

ELSE [Items purchased]

ENDIF

 

This will convert all records where Customer Name is Sally to a null value.

 

Alternatively, if you want a blank value instead of null, replace Null() with "".

 

Let me know if you have any questions.

 

Thanks,

Josh

echuong1
Alteryx Alumni (Retired)

To make it more dynamic, I'd suggest creating a separate table with the names you'd like to exclude - that way the names are not hard-coded and don't need to be updated if you decide to add additional individuals. See attached for an example. 

BJSOON
8 - Asteroid

Thank you so much! 

Labels