Problem to calculate formula

• August 29th, 2013, 11:44 AM
Fabiano2016
Problem to calculate formula
Hello

Good afternoon.

I'm having problems with formulas in crystal'm new to the program, I have to create a formula that has to sum ​​the values​​.

I created a formula to sum​​.
1
1
3
1
1
1
2
3
1
2

total = 16

more is not the correct value for the report is that the sum certain.

1
1
3
1
1
1
2
3
1
2

total = 10
it not only sums the values ​​that two or more.

version of Crystal Reports XI
• August 29th, 2013, 02:09 PM
jggtz
Re: Problem to calculate formula
It seems to me that you are using "Count" instead of "Sum"
Are you using RunningTotal field or a Formula field?
If it is a formula then post the code and say in which section you placed it
• August 30th, 2013, 07:59 AM
Fabiano2016
Re: Problem to calculate formula
Quote:

Originally Posted by jggtz
It seems to me that you are using "Count" instead of "Sum"
Are you using RunningTotal field or a Formula field?
If it is a formula then post the code and say in which section you placed it

Hello

good day
I'm using a field forluma, section I put in Group footer # 3.

I made two formulas to find the value;

1st
Numbervar i;

2nd
numberVar i: = 0;

then i: = i +1

The second that I'm using.
• August 30th, 2013, 09:22 AM
jggtz
Re: Problem to calculate formula
In first formula you are storing the Sum of field FALTAS in variable i
In second formula you are initializing the variable i and then storing the Count of field FALTAS
It's not clear enough

What are you trying to achieve?
Count each time there are FALTAS or SUM the FALTAS?
• August 30th, 2013, 10:29 AM
Fabiano2016
Re: Problem to calculate formula
is to account for the lack of formula. the amount of foul.
• August 30th, 2013, 10:33 AM
Fabiano2016
Re: Problem to calculate formula
Quote:

Originally Posted by Fabiano2016
is to account for the lack of formula. the amount of foul.

is to account for the lack of formula. the amount of foul.
• September 3rd, 2013, 06:58 AM
Fabiano2016
Re: Problem to calculate formula
Quote:

Originally Posted by Fabiano2016
is to account for the lack of formula. the amount of foul.

Can anyone help me.