Results 1 to 2 of 2
  1. #1
    CMR is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    1

    query to summarize top ranking data

    I have the following data. It lists a bunch of bird species (genus and species), the country they came from, the number of individuals from that country, the number of individuals from all countries, and finally the proportion (from the two previous columns) of individuals that came from that country (see 1st table).
    Click image for larger version. 

Name:	access.JPG 
Views:	4 
Size:	81.8 KB 
ID:	9183
    I'd like to summarize information from it. Ultimately, I'd create a table that would list the genus and species, the top 3 countries for each genus and species, and the proportion that came from each country. I having a difficult time working out how to create code for a query(ies) that will do what I'd like it to, and if it can be done. In a perfect world, the data would be arranged to look like the 2nd table.


    Click image for larger version. 

Name:	idealworld.JPG 
Views:	3 
Size:	38.9 KB 
ID:	9184
    Any suggestions would be most appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    Rearranging records to horizontal (left to right) structure can be difficult.

    Review:
    http://forums.aspfree.com/microsoft-...ry-322123.html
    http://allenbrowne.com/func-concat.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 11-04-2012, 02:08 PM
  2. Replies: 25
    Last Post: 10-17-2012, 01:51 PM
  3. Ranking (Look for previous ranking)
    By leobear in forum Queries
    Replies: 3
    Last Post: 01-10-2012, 05:58 PM
  4. ranking: can i query a report?
    By stevepcne in forum Reports
    Replies: 2
    Last Post: 11-20-2011, 01:03 AM
  5. Update query to summarize multiple values
    By ser01 in forum Queries
    Replies: 3
    Last Post: 05-15-2010, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums