Martin, I have run into one more problem. In order to display the compound as a percentage, I also need to get the average of another field, but this one is a custom field( "Sample Weight/g") . I tried using the same query that you created to get the…