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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SQL Select Statement for Empty Data

Hey, so I am trying to load data but only the ones with the following two criterias:

1. The enddate needs to be greater then today's date or
2. If enddate is empty then load the data

LOAD uname as Username,
FROM (ooxml, embedded labels, table is [test])
WHERE not(date(enddate,'MM/YYYY') < date(today(), 'MM/YYYY')) or enddate = "";


I put the following code into qlikview and I get an error saying Field not found - <>. Does anyone know what I am doing wrong in the code?

1 Reply
disqr_rm
Partner - Specialist III
Partner - Specialist III

Try with enddate = ' ' --> Single quotes. And make sure enddate field is in your XLS file.

I think you can rewite the whole WHERE line as:

WHERE enddate GE today() or len(enddate)=0;

If nothing works, just post here a sample XLS file.