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

Replacing Null Fields

anthony_wright
6 - Meteoroid

Need to replace Null values with value in first row.
(i.e. DIV field would test the row for If "IGS," then DIV 2 = "IGS" until it came across another value where DIV field if "ECS," then DIV 23 = "ECS."

What's the best way to approach this data preparation exercise? 

4 REPLIES 4
Ned
Alteryx Alumni (Retired)

This is exactly what the MultiRowFormula tool is for.  The formula you need is:
 

if IsNull([DIV]) then [Row-1:DIV] else [DIV] endif

 
davidhenington
10 - Fireball

what about using the last non-null value instead of the first? 

davidhenington
10 - Fireball

haha, apologies, i see that's exactly what this does. Excellent, love you Alteryx! 

cdaragan
5 - Atom

Could you pls help me replacing null values with 'Unknown' in a table

Labels
Top Solution Authors