Calculated Attribute Recommendations

This is one of the data gathering methodologies and recommendations for base setup improvement. The full list is defined in the Base Setup Recommendations topic here.

Note: These recommendations are valid for systems without In-Memory. The performance costs are different with In-Memory. For more information, see the In-Memory Database Component for STEP section of the Resource Materials in online help here.

Calculated attributes are a special type of attributes whose values are not written in the database, but are calculated on the fly. Calculated values are dynamic based on the context, version, product selected in the GUI or included in the export. Calculated values are generated when clicking on the object in GUI or when exported and are not stored in the database. The foundation for a calculated attribute is a functional programming language very similar to the language used for defining functions in Excel.

Note: Change Flags for events require that data is present in the database. Since calculated attribute values are not stored, no change flags are generated. For more information, see the Limitations and Exceptions section of the Core Events topic in the System Setup / Super User Guide documentation here.

For assistance in determining if a calculated attribute is the most efficient way to meet your requirements, see the Calculated Attribute Considerations and Limitations topic in the Calculated Attributes section of the System Setup / Super User Guide documentation here.

The value of a calculated attribute is determined by a value template which can be written in the Function Editor. Many functions can include an argument, which specifies the STEP data to be accessed. Functions can access information from references, compare data between objects, round numbers, modify text, and many other options. For a step-by-step guide to creating a calculated attribute, see the Creating a Calculated Attribute topic in the Calculated Attributes section of the System Setup / Super User Guide documentation here.

As an example, the following functions and arguments are included in the workbench image below:

For additional use cases for calculated attributes, see the Calculated Attribute Use Cases topic here.

In Web UI, calculated attributes can be identified and their values can be overridden on the Attribute Management screen as described in the Calculated Attributes in Web UI section of the Web User Interfaces documentation here.

Considerations and Limitations

Generally, business actions are preferred to calculated attributes with the understanding that the value is not always up-to-date, typically immediately following approval.

While calculated attributes provide a lot of flexibility, they also have a direct impact on downstream deliveries. Additionally, calculated attributes can degrade performance as defined below.

Recommendations

Review calculated attributes by exporting all attributes as Excel or CSV and filter on 'Attribute Calculated'. Add the identified calculated attributes to a collection and export the collection as STEPXML to evaluate the value templates for the following elements.