Using Calculated Fields
You can use the global edit feature to place the contents of a calculated field into a user defined field where it is accessible to third-party applications.
An expression defining a calculated field can include the following elements:
|
Expression |
Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Constants |
You can include text, date, numeric, and logical constants in a calculated field or global edit according to the following guidelines:
| ||||||||||||||||||||||||
|
Other calculated fields |
Expressions defining calculated fields can include references to previously defined calculated fields. Note: A calculated field cannot include a reference to itself.
| ||||||||||||||||||||||||
|
Mathematical operators |
You can include the following mathematical operators in a calculated field or global edit expression:
Expressions containing mathematical operators are evaluated according to the normal rules of precedence:
| ||||||||||||||||||||||||
|
Logical operators |
You can include the following logical operators in a calculated field or global edit expression:
| ||||||||||||||||||||||||
|
Duration operators |
You can include the following duration operators in a calculated field or global edit expression:
| ||||||||||||||||||||||||
| Duration – Duration | Duration | ||||||||||||||||||||||||
| Date – Date | Duration | ||||||||||||||||||||||||
| Date – Duration | Date |
- Divide (/)
<table>
- Multiply (\*)
<table>
Expression Result
Field names
When including a field in an expression for a calculated field or global edit, you must enter the name of the field and not the descriptive name that is displayed in spreadsheet column headings. For example, if you want to define a calculated field expression that references the field containing early start dates, you must identify the field as ESDATE, not Early Start.
Functions
Calculated field and global edit expressions can contain a number of functions. For more information, refer to the topic "Using the Functions Dialog Box."
Relational operators
Expressions for calculated fields or global edits can include the following relational operators:
- Equal to (=)
- Not equal to (<>)
- Greater than (>)
- Greater than or equal to (>=)
- Less than (<)
- Less than or equal to (<=)
- Contained in ($)
Character operators
You can include the following character operators in a calculated field or global edit expression:
- Concatenate(+)
<table>
Sample Usage Result
- Contains in ($)
<table>
Sample Usage Result
Project Level Variables
You can instruct Open Plan to use project-level data from the current project or external subproject by specifying _proj. or _subp. as a prefix to the field.
For example:
- _proj.manager_email_address returns the email address of the project manager to the calculated field or global edit
- _subp.project_name returns the name of the subproject to the calculated field or global edit
In addition, an expression defining a calculated field can also include the special operators used in filters.
To display a list of available calculated fields, click the Calculated Fields command on the Tools tab to display the Calculate Fields dialog box.
If you hover your mouse cursor over a calculated field, Open Plan displays the definition of that calculated field as a tool tip.
Related Topics
- Calculated Fields Dialog Box
- New Calculated Field Dialog Box
- Calculated Field Expression Dialog Box
- Functions Dialog Box
Related Procedures
- Filter Data on a Calculated Field
- Sort Data on a Calculated Field
- Create a New Calculated Field
- Copy a Calculated Field
- Edit a Calculated Field
- Delete a Calculated Field
- Delete a Calculated Field on which a Temporary Calculated Field is Based