473,387 Members | 1,455 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,387 software developers and data experts.

Group data based on ranking

Hi!

I have a table with 2 fields:
person_id and volume

the final goal is to be able to draw a graph in excel representing under X each person, and under Y the corresponding volume (after having sorted the person_id in order to have increasing volumes)

the problem is, excel will obviously not be able to use the 120 000 datapoints, so I need to group the data in a smaller number of points (for example 1200): take the 1200 persons with the highest volume, calculate the average volume, and I get the first datapoint. take the following 1200 persons, etc, etc...

I'm a newbie on Access and SQL, and I have just no idea of how to do that...

If you have any thoughts, many thanks in advance for sharing!

Renaud
Sep 11 '07 #1
1 1447
Scott Price
1,384 Expert 1GB
Hi!

I have a table with 2 fields:
person_id and volume

the final goal is to be able to draw a graph in excel representing under X each person, and under Y the corresponding volume (after having sorted the person_id in order to have increasing volumes)

the problem is, excel will obviously not be able to use the 120 000 datapoints, so I need to group the data in a smaller number of points (for example 1200): take the 1200 persons with the highest volume, calculate the average volume, and I get the first datapoint. take the following 1200 persons, etc, etc...

I'm a newbie on Access and SQL, and I have just no idea of how to do that...

If you have any thoughts, many thanks in advance for sharing!

Renaud
Let's have a look at some sample data for your table. This will give a little better idea of where to go, but at this point I'm thinking we may be able to use the Partition() function (that just happens to be the tip of the week Tip of the week #28 The Partition() Function this week, thanks ADezii!) to separate your data out before averaging.

Regards,
Scott
Sep 19 '07 #2

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

Similar topics

0
by: Betty Harvey | last post by:
The next meeting of the XML Users Group will be held on Wednesday, July 21, 2004 at the American Geophysical Union (AGU) at 2000 Florida Avenue, N.W., Washington, DC 20009-1277. The meeting starts...
11
by: Petre Huile | last post by:
I have designed a site for a client, but they have hired an internet marketing person to incrase their search engine ranking and traffic. He wants to put extra-large fonts on every page which will...
37
by: spam.noam | last post by:
Hello, Guido has decided, in python-dev, that in Py3K the id-based order comparisons will be dropped. This means that, for example, "{} < " will raise a TypeError instead of the current...
2
by: develguy | last post by:
I am having trouble figuring this one out... Hopefully someone can help! I have a table ("tbl1") It has five (5) fields: 1- "Item1" 2- "Item2" 3- "Item3" 4- "ScanImage" (stores scan...
5
by: Chris | last post by:
I was wodering if there was a way to rank numbers in a query like this #'s Rank 100 1 99 2 98 3 98 97 5 96 6 96
1
by: tonyobrian | last post by:
I'm a definite beginner here, so please excuse me if this has a simple answer. BACKSTORY I work for a nonprofit and we are working to automate the gift acknowledgement process. I currently geta...
1
by: jjjoic | last post by:
Hi, I use Access 2003 to generate the back-end data for a ColdFusion report at work. The report is sorted by a column and based on the sorting, rankings are assigned to each row(i.e. the biggest...
1
by: SkipNRun | last post by:
I am a novice when comes to JavaScript, AJAX. I am working on a form, which will allow users to update their contact information. In order to make the form flexible, I need to use pull down list. ...
1
by: sstidham | last post by:
So my boss has asked me to make him a database so we can sort our Agents by ranking based on their sales. I have managed to get the database to import all the data needed correctly, the issue is now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.