Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*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.

Students Click Here


Crystal 2011 - running total of a formula

Crystal 2011 - running total of a formula

Crystal 2011 - running total of a formula

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.


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)


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.

Reply To This Thread

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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close