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

Filtering data in load script

Hi,

In my load script i have a date field xxx as

date(xxx, 'DD/MM/YYYY hh:mm:ss tt') as xxx,

based on this field i want to filter my data . So in the where clause i put

where DATE(xxx,'DD/MM/YYYY hh:mm:ss tt')>'12/11/2017 00:00:00 AM' ;

My problem is I only get data after 12/11/2017 for year 2017 but 2018 data is not coming.

Thank you,

Ashis

1 Solution

Accepted Solutions
sunny_talwar

Can you try this

Where xxx > MakeDate(2017, 12, 11);

View solution in original post

6 Replies
sunny_talwar

Is this where clause used in SQL SELECT statement or LOAD statement? Also, are you sure you have data for 2018 in your source data?

ashis
Creator III
Creator III
Author

This is used in Load statement , reading data from QVD. Yes I do have data for 2018.

If I remove where clause I do get data for Jan- 2018.

sunny_talwar

Can you try this

Where xxx > MakeDate(2017, 12, 11);

ashis
Creator III
Creator III
Author

Great, it works... Thank you Sunny.

ashis
Creator III
Creator III
Author

Any guess why my piece of code breaking.

sunny_talwar

Difficult to say, but my guess is that it is unable to read he string as a date... it is doing something else which is why there are issues....