×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

TWO SUMMARY LINES

TWO SUMMARY LINES

TWO SUMMARY LINES

(OP)
hello, I need urgent help. The issue is I try to create two summary lines for the columns:

one for totals (ON TABLE COLUMN-TOTAL)
second one for average calculation of the columns (I am trying ON TABLE SUMMARIZE AVE. columnname).

the report only shows 1 summary line always - the last one. Any suugestions?

RE: TWO SUMMARY LINES

(OP)
in addition to my post, this is how the report should read:

              Date
              Score
StudentName   1/1/05   2/1/05  etc.
Alex           10        9
Brian           9       10
David           5        5
Mike            8       10
______________________________
Team Total:    32       34
Team Average:   8        8.5

StudentName is a sort field. Date is across field.

RE: TWO SUMMARY LINES

Well, I'm not surprised that SUMMARIZE and COLUMN-TOTAL are mutually exclusive, as both specify what to do at the end of a report. However, you CAN get what you want with a bit of creativity. If we DEFINE a field to be a constant, and use that as the MAJOR sort field, then we have TWO different fields on which to specify an action. The code looks something like this:

CODE

DEFINE FILE CAR
A/A1=' ';
END
TABLE FILE CAR
SUM SEATS
BY A NOPRINT
BY COUNTRY
ACROSS BODYTYPE
ON A SUMMARIZE   AVE. AS 'AVERAGE'
ON TABLE COLUMN-TOTAL AS 'TOTAL'
END

Since the constant 'A' only changes at the beginning and end of the report, we get both operations on the entire report.

RE: TWO SUMMARY LINES

(OP)
great! Thanks, focwizard. it works.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close