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.

Convert blanks to Nulls for a particular field

wonka1234
10 - Fireball

Is there a formula I can use to convert blanks in alteryx to null values in a field?

I believe my join isnt joining correctly due to blanks being in a field instead of nulls.

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@wonka1234 
If I understand your intention correctly an suppose the Field is "A"

We may use the formula as below.

If isempty([A]) then null() else [A] endif
MarqueeCrew
20 - Arcturus
20 - Arcturus

@wonka1234 ,

 

 while I agree in theory with @Qiu , because you said blanks I want to clarify:

 

"" with 0 spaces is empty

" " with any quantity of spaces is NOT empty 

 

so if you still have a join issue, 

 

IIF(IsEmpty(Trim([A])),Null(),[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