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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of Group occurrences

Status
Not open for further replies.

rajasan77

Programmer
Jan 12, 2010
30
US
Hi Need to find out the number of group occurrences.
I have two groups. I need to find out the number of occurrences of the second group for each first group.

Example:
GH1 : Dept1
GH2 : Emp1
GH2 : Emp2
GH2 : Emp3

Now, I should get 3 becuse i have 3 employees under dept1.
The dept1 would have any number of employees.

Please help.

 
distinctcount({table.employee},{table.department})

Or right click on the employee field (where it is located in the detail sectioni) and insert a distinctcount at the group level.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top