Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting Unique Records in a report

Status
Not open for further replies.

sirmanson

Programmer
Nov 6, 2001
12
US
I have a report that groups employees by their supervisors. Each of these groups has some totals that need to be multiplied by the number of employees in this specific group. If I use the COUNT function it shows the total number of records (136) instead of (6).

I tried modifying the column to be CountDistinct but it turns blank when I do this. Any ideas?
Thanks,
Aaron
 
Sort data by Supervisor and Staff member.
Create computed column "computed1", concat (supervisor, staff member)
Create computed column "computed2", if (computed1 != next(computed1)) {1} else {0}
then do your sums on computed2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top