Hi
I hope that somebody out there can help with this problem......
I have data which I have grouped by day. The record "WRITES" is a cumalative record, but only accumalates when the following condition is
true; when there is a previous record with a corresponding SPID and KPID.
What I need is.... If there is a previous occurance of the SPID, KPID
combination, then "WRITES" must be subtracted from the previous SPID, KPID
combinations "WRITES". To complicate matters, this must carry over into the
next day. See example below. Is there a formula that will accomplish this?
Group A 1 Jan 2004
SPID KPID WRITES Required Result
------ ------ --------- ----------------
1234 A 2 2
1234 A 4 2
5678 A 10 10
1234 B 7 7
1234 A 16 12
Group A 2 Jan 2004
SPID KPID WRITES Required Result
------ ------ --------- ----------------
5678 B 24 24
5678 A 14 4
1234 B 14 7
1234 A 32 16
1234 A 36 4
Hope someone can shed some light on this.
Many Thanks - Grant
I hope that somebody out there can help with this problem......
I have data which I have grouped by day. The record "WRITES" is a cumalative record, but only accumalates when the following condition is
true; when there is a previous record with a corresponding SPID and KPID.
What I need is.... If there is a previous occurance of the SPID, KPID
combination, then "WRITES" must be subtracted from the previous SPID, KPID
combinations "WRITES". To complicate matters, this must carry over into the
next day. See example below. Is there a formula that will accomplish this?
Group A 1 Jan 2004
SPID KPID WRITES Required Result
------ ------ --------- ----------------
1234 A 2 2
1234 A 4 2
5678 A 10 10
1234 B 7 7
1234 A 16 12
Group A 2 Jan 2004
SPID KPID WRITES Required Result
------ ------ --------- ----------------
5678 B 24 24
5678 A 14 4
1234 B 14 7
1234 A 32 16
1234 A 36 4
Hope someone can shed some light on this.
Many Thanks - Grant