Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I feel there should be an elegant way to find a maximum value for a field in a table which has been loaded in a script. For example, if I am loading sales of products, can I find the last date something was sold? I do not wish to use PEEK in case the loaded data is not in date order.
Any ideas ?
What I am trying to achieve is an incremental load, based on date.
Thanks in advance.
Richard
Hi,
Main:
Load * from MainData;
Load Max(Date) as MaxDate Resident Main;
Let vMax=peek('MaxDate',-1,'Main');
Thanks,
Jagan
Go to this Blog by Steve
http://www.quickintelligence.co.uk/qlikview-incremental-load/
Hi,
Main:
Load * from MainData;
Load Max(Date) as MaxDate Resident Main;
Let vMax=peek('MaxDate',-1,'Main');
Thanks,
Jagan
Yes - that is elegant. Thank you!
Richard
If your Resident data set is large MAX or MIN functions can take a while to resolve.
Here's a useful post on how to optimise this.
Thanks guys.
Sorry to have repeated a question from previous posts, but I didn't pick up earlier answers in my search.
Richard
Thanks. Its a good post from Steve and he has helped me several times with my queries