Running Totals in Crystal Reports

Here is a tip from the Flexible Solutions GP Reports October newsletter on how to create a running total in Crystal Reports. 

Running totals are a great way to show totals that have a different calculation than a subtotal without having to write additional formulas. 

Let’s look at an example: You have a list of unapplied vendor transactions grouped and subtotaled by vendor class. Below is an example of what this report looks like right now:

 

 

For each vendor class you already have a total due, but you also want to show the total credit limit so that you can compare the totals for each class. The credit limit is stored at the vendor level and because your report has more than one transaction per vendor, you cannot simply subtotal the credit limits for all the detail lines. Here are the steps to create a running total for the credit limit by vendor class:

  1. Add the Credit Limit field somewhere in your detail section
  2. Right click on the Credit Limit field and choose Insert > Running Total:
  3. Choose a name for the Running Total
  4. Change the Evaluate setting to ‘On change of field’ and enter the vendor ID field (in this case PM00200.VENDORID)
  5. Change the Reset setting to ‘On change of group’ and choose the vendor class group (Group #1: PM00200.VNDCLSID in this case):
  6. Click OK to close the Create Running Total Field window
  7. Go to Report > Record Sort Expert  and make sure that your details are sorted by the vendor class group, then by Vendor ID:
  8. Click OK to close the Record Sort Expert window
  9. Optionally, hide the Credit Limit field on the detail section by right clicking on it, choosing Format Field and checking Suppress on the Common tab:

Your report now has the credit limit totals per vendor class:

 

For more tips like this, sign up to receive GP Reports newsletters via e-mail. Or check out the newsletter archives on the Flexible Solutions website.

 

7 Responses to “Running Totals in Crystal Reports”

  1. Great stuff.. Victoria.

  2. Great instructions. Thanks.

  3. I bookmarked this link. Thank you for good job!
    victoriayudin.com – go to my favorites!!!

  4. Great Stuff Victoria! Thanks.

Trackbacks/Pingbacks

  1. Dynamics GP : Reporting (FRx, Management Reporter, Business Alerts, Crystal, Report Writer, Smartlist, Builder and SSRS) - About Dynamics, Development and Life - August 10, 2010

    [...] Reports, Adding watermarks to Crystal Reports, Alternating shading for lines in Crystal Reports , Running Totals in Crystal Reports, Suppressing blank lines in Crystal Reports and more. There are also posts by Mohammad Daoud on [...]

  2. Running Totals in Crystal Reports « Victoria Yudin Report Me - December 8, 2009

    [...] original post here: Running Totals in Crystal Reports « Victoria Yudin By admin | category: crystal report | tags: check-boxsuppress, crystal report, [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 486 other followers