Solved

crystal reports sum() with no grouping

Posted on 2013-05-15
2
326 Views
Last Modified: 2013-05-16
Hi

I am producing a report in crystal reports for VS 2010

The report is listing a number of items, each categorised but not grouped.

I have 3 categories to make a sum of the units in each... so I have tried something like this

example:

nuts 3
bolts 10
nuts 3
washers 8
nuts 4
bolts 5
washers 3

Totals:
nuts: 10
bolts: 15
washers: 11



Local NumberVar tot;
if {Command.group} = 0 Then
    tot := tot + {Command.units};

tot

Open in new window


but this isn't working as expected... how can I achieve the results I need?
0
Comment
Question by:cycledude
  • 2
2 Comments
 

Accepted Solution

by:
cycledude earned 0 total points
ID: 39170570
I got this working now...

I used 'running total fields' and put a formula in there like

{command.group} = 0
{command.group} = 1
{command.group} = 2


so I have a field per category and they are calculating the sums correctly now.

Happy days

;o)
0
 

Author Closing Comment

by:cycledude
ID: 39170571
for future reference
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question