Hi
Create the following formulas to arrive task type count at group 2 level
@init // place this formula in group2 header
Whileprintingrecords;
Numbrevar clean:=0;
Numbervar Main:=0;
@Accu // Place this formula in detail section
Whileprintingrecords;
Numbrevar clean;
Numbervar Main;
if {Task_Type} = "Cleaning" Then
clean:=clean+1
else
if {Task_Type} = "Maintenance" Then
Main=Main+1
@Disp_clean // To get cleaning count place this in group 2 footer
Whileprintingrecords;
Numbrevar clean;
@Disp_Main // To get Maintenance count place this in group 2 footer
Whileprintingrecords;
Numbrevar Main;
If you have any other task types you can include in the above formula(s)