Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Fill in Missing Values

I've read a few posts, as well as the NULL and Nothing paper by Henric, but I'm still unable to achieve what I'd like to do.

Using Sense July 17 Patch 1, I have a table that shows some missing values. From what I've read, I should be able to use IsNull() to test for these, and hopefully fill in a default value. However, IsNull() seems to return null. This table shows an example:

2017-09-22_1115.png

Interestingly, if I unselect "Include null values" for the CP.Ven_Nbr field, the rows with missing values are excluded.

Would like to replace the hyphen with a default value.

Can someone point me in the right direction?

Thanks,

Mike

5 Replies
lgutierrez
Contributor III
Contributor III

Have you tried manage the null values from the extraction?

I normaly get data without null values from the sorce.

regards.

rittermd
Master
Master

Are you sure that the field is Null?

I would also agree with Lucio about doing this check in your script and loading the default value there.

shraddha_g
Partner - Master III
Partner - Master III

try len(CP.Ven_Nbr field)<2

If len(field) is giving you any values then you can apply if condition.

Else you can do this in Script by using Set NullasValue

refer NullAsValue ‒ Qlik Sense

Anonymous
Not applicable
Author

Hi Lucio,

Yes, that could work, but I was curious about this behavior. It seems like I'm missing something and I'd like to understand what that is.

Regards,

Mike

Anonymous
Not applicable
Author

Hi Mark,

I'm pretty sure it's null - it has the hyphen and grayed-out box, plus when unselect "Include null values", those rows are excluded.


Thanks,

Mike