Results 1 to 2 of 2
  1. #1
    pickslides is offline Novice
    Windows 10 Access 2013
    Join Date
    Dec 2015
    Location
    Melbourne, Australia
    Posts
    9

    Finding a Percent Query

    Hi all,

    I have posted my database , I want Query 1 to have an extra field for % of Avg car sales by Make



    At the moment I have


    [CODE][SELECT Sales.Make, Avg(Sales.Price) AS AvgOfPrice
    FROM Sales
    WHERE (((Sales.SalesMonth)="November" Or (Sales.SalesMonth)="December"))
    GROUP BY Sales.Make;
    /CODE]

    Q
    Attached Files Attached Files

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2016
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    Try this:

    Code:
    SELECT Query1.Make, Query1.AvgOfPrice, DSum("AvgOfPrice","Query1") AS PC, [AvgOfPrice]/[PC] AS [Percent]
    FROM Query1
    GROUP BY Query1.Make, Query1.AvgOfPrice;

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

Similar Threads

  1. Replies: 1
    Last Post: 01-21-2016, 04:56 PM
  2. Update Table Query with percent values
    By GinaFlan in forum Queries
    Replies: 3
    Last Post: 10-23-2015, 09:41 AM
  3. Average percent by month query
    By jtmott in forum Queries
    Replies: 2
    Last Post: 11-05-2013, 10:44 AM
  4. percent query rounding less than .5 up
    By jtmo3 in forum Queries
    Replies: 3
    Last Post: 05-04-2012, 02:52 PM
  5. how to calculate Percent in an update query?
    By newtoAccess in forum Queries
    Replies: 4
    Last Post: 11-23-2010, 10:11 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