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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
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 (1)
1 Solution

Accepted Solutions
MayilVahanan

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

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.