I have the following formula in a textbox in the page footer of a report:
=Sum(IIf([Prod_List] Like '*Compact',[Weigh_Net]/2000,0)) the result is 694
beneath it I have another textbox with the following formula:
=Avg(IIf([Prod_List] Like '*Compact',[Weigh_Net]/2000,0)) the result is 5.46
I also have a textbox with the following formula:
=Sum(IIf([Prod_List] Like '*Compact',1,0)) which is a counter of the instances of the first textbox above, the result is 101
If I divide the 694 by 101 shouldn't I get the same as the Avg funtion? Instead I get 6.87
Why don't I get the same amount as the Avg funtion? Which one is correct? It wouild seem 694 by 101 woiuld be correct.
=Sum(IIf([Prod_List] Like '*Compact',[Weigh_Net]/2000,0)) the result is 694
beneath it I have another textbox with the following formula:
=Avg(IIf([Prod_List] Like '*Compact',[Weigh_Net]/2000,0)) the result is 5.46
I also have a textbox with the following formula:
=Sum(IIf([Prod_List] Like '*Compact',1,0)) which is a counter of the instances of the first textbox above, the result is 101
If I divide the 694 by 101 shouldn't I get the same as the Avg funtion? Instead I get 6.87
Why don't I get the same amount as the Avg funtion? Which one is correct? It wouild seem 694 by 101 woiuld be correct.