analytics2006
MIS
I am working on a report and need to do the comparison between current type and previous type and the report is group by acct# then inv# and the formula (acct.type =previous(acct.type) is placed at the group footer /suppress (no drill down) / x-2. Since acct# X222 only has one record in the table and it was reading comparing the acct# C125 type (SS) and date (1/20/07) as the previous type and date. I want to eliminate any records that doesn’t have previous records to compared to but I am not sure how I can do it I have tried if statement but it doesn’t work. I will really appreciated if anybody can help me with this.
ACCOUNT TABLE:
Acct# inv# type date
C125 h1223 nz 8/20/07
C125 h1223 ss 1/20/07
X222 T56 tz 1/20/07
Current Output:
Acct# inv# curr_type curr_date prev_type prev_date
C125 h1223 ss 1/20/07 nz 8/20/07
X222 t56 tz 1/20/07 ss 1/20/07
Correct output should be the following:
Acct# inv# curr_type curr_date prev_type prev_date
C125 h1223 ss 1/20/07 nz 8/20/07
thanks
ACCOUNT TABLE:
Acct# inv# type date
C125 h1223 nz 8/20/07
C125 h1223 ss 1/20/07
X222 T56 tz 1/20/07
Current Output:
Acct# inv# curr_type curr_date prev_type prev_date
C125 h1223 ss 1/20/07 nz 8/20/07
X222 t56 tz 1/20/07 ss 1/20/07
Correct output should be the following:
Acct# inv# curr_type curr_date prev_type prev_date
C125 h1223 ss 1/20/07 nz 8/20/07
thanks