Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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

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

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 .