Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading data with date range and where clause

I'm trying to load data from an excel file with a where clause that include filtering by a field as well as within a certain date range.  The fields I'm using are 'neighbourhood' and 'billing_date' where billing_date is in the following timestamp format: 2010-08-01 00:00:00.000000 -04:00

How might I do this in the load script where the neighbourhood matches a specific value such as 'Liberty Village' and I'm pulling in data where the  billing_date is less than today?  The file I have has transactions written for the rest of the year.

1 Solution

Accepted Solutions
hector_munoz
Specialist
Specialist

Hi Ryan,

Try something like:

WHERE neighbourhood = 'Liberty Village' AND

              Date#(Left(billing_date, 10), 'YYYY-MM-DD')  < Today();

Hope it serves,

Regards,

H

View solution in original post

1 Reply
hector_munoz
Specialist
Specialist

Hi Ryan,

Try something like:

WHERE neighbourhood = 'Liberty Village' AND

              Date#(Left(billing_date, 10), 'YYYY-MM-DD')  < Today();

Hope it serves,

Regards,

H