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!

Version 10: Changing the output of a count?

Status
Not open for further replies.

TheElephantMan

Programmer
Jun 18, 2004
42
US
Hello, all.

I have a very simple report with a group that lists employees and the technologies they are familiar with:

Fred
Java
C
Jake
SQL
Visio
Jonas
None

When I use the insert summary option to display a count of each skill, those employees with a skill listing of "None" show a count of 1. I'd like the summary field to output a 0 when the contents of the skill field are "None".

I've created a custom formula count field, but it either displays a zero or a count of all the skills in the database, not just for each employee.

Some help would be appreciated.

Thanks in advance,
TEM
 
Just have the employees with no skills fired. [smile]

Or

Create a formula in the detail section that checks each record and returns a 1 if true, then sum on that formula.

if {Employee.Skill} <> "None" then 1

If there is only ever one record, you could put this in the group header - I'm not a CR expert (this is an Crystal Enterprise Forum) so there maybe better ways - Try posting on Crystal Reports Formulas (shouldn't that be formulae?)

Kingfisher
 
Of course I mean if you can put the formula in the GH / GF it would be a count of the group.

if {Employee.Skill} <> "None" Then
Count ({Employee.Skill}, {Employee.Name})

I think the former option is safer, but I'm sure someone will give you the definitive answer.

Kingfisher
 
Kingfisher,

Thanks for the tip, I'll give it a shot. Sorry about the wrong forum; shows how much I know about Crystal, myself. :)

Thanks,
TEM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top