Solved

trying to do a summary where there are more than one customer in a time period

Posted on 2011-09-07
5
210 Views
Last Modified: 2012-08-13
I want to count (and group) the number of customers that have visited more than once in the last two years..

the date range is in the selection criteria but I havent figured out how to summarize the visits > 1..
any ideas?
0
Comment
Question by:shockacon
  • 3
  • 2
5 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 36499849
DO you want to see the customers?
If so sorted into any particular order?

Try this
Add a group on the customer id
Put the customer id field in the details
Right click it
CLick INSERT --> SUMMARY
Set the summary as COUNT
Insert it in the group footer

If you want you can drag it to the group header

You can use the GROUP SELECT EXPERT to limit/filter the customers who visited 0 or 1 time.

Click GROUP --> SELECT --> GROUP
Choose the summary field from the field list
 Count({CustomerId},{CustomerId}) > 1

You can also use the group sort to sort on the summary field either ascending or descending

If you need a count of how many visited then use 3 formulas
In the report header add a formula
WhilePrintingRecords;
Global NumberVar CustomerCount;
""

In the group header
WhilePrintingRecords;
Global NumberVar CustomerCount;
If Count({CustomerId},{CustomerId}) > 1 then
    CustomerCount := CustomerCount + 1;
""

In the report footer
WhilePrintingRecords;
Global NumberVar CustomerCount;
CustomerCount

mlmcc
0
 

Author Comment

by:shockacon
ID: 36504133
no  I do not.

option 1 doesnt apply.
option 2 makes no sense
option 3 didnt work.

not being negative or rude here.. this is what I observed. :)

I want to count all the customers that visited more than once, how many of those customers there are, by customer group. make sense?
0
 

Author Comment

by:shockacon
ID: 36504136
no  I do not.

option 1 doesnt apply.
option 2 makes no sense
option 3 didnt work.

not being negative or rude here.. this is what I observed. :)

I want to count all the customers that visited more than once, how many of those customers there are, by customer group. make sense?
0
 

Author Comment

by:shockacon
ID: 36504341
crap.. strike that. the second option did work.. just took me a second to get it in the right group/count etc. fun fun. :)
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 36506186
Not sure what you are referring to as Options 1,2,3.

The whole set of formulas is needed.

mlmcc
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now