May 19, 2003 #1 kris0517 Vendor May 13, 2003 6 IN how do i get gross sales for june 1, 2002 to june 30, 2002?
May 19, 2003 #2 dgillz Instructor Mar 2, 2001 10,038 US 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 http://www.trianglepartners.comdgilsdorf@trianglepartners.com Upvote 0 Downvote
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 http://www.trianglepartners.comdgilsdorf@trianglepartners.com
May 19, 2003 #3 Madawc Programmer Sep 5, 2002 7,628 GB 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 Upvote 0 Downvote
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
May 19, 2003 #4 putts Programmer Dec 13, 2002 93 US 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. Upvote 0 Downvote
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.