Start Free Trial

Alteryx Designer Desktop Discussions

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

How to manage column with no values

lumjingbki
8 - Asteroid

 

I have 2 columns one is int and the other is string data type. please find attached. I want to assign a value to these when it is null or empty. can someone help how to achieve this

7 REPLIES 7
alexnajm
18 - Pollux
18 - Pollux

What value do you want to assign? Do you have an expected output?

lumjingbki
8 - Asteroid

@alexnajm if [Date] is blank then 20240101 else [Date]  if [status] is blank then "Status is blank" else [status]

lumjingbki
8 - Asteroid
@alexnajm if [Date] is blank then 20240101 else [Date]  if [status] is blank then "Status is blank" else [status]
cjaneczko
13 - Pulsar

All you need is a formula tool after that.

 

Date

 

if isnull([Date]) then tonumber(datetimeformat(DateTimeparse('20240101','%Y%m%d'),'%Y%m%d')) else [Date] endif

 

 

Status

 

if IsNull([Status]) then 'Status is blank' else [Status] endif

 

 

 image.png

lumjingbki
8 - Asteroid

@cjaneczko am not getting the required results even after using the given formulas. Are you providing having any blank rows in the input tool. 

cjaneczko
13 - Pulsar

Yes, the text input data matches your screen cap with date as Int 64 and Status as VString. Can you provide sample data?

cjaneczko
13 - Pulsar

Find attached the sample workflow. Also a screen cap of the input and output.

 

image.pngimage.pngimage.png

Labels
Top Solution Authors