Solved

# Need Help with Sum(fld, condFld, cond)

Posted on 2004-08-18
3,457 Views
Hi,

I'm pretty new with CR8.5 put I still know a little bit how to use it...

I have a list of Donors and a list of Pledges.

1 Donor can have many pledges.

Here's how my DB looks like :

DONOR       TYPE          CODE         AMOUNT
Donor1       Pledge        Verbal         1000
Donor1       Pledge        PG               5000
Donor1       Pledge        Verbal         2000
Donor1       Pledge                          4000
Donor2       Pledge        Verbal         3000
Donor3       Pledge                          1000
Donor3       Pledge                          2000
...

I would like to have a formula that would add the amounts depending of the Code for each donors.

I'm trying to do a formula that would SUM the amount of all the pledges with the same codes for each donors....
Regular Pledges have no codes.

So my result should look like :

Donor1      TotalVerbal        TotalPG       TotalRegular
Donor2      TotalVerbal        TotalPG       TotalRegular
Donor3      TotalVerbal        TotalPG       TotalRegular

Can anybody help me ???
0
Question by:LosJee
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 10

Accepted Solution

ebolek earned 300 total points
ID: 11831208
ok you use grouping for these

insert 2 groups : First is donor, second is code

Then put running totals on the amounts for the both group footers
On chnage of for donor group is donor
summary
reset at the chnage of group

Also put another running  total on the code group footer as well. Same logic. you will egt the totals for each donor and each code

0

LVL 42

Assisted Solution

frodoman earned 50 total points
ID: 11831230
I agree with Emre.  Create your two groups as he says.  I would create the running totals and drag them into the Group #1 header and then suppress everything related to group #2 -- this will give you the display you want (single row for each donor).

frodoman
0

LVL 28

Assisted Solution

bdreed35 earned 150 total points
ID: 11832860
You can only use that version of the sum function when you are grouping on a date or a boolean field.

Another option that I tend to use more often than Running Totals is a simple formula to evaluate for each record:

Else
0

You can then insert a summary off of this formula for your Donor grouping.  I like this method because I can easily put a grand total in without having to create formula.  WIth Running Totals you would need to create a seperate Running Total for each subtotal and grand total.
0

Author Comment

ID: 11834652
Thank you all !

My problem was a way more complicated than explained but with your help, I was able to do this with groups but also, with some formula fields...

Thanks again !

U guys are the best !!!!!
0

LVL 10

Expert Comment

ID: 11834659
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

"A string is required here" error in Formula 7 70
Rounding duration within 20 min intervals 3 54
Crystal image Object type? 7 55
Summing a Function variable 5 44
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
###### Suggested Courses
Course of the Month4 days, 19 hours left to enroll