In this dialog, you set the type, name, and properties of a calculation variable. This calculation variable then contains the result of the current expression. It can be referenced by other, subsequent expressions.
The Calculation Variable Properties depend on the selected type:
Calculation Variable Name | Name of the variable. No special characters are allowed. |
Unique Key Value |
If you select a key value, the expression result is saved under a combination of the name given above and the unique key. For example, you may use the Sample_Name as a unique key value for a variable named VarAvgAreaPerSample. In subsequent expressions, you address the variable together with a value for the unique key value, for example: AvgRetentionTimes(Sample_Name). This type of expression is usually embedded in a composite group or table. |
Condition |
You can provide a condition for calculation variable and the results are saved in variable depending on the result of condition. It expects the condition in the format,. The <ConditionExpression> should be an expression that returns True/False as value For example: LCase(COMPOUND_NAME like LCase(MainCompoundName), avg(COMPOUND_AMOUNT) |
Calculation Aggregator Name |
Name for the Aggregator or Category Aggregator. No special characters are allowed. |
Category |
If you select a category, a Category Aggregator is created. For example, you may use Compound_Name as a category for an Aggregator named AreaAggregator. In subsequent expressions, you can apply aggregating functions to the Category Aggregator, for example: Avg(AreaAggregator(Compound_Name)). This type of expression is usually embedded in a composite group, table, or matrix. |
Condition |
You can specify a condition under which the result is assigned to the Aggregator (for example, if you want to sum up only values that are greater than a certain limit). The field is only enabled if the Category is set to [None]. The condition must be an expression the returns True or False. |
Calculation CustomExtractor Name |
Name for the CustomExtractor. No special characters are allowed. |
Category |
This drop-down list is inactive for the CustomExtractor. |
Condition |
This drop-down list is inactive for the CustomExtractor. |