Results 1 to 4 of 4
  1. #1
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183

    any idea on calculating average?

    I have two queries. Both the queries comes from the same table.
    Therefore, both queries have similar columns.

    qry3
    Fiscal Year
    Quarter
    Call
    Visit
    TotalOfMetricsID


    qry4
    Fiscal Year
    Quarter
    Yes
    TotalOfMetricsID


    the quarter consists of Q1, Q2, Q3, and Q4 of the fiscal year

    Now I want to create a query where I can get the %/average of qry3 and qry4 with respect to the quarters and Fiscal year..

    like
    2008 Q1 = AVERAGE
    2008 Q2 =AVERAGE


    2009 Q1 =AVERAGE



    The average/% should have formula like
    (qry4totalofmetricsID/qry3totalofmetricsID)*100


    Now how should I go about doing this? any ideas anyone?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    So both queries have a record for each quarter for each year? If so, join one query to the other on the year and quarter fields.
    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.

  3. #3
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    So both queries have a record for each quarter for each year? If so, join one query to the other on the year and quarter fields.

    Thanks June! Yes, both the queries have a record for each quarter for each year. So you mean I join them together and then get the % ? But the % is calculated from the 'totalmetricsID'... How do I make it happen then?

    And will my new query have fields like

    Fiscal Year
    Quarter
    qry3TotalMetricsID
    qry4TotalMetricsID
    Average/%





  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    I don't understand your confusion. Haven't you done queries that do calculations with fields? Using the query designer, join queries, drag fields to the design grid, create calculation with the two TotalMetricsID fields. Calc expression goes in the Field row of the grid.
    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. Password Idea (how to implement?)
    By dinorbaccess in forum Access
    Replies: 2
    Last Post: 02-17-2011, 07:45 AM
  2. Calculating average in table
    By prv in forum Database Design
    Replies: 1
    Last Post: 12-14-2010, 01:35 PM
  3. Idea's on how to create a database
    By Bentley68 in forum Access
    Replies: 5
    Last Post: 08-23-2010, 09:33 PM
  4. Replies: 13
    Last Post: 05-28-2010, 11:57 AM
  5. Need help with 'note book' idea.
    By Luk3y in forum Access
    Replies: 0
    Last Post: 06-26-2009, 09:54 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