|
WebFOCUS
Techniques

Create
a Subfoot
When creating
a report, you sometimes want to include totals at the end of the report
that count certain characters. Examples would be the number of students
accepted for admission, different types of aid received, number of students
enrolled by campus, etc. The following exercise using the SPRIDEN table
will illustrate how to do a subfoot.
- Create
Your Report
- Open
a new report in Report Assist
- Choose
the SPRIDEN table
- Select
the following sort fields
-
SPRIDEN_LAST_NAME
-
SPRIDEN_FIRST_NAME
-
SPRIDEN_ID

- Create
Define Fields to Get Counts (If you want the fields to line up easily,
you should define your fields with the same format. I'm using I5 for
this exercise).
- Click
on the COMPUTE tab
- Click
New Define
- Create
the DEFINE fields as follows and click OK:
STUDENTS

The technique
for STUDENTS is used to get a unique count of the number of students
on the table.
|
SPRIDEN
LAST NAME
|
SPRIDEN
FIRST NAME
|
SPRIDEN
ID
|
SPRADDR
ATYP CODE
|
STUDENTS
|
| Bolser |
John |
+00197835
|
K1
|
1.
|
| Bolser |
John |
+00197835
|
MA
|
0.
|
| Bolser |
Joseph |
+00238787
|
MA
|
1.
|
| Bolser |
Judith |
+00192307
|
K1
|
1.
|
| Bolser |
Judith |
+00192307
|
MA
|
0.
|
FIRST

FULLNAME

SHORTNAME

- Choose
Your Column Fields
- Click
the Fields tab
- Choose
the SUM tab
- Click
on the fields SHORTNAME, STUDENTS, FIRST (in that order)
as your column fields.
- Eliminate
the Appearance of Sort Fields on the Report
- Click
on FIELD OPTIONS button
- Highlight
SPRIDEN_LAST_NAME and uncheck the Visible indicator
- Highlight
SPRIDEN_FIRST_NAME and uncheck the Visible indicator
- Click
OK
- Create
Where Statements
- Click
the WHERE tab
- Click
New by Existing Where statements
- Create
the WHERE statements as follows and click OK:
SPRIDEN_CHANGE_IND

SPRIDEN_LAST_NAME

- Choose
Options
- Choose
PDF in Display Format
- Submit
the program to see that you are reporting the fields correctly.
- Create
Define Field to Do Subfoot (This can be any alpha field you wish).
- Click
on the COMPUTE tab
- Click
New Define
- Create
the DEFINE field as follows and click OK

This technique
is used to create a sort field upon which the whole table can be totaled.
Unlike specific fields (example: SRIDEN_LAST_NAME) which would put a
subfoot total after each SPRIDEN_LAST_NAME.
- Make
Previous Define Field a Sort Field
- Click
FIELDS tab
- Choose
SORT tab
- Click
on field TABSUB
- Click
on arrow in FIELDS box to move this field to your first SORT
field
- 9. Eliminate
the Appearance of Columns Fields on the Report
- Click
the FIELD OPTIONS button
- Highlight
STUDENTS - uncheck the Visible box
- Highlight
FIRST - uncheck the Visible Box
- Highlight
TABSUB - uncheck the Visible Box
- 10. Go
To Subfoot Tab
- Click
the right arrow next to the RECOMPUTE tab. The SUBFOOT
tab will appear. Click on the SUBFOOT tab.
- In
the open box type the titles for the fields you want to subfoot.
If you want your totals in a certain column you would do the following
(50 indicating the column number):
NUMBER OF STUDENTS <50<TOT.STUDENTS
NUMBER WITH FIRST NAME OF Kristin or Ralph <50<TOT.FIRST
- If
you want to show a line and leave some space between the line and
your subfoot information you can draw a line and space twice before
the titles of your subfoot information as follows: Then click OK.

- Heading
- Click
HEANDINS tab
- In
the open box type
TECHNIQUE FOR SUBFOOT WITHOUT COUNTER FIELDS SHOWING </2
- Save
your program then Submit your program (see Show
Only Totals?)

MCIS Documentation and Information page at Miami
University
|