CR XI
Oracele db
I have a report that determines if an employee handled one or more calls during a period of one day. Basically this determines if they were at work as they always handle at least one call during a shift. A distinct count summary is grouped by employee ID. The summary is based on a date field. Grouping in the employee ID field works fine and I end up with a monthly summary of days worked for each employee. distinctcount({call_date},{employee_IDnumber})
...and here is the issue:
I have a graveyard shift that starts at 10PM and I don't want to count the calls they receive between 10PM and Midnight because this may increase their "days worked count". To accomplish this I can use a text based time field (for the call record) and a shift identification field to remove these records.
Here is my formula to remove records assigned to a graveyard shift employee where a call was received between 2200 and 2359. For our purposes here this seems to work OK to remove the criteria for those hours if they are assigned to a graveyard shift.
if left({Call_Time},2) <> ["22","23"]
or ({Shift_ID})<> "G" then totext({call_date})
When I create the (distinct count) summary with this formula, it is also counting the null values as one. Can someone assist on a better way to set up this summary so it doesn't count the null (or blank) value - only the date from my formula.
Oracele db
I have a report that determines if an employee handled one or more calls during a period of one day. Basically this determines if they were at work as they always handle at least one call during a shift. A distinct count summary is grouped by employee ID. The summary is based on a date field. Grouping in the employee ID field works fine and I end up with a monthly summary of days worked for each employee. distinctcount({call_date},{employee_IDnumber})
...and here is the issue:
I have a graveyard shift that starts at 10PM and I don't want to count the calls they receive between 10PM and Midnight because this may increase their "days worked count". To accomplish this I can use a text based time field (for the call record) and a shift identification field to remove these records.
Here is my formula to remove records assigned to a graveyard shift employee where a call was received between 2200 and 2359. For our purposes here this seems to work OK to remove the criteria for those hours if they are assigned to a graveyard shift.
if left({Call_Time},2) <> ["22","23"]
or ({Shift_ID})<> "G" then totext({call_date})
When I create the (distinct count) summary with this formula, it is also counting the null values as one. Can someone assist on a better way to set up this summary so it doesn't count the null (or blank) value - only the date from my formula.