This example describes how to compare the average peak areas for two different sets of samples. In contrast to the other example (see To prepare the variables:), the information is now prepared and shown separately for each compound.
Add the Compound Results table to the template twice.
Repeat both tables on Compound_Name.
Filter the tables according to the samples for which you want to obtain the average peak areas.
In each table: Open the Column Properties dialog of the Area column, and save the value as a variable. Use the following settings:
Calculation Variables: Aggregator
Calculation Variable Name: For example, AreaAggregator1 in the first table, and AreaAggregator2 in the second table.
Category: Compound_Name
Condition: [None]
NOTE
For the Category setting, you must use the same value as in the Repeat On setting for the tables.
Underneath the tables, add two text fields to the template:
The first text field shows some static text and the compound name:
="Difference between average areas for" + Compound_Name
The second text field shows the calculated value:
=Avg(AreaAggregator1(Compound_Name)) - Avg(AreaAggregator2(Compound_Name))
Select the two fields and create a composite group.
Repeat the composite group on Compound_Name.
After a number of tables, the generated template will show the text fields for each single compound.
base-id: 11031943947
id: 11031943947