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

Problem with SUM

Status
Not open for further replies.

ddrafts

IS-IT--Management
Dec 26, 2002
119
0
0
US
I’m really new at this. I’m using cr10. I’m trying to sum a field but it is not returning the correct amount. Here is what I’m using.

//@EscN
If {Incident.Escalation} = "No" then 1

//@EscNsum
Sum ({@EscN})

//@EscY
If {Incident.Escalation} = "Yes" then 1

//@EscNsum
Sum ({@EscY})

They should show EscN = 228 but comes up as 222 and EscY = 51 but should be 50. I’m really not sure what is wrong. Any help would be great.

Thanks
Doug
 
You might try:

If trim({Incident.Escalation}) = "Yes" then
1
else
0

If that fails, are you certain that some aren't mispelled or there's a case sensitivity?

Check it by grouping on the Escalation field and suppressing the details, you should see allof the possibilities in the field, which may be numerous, somewith spaces and a word, just spaces, nulls...

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top