G
Guest
I have two tables with simular information that I want to get and average
value when I combine. I have created a Union Query in which [Field 1] I have
the name I want to average based on. In [Field 2] I have the vaule I want to
average and [Field 3] I have the count. So ideally the query would calculate
the average value by:
(([Table 1]![Field 2]*[Table 3])+([Table 2]!Field 2*[Table 2]![Field
3]))/([Table 1]![Field 3]*[Table 2]![Field 3])
This calculation for distinct name in [Field 1].
Note I don't use an Average function because sometimes the count for one
table is zero (or not found) while in the other table there is a set of
records.
Is this clear what I'm trying to do?
Is there away to do it?
value when I combine. I have created a Union Query in which [Field 1] I have
the name I want to average based on. In [Field 2] I have the vaule I want to
average and [Field 3] I have the count. So ideally the query would calculate
the average value by:
(([Table 1]![Field 2]*[Table 3])+([Table 2]!Field 2*[Table 2]![Field
3]))/([Table 1]![Field 3]*[Table 2]![Field 3])
This calculation for distinct name in [Field 1].
Note I don't use an Average function because sometimes the count for one
table is zero (or not found) while in the other table there is a set of
records.
Is this clear what I'm trying to do?
Is there away to do it?