G
Guest
How do you calculate a running average in a query? I am making a chart and
need the running average information from a query I am using. For example,
if I have this information in the results of my query:
Date Orders
1/1/01 1
1/2/01 4
1/3/01 6
1/4/01 4
I want another field that calculates the running average of orders:
Date Orders Running Average
1/1/01 1 1 (1/1)
1/2/01 4 2.5 (5/2)
1/3/01 6 3.66 (11/3)
1/4/01 4 3.75 (15/4)
I know in Excel you would enter the formula =Average($B$2:B3)and drag it,
but how do you get these same results in Access? I would rather it not be
calculated in a report, but based off of a query that calculates it. Is
there a formula? However, if there is no other way, how do you do it in a
report also? I see running sum, what about running average?
need the running average information from a query I am using. For example,
if I have this information in the results of my query:
Date Orders
1/1/01 1
1/2/01 4
1/3/01 6
1/4/01 4
I want another field that calculates the running average of orders:
Date Orders Running Average
1/1/01 1 1 (1/1)
1/2/01 4 2.5 (5/2)
1/3/01 6 3.66 (11/3)
1/4/01 4 3.75 (15/4)
I know in Excel you would enter the formula =Average($B$2:B3)and drag it,
but how do you get these same results in Access? I would rather it not be
calculated in a report, but based off of a query that calculates it. Is
there a formula? However, if there is no other way, how do you do it in a
report also? I see running sum, what about running average?