Skip to main content
The Calculate Sum rule calculates the sum of several field values and writes it to a specified field. For example, if a document has salary, bonus, and other amount fields, you can calculate their sum and write the result to another field. You can also use this rule to sum the values in a table column. Create the rule in the Document Definition properties or the section properties, and clear the At least two non-empty objects required option.
1

Open the properties dialog box

Right-click the field and select Properties, or open the Document Definition properties (in the Document Definition editor, select Document Definition → Document Definition Properties).
2

Create a new rule

On the Rules tab, click New Rule. Select Calculate Sum and click OK.
3

Set the common rule options

Type a Name, set the conditions for applying the rule and any Tags as needed, and click Next. For the full list of common rule options, see Set up rules.
4

Add the fields to sum

Click Add to add the fields to the Summarize values of fields list.
5

Choose the result field

In the Result field box, click Select and choose the field to hold the sum.
6

Set the summand requirement

Select At least two non-empty objects required if at least two non-empty, non-zero summands must be used; otherwise an error appears during the rule check.
When this option is on, add at least two document fields (or two table columns). If you sum all the cells of a single table column, leave it off.
7

Finish

Click Finish. The rule name appears on the Rules tab.