Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / September 2007

Tip: Looking for answers? Try searching our database.

How do I estimate STDEVP for values in multiple fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 13 Sep 2007 19:26 GMT
I have numeric values in 10 separate fields in one table. I want to calculate
standard deviation (stdevp) for the values.  How do I wite the expression?

Bob
S.Clark - 13 Sep 2007 21:24 GMT
Transform the columns into row, and you won't need to write an expression.  
You can use a crosstab query to Uncrosstab the data.
Signature

Steve Clark,
Former Access MVP
FMS, Inc
http://www.fmsinc.com/consulting

> I have numeric values in 10 separate fields in one table. I want to calculate
> standard deviation (stdevp) for the values.  How do I wite the expression?
>
> Bob
James A. Fortune - 13 Sep 2007 22:19 GMT
> I have numeric values in 10 separate fields in one table. I want to calculate
> standard deviation (stdevp) for the values.  How do I wite the expression?
>
> Bob

First check to make sure your table is properly normalized.  If it is,
or if it isn't and you can't do anything about it then perhaps:

http://groups.google.com/group/comp.databases.ms-access/msg/13092869c02339dd

using StdevP instead of Max?

Two Query Example:

tblA
ID AutoNumber
Value1 Double
Value2 Double
Value3 Double
ID Fld1 Fld2 Fld3
1 3.1 5.2 7.3
2 4.7 7.4 9.3

qryASingleColumn:
SELECT ID, tblA.Value1 AS theField FROM tblA UNION SELECT ID,
tblA.Value2 AS theField FROM tblA UNION SELECT ID, tblA.Value3 AS
theField FROM tblA;

!qryASingleColumn:
ID theField
1 3.1
1 5.2
1 7.3
2 4.7
2 7.4
2 9.3

qryGetStdevP:
SELECT ID, StdevP(theField) AS StdevP FROM qryASingleColumn GROUP BY ID;

!qryGetStdevP:
ID StdevP
1 1.71464281995
2 1.8873850222

James A. Fortune
MPAPoster@FortuneJames.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.