B
Bob Quintal
You will have to redesign the table, what you have there is aI am looking to compute standard deviation and am a little
confused. If I have a table with stores and monthly sales figures
how do I run a Stdev (syntax) for the sales amounts:
Table1
Store, month1, month2, month3,month4
storeA,1000,2000,3000,4000
storeB,2000,2500,3000,3500
Any examples would be great!
Thanks! AJ
spreadsheet.
What you need is
StoreID,Period,Amount
=====================
StoreA,month1,1000
StoreA,month2,2000
StoreA,month3,3000
StoreA,month4,4000
storeB,Month1,2000
storeB,Month2,2500
storeB,Month3,3000
storeB,Month4,3500
======================
Then you open the query design tool, add the table, bring down the
StoreID and Amount columns then click the Summation symbol in the
toolbar.
-A new row labeled Totals with the identifier Totals:
leave the words Group By under the StoreID, and select StDev under
Amount. You could also set a filter by bringing down the Period
Column and set its Totals to Where, with the filter condition in the
criteria column.
If instead of the Standard Deviation by store over several months,
you want the variance across all the stores for each month, exchange
the StoreID and Period columns.