Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Questions on the Running Total Fields of CR11 Post Reply Post New Topic
Author Message
hshi
Newbie
Newbie


Joined: 12 Aug 2007
Location: Canada
Online Status: Offline
Posts: 1
Quote hshi Replybullet Topic: Questions on the Running Total Fields of CR11
    Posted: 12 Aug 2007 at 9:02am
Hi there:
I'd like to make a report which can reflect the number of students
from each state and category. On the report field part, I want
a summary of these numbers. It is easy to use Running total fields to
summarize each category and state but how to summarize on the
Report footer field?

Thanks in advance.

Hui

p.s. Below is the draft I'd like to have


States   Category

AB         New Students

        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX

        New students from AB is 3

AB         Returning Students

        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX

        Returning Students from AB is 6  

        Students from AB is 9



BC     New Students

        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX

        New students from BC is 9

BC    Returning Students

        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXXXXXXX
      
        Returning Students from BC is 5

Students from BC is 14



In the RF field:

Students from AB: 9
New Students: 3
Returning Students: 6

Students from BC: 14
New students: 9
Returning students: 5
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 14 Aug 2007 at 5:58pm

The easiest way I can think of to do this would be to set up a sub-report that has exactly the same data and parameters as your main report with the group by State (but not by student type).  Then create a couple of formulas like this:

New Students
If {student.category} = 'New' then 1 else 0
 
Returning Students
If {student.category} = 'Returning' then 1 else 0
 
You'll then place three summaries (Insert menu, select "Summary") in the State group footer in the subreport:
 
Students from <state>: Count {student.studentID} for group 1.
New Students: Sum {@New Students} for group 1.
Returning Students: Sum {@Returning Students} for group 1.
 
This sub report would go in the Report Footer section of the main report.
 
-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.