Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
PM2
Contributor
Contributor

Filter on date greater than particular date

Hi All, 

I want to put filter on date in script.

Have written the below code

Load

Open_date,

From (xls file)

Where

Open_date>='01-Jan-20';

 

But i am not getting the correct output. I am new to qlikview and please help me on this.

2 Solutions

Accepted Solutions
Vegar
MVP
MVP

Try this:

 

LOAD
  Open_date
FROM (xls file)
WHERE
  Open_date >= Date#('01-Jan-20', 'DD-MMM-YY');

View solution in original post

Brett_Bleess
Former Employee
Former Employee

Little confused on things being marked solved when the post is asking for further assistance, so dropping a couple other links that may be of help:

https://community.qlik.com/t5/Qlik-Design-Blog/Why-don-t-my-dates-work/ba-p/1465849

https://community.qlik.com/t5/Qlik-Design-Blog/The-Date-Function/ba-p/1463157

I am going to change the marked solution to Vegar's post as my hunch is you figured out what you had done incorrectly based upon his post and did not take the time to write-up exactly what was wrong.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.

View solution in original post

4 Replies
Vegar
MVP
MVP

Try this:

 

LOAD
  Open_date
FROM (xls file)
WHERE
  Open_date >= Date#('01-Jan-20', 'DD-MMM-YY');

PM2
Contributor
Contributor
Author

Hi, 

Thanks for support

I have data from 2001 to Jan 2020 and only want Jan 2020 to generate output file.

However, while running below code giving me all the rows from 2001.

 

PM2
Contributor
Contributor
Author

Hi,

Please help urgently...

I have data from 2001 to 2020in xls file.

And want to generate output file containing only Jan 2020 data filter using qlikview.

Load

Open_Date

From (xls) file

Where

Open_date>=Date#('01-Jan-20','DD-MMM-YY);

Not giving me correct output of containing only jan month data. Its giving me full report seems filter is not getting captured.

Brett_Bleess
Former Employee
Former Employee

Little confused on things being marked solved when the post is asking for further assistance, so dropping a couple other links that may be of help:

https://community.qlik.com/t5/Qlik-Design-Blog/Why-don-t-my-dates-work/ba-p/1465849

https://community.qlik.com/t5/Qlik-Design-Blog/The-Date-Function/ba-p/1463157

I am going to change the marked solution to Vegar's post as my hunch is you figured out what you had done incorrectly based upon his post and did not take the time to write-up exactly what was wrong.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.