Example 9: Compute the percentage of an Impurity: Amount (Impurity) / Total Amount *100

  • Scope: Signal

  • Type: Double

  • Find the Amount field at the Peak or group level (Compound_Amount)

  • Use the ByName function to access the impurity amount (Signal.PeakOrGroupByName)

  • Use the Sum function under Common functions > Aggregate to compute the total amount (Sum("Compound_Amount",CurrentSignal.AllIdentifiedPeaks))

Formula

CurrentSignal.PeakOrGroupByName("Impurity").Compound_Amount / Sum("Compound_Amount",CurrentSignal.AllIdentifiedPeaks) *100

Alternatively:

  • Scope: Signal

  • Type: Double

  • Find the Amount field at the Peak or group level (Compound_Amount)

  • Use the ByName function to access the impurity amount (Signal.PeakOrGroupByName)

  • Use the ByName function to access the signal where impurity is identified (SignalByName("VWD1A"))

  • Use the Sum function under Common functions > Aggregate to compute the total amount (Sum("Compound_Amount",CurrentInjection.AllIdentifiedPeaks))

Formula

CurrentInjection.SignalByName("VWD1A").PeakOrGroupByName("Impurity").Compound_Amount / Sum("Compound_Amount",CurrentSignal.AllIdentifiedPeaks)*100