Results 1 to 2 of 2
  1. #1
    ONITAPGR is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    1

    Query to return group name with highest subtotal

    Hi!



    I'm running Access 2007...

    I have a table "Table" with thousands of rows of with 3 columns...The Columns are Name, Location, and Amount

    I have a query "Query" that is grouped by Name and Location, and sums Amount.

    I want to create another query that gives Name and then within each Name, returns the Location in which the total summed amount is the highest...in other words, the "most popular" Location (in terms of total Amount) for every Name.

    I attached an jpg file that describes what I am looking for...

    Thank you for any help!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    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. Find 2nd or 3rd highest record with a query
    By K Roger in forum Queries
    Replies: 1
    Last Post: 12-19-2011, 11:27 PM
  2. Newbie trying to Return Top 5 for Each in a Group
    By deluga.69 in forum Programming
    Replies: 1
    Last Post: 08-09-2011, 08:27 PM
  3. Query to return only the row containing the highest date.
    By eric.opperman1@gmail.com in forum Queries
    Replies: 4
    Last Post: 03-22-2011, 08:42 PM
  4. Subtotal
    By abc in forum Access
    Replies: 3
    Last Post: 01-31-2011, 04:47 PM
  5. query to find the highest value in a field
    By jhjarvie in forum Queries
    Replies: 0
    Last Post: 09-02-2008, 02:27 PM

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