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

Display first 60 days only 1

Status
Not open for further replies.

buckslor

IS-IT--Management
Sep 6, 2011
11
0
0
US
Hi All

I'm trying to display all orders for the first 60 days only, for each customer. For example

Customer A started ordering in June 7th, 2010
Customer B started ordering in November 4th, 2010
Customer C started ordering in July 18th, 2011

How can I have crystal display only data while suppressing the rest of the orders since for

Customer A (June 7 - July 7, 2010)
Customer B (November 4 - December 4, 2010)
Customer C (July 18 - August 18, 2011)

Any help in the right direction would be greatly appreciated.

Regards

 
Hi buckslor

If you only want the report to include orders in the first 60 days, you could add the following to your record selection:

Code:
{OrderDate} <= {CustomerCommencementDate} + 60

Replace {OrderDate} and {CustomerCommencementDate} with the appropriate fields from your database.

If you need the report to include all orders, but only display those in the first 60 days, you could use conditional suppression to suppress those orders where:

Code:
{OrderDate} > {CustomerCommencementDate} + 60

Hope this helps.

Cheers
Pete.
 
Assuming you do not have a customer commencement date just a first order date

Group by customer, eg CustomerID

In details go to section suppression and enter formula

OrderDate > Minimum(orderdate, customerID)-60

You can also do this in Group suppression but the result is the same.

This will suppress details of orders over that date for each customer. If you want to do summaries of data you will need to use Running Totals with a reverse evalation condition. When data is suppressed it is still there so if you use ordinary summaries they will be included in totals etc.

Ian
 
{OrderDate} <= {CustomerCommencementDate} + 60

Worked out great. Thanks Pete.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top