Solved

How to group based on a calcualted range / running total

Posted on 2011-02-28
7
327 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 101

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
On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

 
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 101

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 101

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

729 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