Solved

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

Posted on 2011-09-07
5
211 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
A short film showing how OnPage and Connectwise integration works.

932 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

10 Experts available now in Live!

Get 1:1 Help Now