Hi Prenika,
Still not exactly sure what you are going for but will try to help further.
If you want a sum of {Command.PMNTFHCA} for the year you can either do it as a running total or create a formula field to handle it then sum on that.
FOr the axample I will use a formula called "YTD".
Create the formula as:
if({Command.ISSUEDATE}) in YearToDate
then {Command.PMNTFHCA} else 0.
Now do a Sum on the formula field.
SUM({@ytd})
For you other problem spliting it into two part of the year and counting the records you can use formulas as well. Note this willa ct like a record count and not a DistinctCount.
For Jan-Jun
if({Command.DATE})<=Date (Year(CurrentDate),06 , 30)
then 1 else 0
Sum this formula field.
For Jul-Dec
if({Command.DATE}>=Date (Year(CurrentDate),06 , 30) and {Command.ISSUEDDATE}<=Date (Year(CurrentDate),12 , 31) )
then 1 else 0
Sum this formula field.
FYI in running totals formulas don't use an If then statment or summary, just identify the condition that you want it included and let the process you pick in the upper portion do the SUm, COunt, DistinctCOunt, etc.
Edited by DBlank - 19 Mar 2009 at 7:01am