Hello lbass,
Here are some more formulae that I have used in the report.
1)@CurrentAHMC = if ( ( {?ReportPeriodStart} <= {TTICST002530.T_CMDT} ) and
( {TTICST002530.T_CMDT} <= {?ReportPeriodEnd} ) ) then {TTICST002530.T_AHMC}
else 0
2)@CurrentAHMCSum = sum ({@CurrentAHMC} )
3)@CurrentBCWS = Choose ({@ReportMonth},{HOURS1.Jan},{HOURS1.Feb},{HOURS1.Mar},
{HOURS1.Apr_},{HOURS1.May},{HOURS1.Jun},
{HOURS1.Jul},{HOURS1.Aug},{HOURS1.Sep},
{HOURS1.Oct},{HOURS1.Nov},{HOURS1.Dec} )
4)@CurrentPRTM = if ( ( {?ReportPeriodStart} <= {TTICST002530.T_CMDT} ) and
( {TTICST002530.T_CMDT} <= {?ReportPeriodEnd} ) ) then {TTISFC010530.T_PRTM}
else 0
5)@CurrentPRTMsum = sum( {@CurrentPRTM} )
6)@CurrentScheduleVariance = Sum ({@CurrentPRTM}, {DEPARTMENTS.DEPT}) - {#RTotal0}
7)@ReportMonth = month({?ReportPeriodEnd})
8)@ReportYear = year({?ReportPeriodEnd})
9)@ReportYearBegin = DateValue( {@ReportYear}, 1, 1 )
10) @CurrentCostVariance

THIS FORMULA GIVES ERROR)
sum({@CurrentPRTM},{DEPARTMENTS.DEPT}) - sum({@CurrentAHMC}, {DEPARTMENTS.DEPT})
This formula compiles OK. While running gives an error: A summary has been specified on a non-recurring field Details: @CurrentCostVariance.
I have two parameter values(?ReportPeriodStart) and (?ReportPeriodEnd)
There are two Groups:
Group#1 Name: DEPARTMENTS.DEPT
Group#2 Name:TTICST002530.T_CWOC
Regards,
AA