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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Question re. filtering a script by date range


Is there an expression that you can insert into a script to filter the incoming data (say from a database) by date range before it is loaded into the app e.g. all data ater a certain date or should it always be filtered first in the database ideally ?

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can add a where clause to a load script block:

Example1:

LOAD * FROM MyTable.qvd (qvd) WHERE MyDate <= Today();

Example2:

SQL SELECT * FROM MyTable WHERE MyYear <= 2015;


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can add a where clause to a load script block:

Example1:

LOAD * FROM MyTable.qvd (qvd) WHERE MyDate <= Today();

Example2:

SQL SELECT * FROM MyTable WHERE MyYear <= 2015;


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks for your help this works .