Re: calculating a median within a query
- From: "jonm4102" <sutasa@xxxxxxxxx>
- Date: 17 Jul 2006 11:59:06 -0700
Thanks for your previous post. I've run into another hurdle, and would
greatly appreciate any help you may be able to offer. I have revenue
data sorted by month and years for a number of distinctly labeled
stores (imagine a Center ID). I would like to find the percentage of
"gainers" (stores whose monthly revenues exceed the previous month's
revenues) out of the all the stores. I know how to determine this by
using an individual queries to sort out each store's revenue by year
and month, and then use another query to classify gainers v. decliners,
and then (Fnally!) calculate the percentages. Is there an easier way to
do this than to run around 50 queries (one for each month for 4 years)?
Thanks.
Jonathan
CDMAPoster@xxxxxxxxxxxxxxxx wrote:
jonm4102 wrote:
I'm trying to calculate the median of some numerical data. The data can
only be found in a query (henceforth query 1) field I previously made,
and I would prefer to calculate the median in a new query it without
making a table out of query 1. I can't find a median function in the
"Total" field, so is there so way to make an expression to calculate
the median of the orignial data from query 1 in my new query?
Also, what does name by string mean?
Thanks.
I use SQL for finding medians. See:
http://groups.google.com/group/comp.databases.ms-access/msg/7fb6eb508f22fa9d
Click back a link or two to find SQL for the median of non-grouped
data.
I hope this helps,
James A. Fortune
CDMAPoster@xxxxxxxxxxxxxxxx
.
- Follow-Ups:
- Re: calculating a median within a query
- From: CDMAPoster
- Re: calculating a median within a query
- References:
- calculating a median within a query
- From: jonm4102
- Re: calculating a median within a query
- From: CDMAPoster
- calculating a median within a query
- Prev by Date: Re: Subform Acting Weird (again...)
- Next by Date: event/contacts/attendees
- Previous by thread: Re: calculating a median within a query
- Next by thread: Re: calculating a median within a query
- Index(es):
Relevant Pages
|