Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
gyuvaraj
Contributor II
Contributor II

How to load null dates also while loading into report

Hi All,

I have date column with null values, using date column i have to load last 5 years records into qlikview but here its working fine but null values are excluded while loading into qlikview.

Example:

load * from tablename  where year(date) > year(today())-5;

here i have to load null dates also into report after excluding last 5 years.

 

Thanks,

Yuvaraj

 

Labels (2)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi @gyuvaraj 

Am not sure, why u need to load null dates also.

Try like this

load * from tablename  where (year(date) > year(today())-5 or Len(Trim(date))=0);

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
Vegar
MVP
MVP

Maybe this will solve your issue

load * from tablename where NOT (year(date) <= year(today())-5) ;

gyuvaraj
Contributor II
Contributor II
Author

Hi,

Thanks for your reply.

Applied same but its excluding null values but am expecting last 5 year records with null values too.

 

Regards,

Yuvaraj

MayilVahanan
MVP
MVP

Hi @gyuvaraj 

Am not sure, why u need to load null dates also.

Try like this

load * from tablename  where (year(date) > year(today())-5 or Len(Trim(date))=0);

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.