another option, not the best, as excluding the dupe at time of selection (DBlank's suggestion) is by far the best (OK, maybe not the best, but what I would do as well) is to create a shared variable.
Most of my solutions involved shared variable because they are so versatile. Any how, create a shared string variable and as the report runs, it will add the employees name or id or whatever is unique to the string with an identifier, but first it will check so that suppression can occur.
doesn't sound too clear to me, let's try an example:
this would be the 'equation' in the suppression formula, say for details, but it could be where ever you need to hide the dupe ( you may need it aggregrate calculations as well as suppressed entries are included in things like sums and averages... how to complicate things...
shared stringvar usedID;
//this would be for an number...a name wouldn't need the totext call
instr(usedID, "|"+totext({table.numberID},0,"")+"|")
I would add a second detail section and put a formula that adds the id, (assuming the suppression is of the detail section) so that they person cannot show up again. so that formula would look like:
shared stringvar usedID:=usedID + "|"+totext({table.numberID},0,"") + "|";
"" //i use the empty string to hide the result of the formula, but if you suppress the whole 'second' detail section, it is not needed.
Thinking about it, now, this will remove the duplicate from showing, but it won't adjust the numbers. There you will either need to create your own counter, or adjust a running total. DBlank is by far better on the Running Total, as I would use shared variable, as I am already doing a calculation.
So I would modify the last formula to be something like:
shared stringvar usedID;
shared numbervar empCount;
if instr(usedID, "|"+totext({table.numberID},0,"") + "|") = 0 then (
empCount := empCount + 1;
usedID := usedID + "|"+totext({table.numberID},0,"") + "|";
);
"" //i use the empty string to hide the result of the formula, but if you
and then for the total you get the simple formula of
shared numbervar empCount
place the formula where the distinctcount is, voila (hopefully) everything lines up.
If you just want a count of employees and it is ok to see a dupe, remove the suppression, but keep the counter as it is truly a unique count regardless of grouping.
HTH