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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
pnn44794
Partner - Specialist
Partner - Specialist

Where Clause With Excel Load Not Working As Expected

Hello:

 

I'm attempting to load an Excel file where I have dates from 2016 and 2017 in the format of "M/D/YYYY  hh:mm:ss AM" (or PM) or formatted "MM/DD/YYYY  hh:mm:ss AM" (or PM), depending on the month and / or day.  There's a total of 400 records.  When I use the following snippet of code, it reduces the number of rows fetched to 289.

 

LOAD a,

b,

Date(Created, 'MM/DD/YYYY') as Created,

 

.

.

.

last-field;

FROM
xyz.xlsx
(ooxml, embedded labels, table is [Spend-Data])
Where [Created] > '12/31/2016'; 

 

Does any one have any ideas on why this isn't working?  As always, thanks in advance and any and all help is appreciated.

14 Replies
swuehl
MVP
MVP

And double check your Created field can be interpreted as timestamp or date:

Why don’t my dates work?

Get the Dates Right

pnn44794
Partner - Specialist
Partner - Specialist
Author

Hello Sas:

 

Hope this helps.

pnn44794
Partner - Specialist
Partner - Specialist
Author

Hello Anil:

 

Hope this helps.

pnn44794
Partner - Specialist
Partner - Specialist
Author

Come on Stefan!!!!  That would be too easy.  LOL.  I definitely was making it harder to do than it needed to be.  A rookie problem I suppose.    Your Where clause worked.  Thank you very much.  I appreciate the help.

pnn44794
Partner - Specialist
Partner - Specialist
Author

And thank you for the links.  I have bookmarked them.  Thanks again for the help.