The first part of your formula looks like general selection criteria, and if these criteria apply to every employee, then put them in the record select statement, something like:
{DLY_ACTIVITY.ACTIVITY_CD} in ["LS", "RC", "RW", "TO", "UP"] and {DLY_APPLICATION.OPR_LOCATION_NR} in ["010613", "010602", "010603"]
and {DLY_ACTIVITY.USER_ID} in ["ARIZ0305", "ARIZ0466"] //are there only two employees??? I'm assuming the user ID = employee ID here//
and {DLY_ACTIVITY.ACTIVITY_DT} in [CurrentDate -4 to CurrentDate -1]
Then group on {DLY_ACTIVITY.USER_ID}
Create four formulas, subsituting 2,3, and 4 when substracting from Current Date, as in the following first formula:
if {DLY_ACTIVITY.ACTIVITY_DT} = CurrentDate -1
then 1 else 0 //place each formula in details
Then right click on each formula to create a total for each date. You can display your results either in the group header or in the footer.
-LB