Alteryx Designer Desktop Discussions

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

Replacing Nulls with existing value

kirangottu
7 - Meteor
d_idSam_idtname
1Nullmiles
1Nullphases
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks

 

I want to replace Null with tr_1234.....

4 REPLIES 4
mborriero
11 - Bolide

You want to replace any null with tr_1234? or replace null based on the d_id?

 

If you just want to replace Null you can use a formula with

 

If [d_id]="Null" then "t_1234" else [d_id] endif

 

if your null is really null then you should use

 

if isnull([d_id]) then "t_1234" else [d_id] endif

 

kirangottu
7 - Meteor

Hello - i want to replace only for Samid when it is null then it should replace with nearest id like that for every d_id

below is my data

d_idSam_idtname
1Nullmiles
1Nullphases
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
2Nullmiles
2Nullphases
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks

result should be like this:

d_idSam_idtname
1tr_1234miles
1tr_1234phases
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
1tr_1234tasks
2tr_1235miles
2tr_1235phases
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks
2tr_1235tasks
tom_montpool
12 - Quasar

Summarize on d_id and sam_id

Remove sam_id="Null" or IsNull(sam_id)

Join sam_id back into your main file using d_id as the join field

 

mborriero
11 - Bolide

Find workflow attached

Labels