Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

fill in missing values

Hi,

I have a date field in my table but not every row has a date. For those rows that doesn't have a date i want them to have todays date.

How do i do this? It has to be done in the script.

Thanks!

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

If you take the data from a sql query, you can use the NVL function. Otherwise, use;

if(isnull(field) = -1, today(), field)

View solution in original post

3 Replies
Not applicable
Author

Hi,

If you take the data from a sql query, you can use the NVL function. Otherwise, use;

if(isnull(field) = -1, today(), field)

Anonymous
Not applicable
Author

Annika,

If the values without dates are null values you can do the following in the script:

Load

     Date,

     if(Len(Date)=0, Today(), Date) as NewDateField

From xxx..

Anonymous
Not applicable
Author

Thank you Guys!

Just what i needed!

//A.