Within a calculation rule for calculation of a function attribute, you can limit the set of attribute values to be taken into account by specifying a condition relating to other attribute types for the same function (objectname="this"). To configure the condition, you need to use a Boolean operator as the root operator (see chapter Logical operators). The condition can be nested at any depth. If the condition check results in the value TRUE, the value of the attribute type for which the condition is defined is included in the subsequent calculation.
You can specify conditions for <attribute> and <filteredattribute>.
Example
From the set of values for the AT_HRMODUL function attribute, only those attribute type values of functions for which the AT_VORG_TYPE attribute type is also specified (objectname="this") with the value 019 are to be taken into account.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE keyindicatorconfig SYSTEM
'KeyindicatorConfiguration.dtd'>
<keyindicatorconfig>
...
<calcattr name="AT_KI_HRMODUL" type="PROCESS">
<calculation>
<max>
<attribute name="AT_HRMODUL" nodetype="OT_FUNC">
<in>
<constant>
<dataitem>
019
<datatype name="TEXT">Text</datatype>
</dataitem>
</constant>
<attribute name="AT_VORG_TYPE"
nodetype="OT_FUNC" objectname="this"/>
</in>
</attribute>
</max>
</calculation>
</calcattr>
...
</keyindicatorconfig>
Define conditional attribute type access in PPM Customizing Toolkit to prevent syntax errors. You can create the corresponding calculation rules in the Measures and dimensions module using the Calculated attribute types menu. In particular, this prevents incorrect use of the attribute and filteredattribute operands with the corresponding logic operators.