G
Guest
I have a crosstab query which is based on another query. I want to calculate
a row heading that is either an avg or sum depending on how the Iif is
evaluated. Here is the expression:
Field = Total Of Qty: IIf([Goal ID]="05a" Or [Goal
ID]="05b",Avg([Qty]),Sum([Qty]))
Total = Expression
Crosstab = Row Heading
This is the error I get:
You tried to execute a query that does not include the specified expression
<name> as part of an aggregate function. (Error 3122)
Is there something stupid I'm doing?
a row heading that is either an avg or sum depending on how the Iif is
evaluated. Here is the expression:
Field = Total Of Qty: IIf([Goal ID]="05a" Or [Goal
ID]="05b",Avg([Qty]),Sum([Qty]))
Total = Expression
Crosstab = Row Heading
This is the error I get:
You tried to execute a query that does not include the specified expression
<name> as part of an aggregate function. (Error 3122)
Is there something stupid I'm doing?