[Count], [SumOfQty], [Max] and
[Average] are all field names.
The general syntax is
IIf(expression, truepart, falsepart)
If the
expression evaluates to True then you do/use the
truepart
If the
expression evaluates to Flase then you do/use the
falsepart
IIf([Count]>1 means
If Count is greater than 1 then
[SumOfQty]-[Max]) / ([Count]-1) AS ExcludeOutlierAvg
If Count is equal to or less than 1 then
[Average] AS ExcludeOutlierAvg
Please remember to provide a meaningful Title for any threads you start! This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions. It is difficult for the experts to answer questions when there is not enough details provided to understand the problem.
Please take the time to read the
Posting Guidelines, paying particular attention to Give a clear title to your question.
Linq
;0)>