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

handling null values

Hi,

As in screen shot I have data like this after I made some calculations. But what my requirement is in between 02/13/2015 and 02/21/2015 dates have been missed. I want to display '0' where dates have been missed.

like this i want to display.

02/13/2015  106,237  

02/14/2015    0

02/15/2015     0

02/16/2015     0

02/17/2015     0

02/18/2015

02/19/2015

.

.

02/21/2015    40.195

Pls help me on this.

Thanks

19 Replies
Anonymous
Not applicable
Author

I did it, but no use. Actually this date field is time stamp.

sasiparupudi1
Master III
Master III

in the script,

load Date,

if (len(Value)=0,0,Value) as Value

load  inline

[

Date  Value

02/13/2015  106,237  

02/14/2015    0

02/15/2015     0

02/16/2015     0

02/17/2015     0

02/18/2015

02/19/2015

.

.

02/21/2015    40.195

];

in your straighttable uncheck supress zero values option

hth

Sasi

qlikviewwizard
Master II
Master II

‌hi Kiran,

can you attach sample file to demonstrate your issue? Thank you

Anonymous
Not applicable
Author

it is an incremental load. Everything will get from database. We should not use inline load here.

Anonymous
Not applicable
Author

Deepak, I incorporated the same.

See the screen shot. there is no at the end it is adding '0' after made it as ascending order.

Anonymous
Not applicable
Author

All files are available in remote desk top. I can't copy into my local machine

sasiparupudi1
Master III
Master III

Hi

the inline load I have given as an example only. You could use the

condition if (len(Value)=0,0,Value) as Value

in your load script for null values

hth

Sasi

qlikviewwizard
Master II
Master II

Hi Kumar,

Pls check the attachment. Hope this will help you.

Anonymous
Not applicable
Author

Hi,

In ur example still dimensions are missing, but in my date dimension the dates are there. To the corresponding date i don't have any value in expressions. Like this some of values are missing in expressions.

In above table the highlighted with yellow dates have been missed. because there is count and sum to the corresponding dates. Like 2 table it should be populate missing dates where null value is there along with it will be display 0 in place of null.

Regards,

kumar

qlikviewwizard
Master II
Master II

Hi kumarreddy257

Please provide the sample data with qvw to demonstrate your requirement. It will help the folks in easy understand.

Thank you.