Solved

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

Posted on 2011-09-07
5
217 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
[X]
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
  • 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Title # Comments Views Activity
Crystal Reports Format Field with Dashes 6 59
Pull date to Group header 6 34
Crystal Reports Version 7 4 39
How to modify the SQL query in Crystal 2016 1 39
Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 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