Average Blank Subtraction as Opposed to most recent blank in CDS 2.6 custom calculation

Is there a way to build an equation with a sample_type enumerator in the aggregator. For example, Avg(Sample_Type=5) does not generate a working number. Is there a work around that can define the parameters as injections 2 and 3 and then just divide by CountDistinct(Sample_Type) to create an average value. I am trying to do this to generate an average blank as opposed to the most recent blank sample concentration value.

Was this helpful?