Results 1 to 6 of 6
  1. #1
    anasttin is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    37

    How to summarize data in MS Access

    Hi all,

    I'm having trouble summarizing some data the way I want it and was hoping for some help. I'm really hoping to not have to dump the summarized data to a table before creating the summarized view if possible. I've played with expression, group by and average, but not having much luck.

    This is my data...

    Part
    No.
    Start Price Price Change
    abc 6.19 0
    abc 6.19 -0.02
    abc 6.19 -0.64

    and I want to summarize it to:

    Part
    No.
    Start Price Price Change End price % change
    abc 6.19 -0.66 5.53 -10.7%

    If anyone can assist, I'd be very grateful.

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The first 3 I'd get with a totals query, summing the price change and using min or max on the start, presuming it's always the same. The other 2 I'd calculate on the form/report you're presenting this with.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    anasttin is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    37
    Thanks pbaldy.

    Is there no way to do it in the query itself?

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Probably. You'd use Expression I suspect, and something like

    Max(StartPrice) + Sum(PriceChange)

    but it can get tricky going too deep in the query. If you need it there post a sample db and I'll play with it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    anasttin is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    37
    Thanks pbaldy.

    I tried Max(StartPrice) + Sum(PriceChange) and I think its working.

    Will have to do a bit more testing.

    Appreciate your time.



  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Summarize data between dates
    By jrg24 in forum Access
    Replies: 3
    Last Post: 03-30-2017, 05:10 PM
  2. Query to summarize data by month
    By wpryan in forum Forms
    Replies: 1
    Last Post: 12-26-2015, 06:44 AM
  3. Need to summarize data but not sure how...
    By djlabreche in forum Queries
    Replies: 4
    Last Post: 07-08-2014, 08:17 AM
  4. Summarize data by pay periods
    By breakingme10 in forum Access
    Replies: 42
    Last Post: 01-13-2014, 08:28 AM
  5. Help a new Access user summarize data
    By afabris in forum Queries
    Replies: 3
    Last Post: 11-01-2013, 01:56 PM

Tags for this Thread

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