Start Free Trial

Alteryx Designer Desktop Discussions

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

Convert all empty fields to null

wonka1234
10 - Fireball

Hi,

 

Is there a way to convert all fields from empty to null?

 

Is the opposite the same as doing a cleanse and replacing null with blank fields?

 

Thanks.

3 REPLIES 3
gautiergodard
13 - Pulsar

hey @wonka1234 you could do this:

 

if IsEmpty([field1]) then Null() else [field1] endif

wonka1234
10 - Fireball

yes this would work but i want it to apply to each col..

 

ie im trying this but getting malformed funciton call..

 

wonka1234_0-1680120392570.png

 

binu_acs
21 - Polaris

@wonka1234 You are missing a closing bracket in the isEmpty() function

IF IsEmpty([_currentfield_]) THEN Null() Else [_currentfield_] EndIF
Labels
Top Solution Authors