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

Data Summarization with multiple date fields...

Status
Not open for further replies.

Scottpuck

Technical User
May 2, 2002
5
US
Hello everyone... I have a question that I really should be able to figure out, but have not been able to as of yet. I am attempting to create a report that summarizes the number of tasks that have been submitted and completed for a date range. All "tasks" have a unique ID, and are tracked by two seperate fields in different tables (date submitted, date completed). Essentially what I am attempting to do is display in columns, the number of tasks that have been submitted, and the number of tasks that have been completed for the date range. I have no problem summarizing one or the other, but when I attempt to combine them both on the same report I am unsuccessful. Would anyone have any suggestions on how to do this???
 
First you need a selection formula that includes all records that either started OR ended in the range:

( {SubmitDate} in {?start} to {?end} OR
{CompleteDate} in {?start} to {?end} )

Then you need two formulas for counting like:

if {SubmitDate} in {?start} to {?end} then 1 else 0

Then do totals of these two columns.
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top