Hello,
I'm trying to create a lagging flag based on the observations in the next category. The variable I'm trying to create is Flag(t-1) as per below.
Flag(t-1) should equal the value of Flag from the next day. Eg the calculation for the first cell in Flag(t-1), to be the value of Classification aaa on Day 2.
Would appreciate some advice on the code required to achieve this.
I have tried sorting and creating a group, but its not working at all.
Thanks
I'm trying to create a lagging flag based on the observations in the next category. The variable I'm trying to create is Flag(t-1) as per below.
Flag(t-1) should equal the value of Flag from the next day. Eg the calculation for the first cell in Flag(t-1), to be the value of Classification aaa on Day 2.
Would appreciate some advice on the code required to achieve this.
I have tried sorting and creating a group, but its not working at all.
Thanks
Comment