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

Selection Formula

Status
Not open for further replies.

Dov2

Technical User
Nov 13, 2002
3
US
Hi,
I have this structure:

Company 1
Company 2 - Departament 1
Departament 2 - Employee 1
Employee 2
....

How can I create a formula to count all departments.

Thank you

Dov2
 
If you have grouped your report as shown then you could add a running total to count on change of department. This would work only if the Departments where different in each company.
 
You could do a distinct count of the department name or the departmetn ID. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
The distinct count is good if I have a single field key , but how can I do it if I have multiple fields primary key in Departments Table?

Thank you.
Dov2
 
Combine them into one field (concatenate if they are strings), and do a distinct count of the formula. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top