Results 1 to 3 of 3
  1. #1
    digvijay is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    1

    Creating Data Buckets and show sum of values

    Hi all,



    i have a sheet in which the milk qty is given with their corresponding Fat% and SNF % like this

    Qty Fat% SNF%

    1200 5.16 8.56
    1300 6.20 9.27
    1500 7.20 9.34

    I have two things to ask

    One is i want to create a query which will return sum of Qty of milk based on the buckets where Fat% is between 4-5; 5-6 and 6-7
    second is i want to create a query which will return sum of Qty of milk based on the buckets where Fat% is between 4-5 and SNF % is between 8-9; where Fat% is between 5-6 and SNF % is between 8-9

    Please help me out

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Sheet is not a relational database term; it's a spreadsheet/Excel term.

    You can have a query to select data from a table(s).

    You could investigate the Partition function in Access.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Need to construct fields in query with expressions that calculate these range values. Then use those constructed fields for grouping criteria. As orange suggests, Partition() may be one way to accomplish this calc. Switch() is another. Choose() can also be useful but probably not for your data.
    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: 09-27-2014, 09:48 AM
  2. Replies: 18
    Last Post: 06-19-2013, 10:58 AM
  3. Replies: 5
    Last Post: 05-17-2013, 10:45 AM
  4. Replies: 5
    Last Post: 11-27-2012, 10:24 PM
  5. Aging buckets Access 2003
    By bootster in forum Queries
    Replies: 1
    Last Post: 04-06-2010, 01:11 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