Hi,
I am using Crystal XI, on a SQL database.
Example of the problem I am having is as follows:
Company A
Col1
-----
10
20
30
---
SubTotal: 60
Company B
Col1
-----
15
25
10
---
SubTotal: 50
Col1 is calculated using a formula that uses the 'sum' function. So in order to calculate the subtotal of this column, for each company I created the following formula :
WhilePrintingrecords;
NumberVar SubTot;
SubTot := SubTot + @Col1 //function col1
I placed this formula in the Company GroupFooter section, but with incorrect results.
What do I need to do in order for to calculate the subtotal correctly, for each company.
Thanks for you help,
Sumi.
I am using Crystal XI, on a SQL database.
Example of the problem I am having is as follows:
Company A
Col1
-----
10
20
30
---
SubTotal: 60
Company B
Col1
-----
15
25
10
---
SubTotal: 50
Col1 is calculated using a formula that uses the 'sum' function. So in order to calculate the subtotal of this column, for each company I created the following formula :
WhilePrintingrecords;
NumberVar SubTot;
SubTot := SubTot + @Col1 //function col1
I placed this formula in the Company GroupFooter section, but with incorrect results.
What do I need to do in order for to calculate the subtotal correctly, for each company.
Thanks for you help,
Sumi.