Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load the data till particular Date

Hi all,

Is it possible to restrict the loading of data till yesterday or till last week, or till particular date in load script.

Regards,

Pramod

5 Replies
puttemans
Specialist
Specialist

Hi,

With a where-clause in your load script.

e.g. Where Date < Today() or Where Date > 01/02/2014

Anonymous
Not applicable
Author

Yes, are you looking for this?

Let VlastDate=Date(Today()-7,'DD/MMM/YYYY')

Test:

Load

*,

Date(TrxnDate,'DD/MMM/YYYY')

From Table1

where TrxnDate > '$(VlastDate);

ahmar811
Creator III
Creator III

hi Pramod,

load data till yesterday write the condition on where like below:


Table :

load

StartDate,  // date formate 'DD-MM-YYYY'

EndingDate //date formate 'DD-MM-YYYY'

from table where StartDate<today();


load data till last week write the condition on where like below:


Table :

load

StartDate,   // date formate 'DD-MM-YYYY'

EndingDate   // date formate 'DD-MM-YYYY'

from table where StartDate<date(num(today())-7,'DD-MM-YYYY');

load data till particular date write the condition on where like below:

"create variable for particular date"

set vPdate='11-12-2015' ;

Table :

load

StartDate,   // date formate 'DD-MM-YYYY'

EndingDate   // date formate 'DD-MM-YYYY'

from table where StartDate<'$(vPdate)';




hope this helpful for you



Regards

Ahmar

Not applicable
Author

I need to restrict my data load to yesterday for all the table.

some table don't have dates column even that tables also...

Anonymous
Not applicable
Author

If you dont have any transaction data, then you can't restrict.

This is like Header & Details tables where Header are like Master tables where you have to load them completely no other option