Solved

How to group based on a calcualted range / running total

Posted on 2011-02-28
7
326 Views
Last Modified: 2012-05-11
I have to calculate a donor's frequency for the year. The frequency is not stored in the db so I have to create a running total which populatedthe freq # once the report is generated. Now where I'm having problem is trying to calculate how many donors fall under a certain range of frequency

A-2
B-1
C-3
D-1
E-1

basically it be
Freq 1 = 3 donor
Fre 2 =1 donor
Fre 3 = 1 Donor
0
Comment
Question by:analliah
[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
7 Comments
 
LVL 17

Expert Comment

by:pssandhu
ID: 35000389
Lets assume the name of the formula that is calculating the frequency is called FRQ. Now follow these steps to create a group:

1. Create a new formula called Donors type this code:
    Whileprintingrecords;
   
     Split({@FRQ},"-")[2]

2. Place the formula right beside the FRQ formula.
3. Right click on the new formula, Donors, choose Format Field and go under the Common Tab.
4. Check the Suppress selection to hide the formula.
5. Click okay.
6. Then click on the "Insert" menu on the top and select Group.
7. Select the Donors formula as the group by field
8. Done

Hope this helps.

P.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 35000475
You can't group on running totals or print time formulas

You can try this idea

Group by donor
Add a summary which is a count showing how many records for that donor
You can then sort the donor groups on that formula

mlmcc
0
 
LVL 5

Author Comment

by:analliah
ID: 35000489
the formula is not an options to group by. my FRQ formula is actually a running total and it's placed under GF1.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 5

Author Comment

by:analliah
ID: 35000545
@mlmcc

I kinda figured that was the problem. My work around is to export the data to access and create another report to read the export data again which allows me to do the grouping ( not user friendly) . And If the rpt is small I use nested select statement  to give me the summary

Any suggestion what else I could do.

 
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35000724
Did you try my idea on grouping by donor then sorting by the summary field?

You could use formulas and track how many of each number then print at the end.

If all you want is the summary then you can do it with formulas and don't put any fields on the report.

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35275379
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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