Alteryx Designer Desktop Discussions

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

Using MultiField Tool to NULL certain columns based on a certain condition

whitkrieng
8 - Asteroid
daystoclosestoreiddealnumber
221234ABC123
2401245ABC124
101122AAB112
2111123ABB113

 

I don't know if this is possible but I am trying to NULL out rows over a number of columns (def more than the 2 shown here), therefore I was wondering if this is possible to do in the MultiField Formula Tool. 

 

I want to apply a condition in the expression as in: If [daystoclose] > 100 then (make [CurrentField] = NULL) else (keep value in [CurrentField]) end if.

 

So the final result would look like this: 

 

daystoclosestoreiddealnumber
221234ABC123
240[NULL][NULL]
101122AAB112
211[NULL][NULL]

 

 

Thank you for everyone's help and feedback!

 

4 REPLIES 4
BrandonB
Alteryx
Alteryx

Hi @whitkrieng 

 

This formula will work for you:

 

IF ToNumber([daystoclose])>100
THEN Null()
ELSE [_CurrentField_]
ENDIF

 

Just make sure that you have daystoclose UNCHECKED in the configuration, you have it set to "All Types of" fields, and you have "Copy Output Fields and Add" UNCHECKED.  Example screenshot below. 

 

BrandonB_0-1658848827333.png

 

 

Emmanuel_G
13 - Pulsar

@whitkrieng ,

 

One way to do this

Emmanuel_G_0-1658880978545.png

 

whitkrieng
8 - Asteroid

Thank you all! I didn't have the right If THEN statement thought out.  Thanks again!

Emmanuel_G
13 - Pulsar

@whitkrieng  You're welcome !

Labels