Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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