×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Crystal 2011 - running total of a formula

 Forum Search FAQs Links MVPs

## Crystal 2011 - running total of a formula

(OP)
I have a formula to calculate sales by department based on each job. I need to be able to summarize the department totals that I have calculated with a formula.

I have two groups by job then by department.

The department sales totals are a formula based on the percentage of sales total for each job. I want to add all calculated department sales into a total.

example:

job dept sales
10 10.00 for this job dept 10 is 20% of sales
20 30.00
30 10.00
123 50.00
10 10.00 for this job dept 10 is 13.33% of sales
20 45.00
30 20.00
234 75.00

Totals by job 125.00
Totals by dept
10 20.00 in total department 10 is 16% of sales
20 75.00
30 30.00

### RE: Crystal 2011 - running total of a formula

This is never easy and requires a bit of a compromise.

You need to define how many depts in advance and then create a formula for each Dept

@dept10 sales
If JobDept = 10 then sales else 0

You can then sum each of these in report footer and then have a GT Dept Formula

@Dept10 GT%
Sum(@Dept10 Sales)%Sum(sales)

Ian

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

#### Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!