Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Defining summary statistics – PB Docs 125 – PowerBuilder Library

Defining summary statistics – PB Docs 125

Defining summary statistics

When you generate a crosstab, the columns and rows are automatically
totaled for you. You can include other statistical summaries in
crosstabs as well. To do that, you place computed fields in the
workspace.

proc.png To define a column summary:

  1. Enlarge the summary band to make room for
    the summaries.

  2. Select Insert>Control>Computed
    Field from the menu bar.

  3. Click the cell in the summary band where you want
    the summary to display.

    The Modify Expression dialog box displays.

  4. Define the computed field.

    For example, if you want the average value for a column, specify avg(units
    for all)
    , where units is
    the column providing the values in the crosstab.

For example, this is a crosstab that has been enhanced to
show averages and maximum values for each column. This is the Design
view:

cros23.gif

This is the crosstab at runtime:

cros24.gif

proc.png To define a row summary:

  1. Select Insert>Control>Computed
    Field from the menu bar.

  2. Click the empty cell to the right of the last
    column in the detail band.

    The Modify Expression dialog box displays.

  3. Define the computed field. You should use one
    of the crosstab functions, described next.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x