Discussion Board for collaboration on QlikView Scripting.
Hi everyone, I need help to add one column in my script but I dont know how to do it.
I run the Loads and I want to add more information in this case the "Desired Column" aka Previous Points. This value corresponds to the last points from the Players.
I am doing something like this:
LOAD Points as PreviousPoints
// Where Day = Max(Date(Day)-1) and Player = ??
I have to work on the clause where. Do you have any suggestion how it should be like to put another column like the example?
Go to Solution.
Look if it help.
you have to load (resident load) order by player, day and use the peek function to get the point of the previous record (only when the player of the previous record is the same)
Could you send it on .txt? I forgot to mention I dont have a lincense for the Qlikview at least until now.
Here is what jeanfilipedelle(Copy and Pasting as it is his script for you) did:
Within the script
LOAD * Inline [
If(Peek(Player)=Player,Peek(Points)) as [Desired Column]
Order By Player,Day;
DROP Table TableAux;