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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

one month sales

Status
Not open for further replies.

kris0517

Vendor
May 13, 2003
6
IN
how do i get gross sales for june 1, 2002 to june 30, 2002?
 
Your question leaves a lot to the imagination, but assumming you are querying a transaction table, write a formula something like this:

If {SalesDate} in date(2002,6,1) to date(2002,6,30) then {SalesAmont} else 0

Then sum this formula field as desired.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
dgilsdorf@trianglepartners.com
 
In Crystal 8.5, do a Running Total, setting a formula to select between these dates. i.e.
>= date(2002, 6, 1) and <= date(2002, 6, 30)

Madawc Williams
East Anglia
Great Britain
 
I'm assuming you have a Sales table somewhere in your database with each Sale Value and the Date it was sold.

Create two parameter fields:
preDate
postDate
(you could get away with just one, but this will allow for more flexibility)

In your Record Selection put this:

({DBDateField} >= {@preDate})
AND
({DBDateField} <= {@postDate})

Now just do an Insert/Running Total Fields and use your Sale Value as the Summary Field and Select Sum as the Type of Summary.

This value will be your Gross Sales.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top