Totaling fields

Concept Information

TOTAL command

You can total numeric fields or expressions in the active table. Totaling finds the arithmetic sum of one or more numeric fields, and is typically used to prove the completeness and accuracy of the data, and to produce control totals. The results are displayed in the Analytics display area.

Tip

Some character fields, such as invoice numbers, may contain numbers. To total this type of data, create a computed field that uses the VALUE( ) function to convert character data to numeric data, and then total the computed field.

Steps

  1. Select Analyze > Total.
  2. On the Main tab, do one of the following:

    Select the field(s) to total from the Total Fields list.

    Click Total Fields to select the field(s), or to create an expression.

    The order in which you select the fields is the order in which the columns appear in the results.

  3. If there are records in the current view that you want to exclude from processing, enter a condition in the If text box, or click If to create an IF statement using the Expression Builder.

    Note

    The If condition is evaluated against only the records remaining in a table after any scope options have been applied (First, Next, While).

  4. Click the More tab.
  5. Select the appropriate option in the Scope panel:

    • All
    • First
    • Next
    • While
  6. Click OK.