Location
Date Value Texas 1/1/2014 6 Texas 1/4/2014 12 Texas 1/5/2014 6
Hello,
I have the above data set as a table in Access 2010. When I currently calculate stdev(Value) for Texas, it literally returns the standard deviation of the three values. (6, 12, and 6) However, in reality, this data set indicates that Value was zero on 1/2/2014 and 1/3/2014. How can I form a query that takes these "empty" or "non-existent-as-zero" entries into consideration when calculating the standard deviation? How can I make the query recognize the gap from the data set above, and calculate standard deviation from five values? (6, 0, 0, 12, 6)
Currently, my query is in the form of:
SELECT Distinct Location, stdev(Value)
FROM Table1
Thank you for your help in advance!