Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Summing between a range of dates 1

Status
Not open for further replies.

Kivairu

MIS
Mar 18, 2009
106
KE
Iam trying to sum data between a range of parameters but the sum is coming to a zero.Please help
 
Please post your formula.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP [yinyang]
 
here's the formula

if@date<?todate and@date>?fromdate then sum GLAMOUNT
 
are you using your parameters anywhere else? Like in the record selection formula?

_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection

 
You should be creating a formula like this, to be placed in the detail section:

if {@date} < {?todate} and
{@date} > {?fromdate} then
{table.GLAMOUNT}

Then right click on this formula and insert a summary (sum) at a group and/or grand total level.

-LB
 
Do you have some other use for records outside the date range? If not, it would be more efficient to put the range check in record selection.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP [yinyang]
 
Now am able to sum in the date range.Iam wondering how I can make the closing balance of one period to be the opening balance of the next period.
 
You should really start a new thread for a new topic. But if you created a running total with a formula based on dates, you could use it in several places, just so long as all of the relevant records have been printed.

The use of Crystal's automated totals is outlined at FAQ767-6524.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top