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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filtering on date format dd-mmm-yy

I am filtering my script on sales_date which is in the original format of dd-mmm-yy ie month is text. Is my where clause correct ? As such it will not work.

Load

date(sales_date,'M/D/YYYY'),

Region

FROM [............................]


WHERE sales_date > 01-Jan-2014 ;

Labels (1)
3 Replies
marcus_sommer
MVP
MVP

Try this:

Load

date(sales_date,'M/D/YYYY') as Date,

Region

FROM [............................]


WHERE date(sales_date,'DD-MMM-YYYY') > '01-Jan-2014';


- Marcus

Kushal_Chawda
MVP
MVP

should be

WHERE date(sales_date,'DD-MMM-YYYY') > date#('01-Jan-2014','DD-MMM-YYYY');

Digvijay_Singh
MVP
MVP

WHERE date(date#(sales_date,'DD-MMM-YYYY'),'DD-MMM-YYYY') > '01-Jan-2014';