I am building a report and having difficulties get the data format I want. Below is what I currently have. The report is currently grouped by MasterAcct# and sorted by masteracct# and postDate. I need to know what is the credit limit at beginning of the year and what is the current credit limit and what is the variance between old credit limit and new credit limit at the masteracct# level. I am not sure what is the best way to do this because each acct# is unique but they all shared the same masteracct# and credit limit. Does anybody know what is the best way to do it?? Any help will be greatly appreciated.
thanks
Detail section
MasterAcct# Acct# PostDate OldCredit_limit NewCred_Lim
6000 111 1/5/09 1000 1500
6000 121 3/5/09 1500 1200
6000 115 5/5/09 1200 2000
6111 221 2/5/09 500 1000
6111 321 8/5/09 1000 800
Desired output
MasterAcct# OldCredit_limit NewCredit_limit Variance
6000 1000 2000 1000
6111 500 800 (300)
thanks
Detail section
MasterAcct# Acct# PostDate OldCredit_limit NewCred_Lim
6000 111 1/5/09 1000 1500
6000 121 3/5/09 1500 1200
6000 115 5/5/09 1200 2000
6111 221 2/5/09 500 1000
6111 321 8/5/09 1000 800
Desired output
MasterAcct# OldCredit_limit NewCredit_limit Variance
6000 1000 2000 1000
6111 500 800 (300)