Running total problem in Crystal Report 8 
Author Message
 Running total problem in Crystal Report 8

Hi,

my problem is that I get multiple lines for an ID and I want to know
the sum of a field for a givin category. Example:

ID   Category   nb_days
1    ADM        7
2    SFP        9
2    SFP        9
2    SFP        9
3    APR        4
4    ADM        3
4    ADM        3

It's a simplify version of my problem but I get multiple lines for an
ID so I make a group by and it work fine. But when I want to know the
total for a category, I get the wrong number (Example: SFP = 27). I
want to know the total for each category in the report footer section.

ADM = 10
SFP = 9
APR = 4

In the "evaluate" field of the running total I specify for example
"category = ADM" in the formula field and with that I get the wrong
value of 13. If I choose "On change of field" ID than I get the global
total for all ID. Is there a way to specify in a formula field to
calculate "on change of field" and for a givin category?



Tue, 24 May 2005 23:51:41 GMT  
 Running total problem in Crystal Report 8
I am wondering you are working with VB. Isn't it easier to be done with VB?
I mean, it to do the queries from VB instead of doing it from CR.
If so, I suggest you tu try Rpv Printing System, a new concept tool for
reports.
A freeware Rpv version is available, but Rpv PRO Trial.
If you want, I can send you a free of charge user manual and VB examples.
Visit http://www.rpvreport.com

Regards,

Tomas


Quote:
> Hi,

> my problem is that I get multiple lines for an ID and I want to know
> the sum of a field for a givin category. Example:

> ID   Category   nb_days
> 1    ADM        7
> 2    SFP        9
> 2    SFP        9
> 2    SFP        9
> 3    APR        4
> 4    ADM        3
> 4    ADM        3

> It's a simplify version of my problem but I get multiple lines for an
> ID so I make a group by and it work fine. But when I want to know the
> total for a category, I get the wrong number (Example: SFP = 27). I
> want to know the total for each category in the report footer section.

> ADM = 10
> SFP = 9
> APR = 4

> In the "evaluate" field of the running total I specify for example
> "category = ADM" in the formula field and with that I get the wrong
> value of 13. If I choose "On change of field" ID than I get the global
> total for all ID. Is there a way to specify in a formula field to
> calculate "on change of field" and for a givin category?



Wed, 25 May 2005 00:04:50 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Running Totals with Crystal Reports

2. Running Totals in Crystal Reports

3. Crystal report 7 variables in running Total field

4. Problem: Total fields in Crystal Reports

5. CRYSTAL REPORTS 6 (32bit) - Total Page Count Problem

6. Crystal Report 4.6 - Grand Total Problem???

7. How to take the page totals of a report in Crystal Report 5.0

8. Crystal Reports Run-time problem

9. Crystal Reports Run time Problems

10. Problem with Crystal Reports 8 run time setup

11. Total Page value in Crystal Report

12. Percent of Total in Crystal 4.5 Cross Tab Report

 

 
Powered by phpBB® Forum Software