Counting specific items in a grouped field

I am working on a report that will show results by account.  I have grouped the report by account.  I am trying to show how many positive and negative results were reported for each account and their percentage rate.  I have tried several  different formulas and methods to get this and keep coming up against a brick wall.  Any suggestions.........
Maureen KellyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Try this

Create 2 formulas

Name - IsPositive
If {YourField} > 0 then
    1
Else
    0

Name - IsNegative
If {YourField} < 0 then
    1
Else
    0


You can then summarize these as sums and do the calculations

Sum({IsPositive}) / Count({YourField})

Sum({IsNegative}) / Count({YourField})

mlmcc
James0628Commented:
One small, and perhaps obvious, thing, but if you want to include 0 in the positive results, change the first test to >= 0.

 And if you're looking for the counts and percents for each account (instead of the entire report), add the group field to each summary function.  For example:

Sum ({@IsPositive}, {account group field}) / Count ({YourField}, {account group field})

 James

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
James0628Commented:
Most of the points should have gone to mlmcc.  I only posted a couple of alterations to his suggestion.  You can use the "Request Attention" link under your post to ask to have the question re-opened, and then split the points between us.

 James
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.