My formula for F_vol1 is as follows:
if year({VW_AE_VOL_COMMITMENTS.EFFECTIVE_DATE}) = (year({VW_AE_VOL_COMMITMENTS.REPORT_START_DATE}))
then if not isnull({VW_AE_VOL_COMMITMENTS.COMMITED_QTY}) then
{VW_AE_VOL_COMMITMENTS.COMMITED_QTY}
else
0
My formula for F_vol2 is as follows:
if year({VW_AE_VOL_COMMITMENTS.EFFECTIVE_DATE}) = (year({VW_AE_VOL_COMMITMENTS.REPORT_START_DATE})+1)
then if not isnull({VW_AE_VOL_COMMITMENTS.COMMITED_QTY}) then
{VW_AE_VOL_COMMITMENTS.COMMITED_QTY}
else
0
My formula for f_vol_total is:
The f_vol_total was placed under group header 3 which has something like this.
contract_no f_vol1 f_vol2 f_vol3 f_vol4 f_vol5 f_vol-total
The funniest part is, for some of the rows f_vol_total shows up correctly. For some of the rows, f_vol_total shows zero even though one of the f_vols are not zero.
Edited by bgovindhan - 10 Jan 2012 at 6:46am