-
- Posts: 40
- Joined: Tue Apr 24, 2012 3:36 pm
I am generally pretty good with Empower Custom Fields, but I am terrible with inter sample calculations.
Here is the calculation I need to do. It is for calculating % Related compounds for each peak in a sample.
it is
100*Area/(Sum_of_Area_of_all_peaks_in_the_Sample -Sum_of_Area_of_all_peaks_in_the_blank)
This seems like a pretty straight forward calculation, but I have been wracking my brain over it the past few days, and I decided to come here for help.
I have tried numerous Iterations on the custom fields using a single custom field and multiple custom fields to try and accomplish the calculation.
Here is my current custom field
It is peak and real type, with results in the sample set only. I made sure that the blank is labeled blank (all lower case), and I added summarize custom fields to the end of the sample set. I also created a group peak, which is the sum of all the peaks in the chromatogram, the group peak is SumAll.
100*Area/(SumAll[Area]-blank.%.%.SUM(Area))
The portion labeled blank.%.%.SUM(Area) seems to be returning 0, and it should be ~54,000
100*Area/SumAll[Area] works perfectly and returns the correct number.
Any suggestions or help would be greatly appreciated. This is not the only attempt I have made, I have tried many other approaches, it is just my current one.
