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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Halebabür
Contributor III
Contributor III

Date Format

Hello, In the script section, I want to find the ones whose creation date is greater than 01.01.2021 How can I find ?

 

example the following statement did not work :

Load

*,

resident A

Where LastDate>'01.01.2021' ;

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

What is exact format of this field "Lastdate" ?

Is the field actually a datefield or a timestamp field

Try using below 

Where floor(LastDate)>Floor(Date#('01.01.2021','DD.MM.YYYY'));

 

or

Maybe it's getting loaded as text instead of date?

In this case you would need to specify the actual value format of the LastDate field

Where floor(Date#(LastDate,'EnterFormatHere'))>Floor(Date#('01.01.2021','DD.MM.YYYY'));

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
brunobertels
Master
Master

hi try this 

Load

*,

resident A

Where YourdateFieldhere>'01.01.2021' ;

Halebabür
Contributor III
Contributor III
Author

Hello, I wanted to express this in the example. However it doesn't work

vinieme12
Champion III
Champion III

What is exact format of this field "Lastdate" ?

Is the field actually a datefield or a timestamp field

Try using below 

Where floor(LastDate)>Floor(Date#('01.01.2021','DD.MM.YYYY'));

 

or

Maybe it's getting loaded as text instead of date?

In this case you would need to specify the actual value format of the LastDate field

Where floor(Date#(LastDate,'EnterFormatHere'))>Floor(Date#('01.01.2021','DD.MM.YYYY'));

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Halebabür
Contributor III
Contributor III
Author

Thank you 🙂 You saved my day.