Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross Tab with Percents

Status
Not open for further replies.

cnice9

IS-IT--Management
Apr 29, 2003
20
0
0
US
I have created a grade distribution report in CR 9 that is intended to show the number of different grades given by a teacher, by their course and section. The report works fine but I need to be able to show percents as well as the totals in the cross tab report that I have inserted.
What I have so far is:

Report header - suppressed

Page Header – Displays header and parameter choices

Group header – (Grouped on Teacher)
Details – Suppressed

Group Footer – (grouped on Teacher) cross tap report
Columns – table. columndesc
Rows – table.coursetitle
Table.coursesection
Summarized fields – column totals (this is a running total that counts the grades)

This works fine and returns the following:

Teacher – J. Jones
A’s B’s C’s Total
English 1A Section 1200 2 4 2 8
Total 2 4 2 8
Total 2 4 2 8

What I need Is the report to look like the following:

Teacher – J. Jones
A’s B’s C’s Total
English 1A Section 1200 2 4 2 8
Total 2 4 2 8
Percents 25% 50% 25% 100%

Thank you in advance and any assistance is greatly appreciated.


C.Nice
RealTime Information Technology Inc.
 
I believe you can create a formula for a crosstab report,
then place it where you want the result.
 
I've done something similar but put the totals in the group footer instead of using a cross tab.

A formula like Sum ({@f_A_grades}, {course}) * 100 / Sum ({@f_total_grades}, {course}) should calculate the percentage of A grades.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top