Solved

crystal reports sum() with no grouping

Posted on 2013-05-15
2
325 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now