473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Standard Deviations query

I was assuming that this would be something I could find on the web, but I'm just not finding it I'm not.
How would I get I use a query to get the Standard Deviations?
From what I read it should be something like this, but this one isn’t working.
When I try this
Expand|Select|Wrap|Line Numbers
  1. Standard Deviations: (DStDev([Jan_Fund],[Feb_Fund],[Mar_Fund]))
I'm getting a reading in the SD field that shows "#Error"
So if I took all the months from Jan - Dec, what would the formula be for a Standard Deviation?

Expand|Select|Wrap|Line Numbers
  1. Standard Deviations: Val(StDev ([Jan_Fund],[Feb_Fund],[Mar_Fund],[Apr_Fund],[May_Fund],[Jun_Fund],[Jul_Fund],[A
  2. ug_Fund],[Sep_Fund],[Oct_Fund],[Nov_Fund],[Dec_Fund],0)
or something like this:
Expand|Select|Wrap|Line Numbers
  1. (DStDev([Jan_Fund],[Feb_Fund],[Mar_Fund]))
or
Expand|Select|Wrap|Line Numbers
  1. (StDev([Jan_Fund]),([Feb_Fund],[Mar_Fund]))

Thank for all your help

TCB
Dec 23 '10 #1
2 4362
Rabbit
12,516 Expert Mod 8TB
You can't calculate the standard deviation of multiple fields, well... Access can't anyways. You will have to unpivot your data and then calculate the standard deviation from one column or calculate the standard deviation of each column separately. It all depends on what you want.
Dec 23 '10 #2
ADezii
8,834 Expert 8TB
I've actually created some 'Rogue' Code that will calculate the Standard Deviation for Values existing in Multiple Fields (Jan, Feb, Mar,...Dec), for Multiple Records, to 2 Decimal Places. The Code utilizes a Calculated Field in a Query, a Public Function, and simple Automation Code to let Excel do all the work. It has been tested and is functional, but with a large number of Records will be very slow to process. I'll only post the Code if you are interested.
Dec 23 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Nick Truscott | last post by:
<? // scoreinput.php - input a match score when match selected from list ?> <html> <head> <basefont face="Verdana"> </head> <body>
3
by: Matthew Kramer | last post by:
How would be the best way to do this in Access? I have two tables. The first table has all the rows of data. The first column of this table has a country name, the second has a year and the...
7
by: Tim Donaldson | last post by:
Hi, I wonder if anyone has some ideas on the best way to create this type of query. I have a table of four columns. The first column field is called "year" and contains years from 1980 to...
12
by: strict9 | last post by:
Hello all, I'm writing several queries which need to do various string formating, including changing a phone number from (123) 456-7890. After some problem with data mismatches, I finally got it...
2
by: allyn44 | last post by:
Hello, I am trying to figure out how to create a sdev field on a report or in a query that is based on a claculation of 2 fields. I have these fields: Number of samples--this is a...
1
by: TF | last post by:
This group came through for me last time so here we go again. My page shows paint colors, brand name, product code, etc in a gridview with the background matching the paint color. Several links on...
9
by: lajohn63 | last post by:
I'm trying to calculate a standard deviation for each record in a database...the record has 12 fields which contain consumption for each month of the year. I want to calculate the standard deviation...
5
by: samit | last post by:
Hello Everybody, I face a problem to SELECT the paticular customer record from 50 records in database whose salary is 15 th heighest with out using 'limit' keyword in mysql or 'rownum' in oracle....
4
by: moyoal | last post by:
Dears, Help me how to create a ageing report for 30 days,60 days and 90 days, anyone can help me to have standard select query. Opening Balance 30 days 60 days 90 days thanks in advance,
5
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
After having played around with LINQ and reading the literature on it I have not been successful in getting this to work so I am looking for some guidance: I want to find a hunk in a collection...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.