Hi All, I just realized that, if there is some condition before using LAG the function, then LAG will take the "previous one" from those that satisfy the condition ? For example, n A Name C 1 0 Abbie 2 1 Bob 3 . Charlie 4 0 David 5 1 Eddie 6 . Frank If A = . then C = lag(B); for record # 6, C will have Charlie, not Eddie. How do I get Eddie ?? Many Thanks for quick response, working in the office now...
... View more