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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filtering is not happening in the load script

The below one is  my excel source data. I want to extract only the incremental data which is above 27/08/2013, in that case only 2 records (28/08/2013) to be extracted whereas my load script extracts all the records from this source file. Please refer my load script below

CustIDCustNameLocationLast_upd
10AshokChennai27/08/2013
20MadhuMumbai28/08/2013
30ShankarMumbai27/08/2013
40JaneBangalore28/08/2013
10AshokChennai26/08/2013

Let vMD=peek('Last_upd',-1,'Obt_maxdt');

Trace $(vMD) --   ( this one shows 27/08/2013)

Delta:

LOAD CustID,

     CustName,

     Location,

     Last_upd

FROM

E:\Downloads\Customer.xlsx

(ooxml, embedded labels, table is Delta)

where Last_upd > $(vMD);

As per the value stored in $(vMD) the above Load script should extract only the records greater than 27/08/2013 whereas it fetches all the 5 records and store it in a qvd file. ??/  Not sure , why is that fetching all the records instead of fetching only 2 records ??

Can someone help me to find out where am making mistake here..

Thanks

Joe

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Joe,

Since the date is a literal value here, try instead:

where Last_upd > '$(vMD)'; // using single quotes

And make sure the contents in vMD has the same format that the values stored into field "Last_upd"

Hope that helps.

Miguel

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello Joe,

Since the date is a literal value here, try instead:

where Last_upd > '$(vMD)'; // using single quotes

And make sure the contents in vMD has the same format that the values stored into field "Last_upd"

Hope that helps.

Miguel

Not applicable
Author

Thanks a Ton Miguel. Now its working