CR 8
Hi this is a problem that i have reported previously but have not manged to crack yet.
A manual cross tab has been created to reflect performance of batch accounts over a 12 month period. This is within the date created (dt-datinstr) by month group. The details section within the group has 12 formulas for the date diff as so:
@Placement Month Start:
Date(Year({debt.dt-datinstr}),Month({debt.dt-datinstr}),1)
@month1
if Datediff("m",{@Placement Month Start},{debt-trans.tx-date})=0 and
{debt-trans.tran-code} startswith "DR1","DR3","DR4","DR5","DR309" then {debt-trans.tx-amount}
else
0
etc until the last month 12.
The report has to be cumulative with the sums of the datediffs in the group footer. Ie. if there are no new DR codes for that month\ datediff the value keeps going until the max date diff is reached afterwhich it should be suppressed so a batch for say Aug-03 that has a date diff of 6 has to stop at 6. But this is the headache. I havn't managed to accurately suppress by the datediff value. SO certain months keep going on past the datediff max, and some go no where near the date diff max.
0 1 2 3 4 5 6 etc
Jul-03 177.67 537.84 937.12 1757.48 2346.77 2642.15 2642.15
Aug-03 0 0 33.00 257.10 284.10 284.10 284.10
Sep-03 0 0 20.00 44.00 44.00 44.00 44.00
Oct-03 10 110.00 110.00 110.00 110.00 110.00 110.00
Nov-03 15 105 105 105 105 105 105
Dec-03 10 10 10 10 10 10 10
Cheers
Hi this is a problem that i have reported previously but have not manged to crack yet.
A manual cross tab has been created to reflect performance of batch accounts over a 12 month period. This is within the date created (dt-datinstr) by month group. The details section within the group has 12 formulas for the date diff as so:
@Placement Month Start:
Date(Year({debt.dt-datinstr}),Month({debt.dt-datinstr}),1)
@month1
if Datediff("m",{@Placement Month Start},{debt-trans.tx-date})=0 and
{debt-trans.tran-code} startswith "DR1","DR3","DR4","DR5","DR309" then {debt-trans.tx-amount}
else
0
etc until the last month 12.
The report has to be cumulative with the sums of the datediffs in the group footer. Ie. if there are no new DR codes for that month\ datediff the value keeps going until the max date diff is reached afterwhich it should be suppressed so a batch for say Aug-03 that has a date diff of 6 has to stop at 6. But this is the headache. I havn't managed to accurately suppress by the datediff value. SO certain months keep going on past the datediff max, and some go no where near the date diff max.
0 1 2 3 4 5 6 etc
Jul-03 177.67 537.84 937.12 1757.48 2346.77 2642.15 2642.15
Aug-03 0 0 33.00 257.10 284.10 284.10 284.10
Sep-03 0 0 20.00 44.00 44.00 44.00 44.00
Oct-03 10 110.00 110.00 110.00 110.00 110.00 110.00
Nov-03 15 105 105 105 105 105 105
Dec-03 10 10 10 10 10 10 10
Cheers