+ Reply to Thread
Results 1 to 2 of 2

Quarterly Reports/Query Totals problem

Hybrid View

  1. #1
    Registered User
    Join Date
    12-20-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    32

    Quarterly Reports/Query Totals problem

    Hello,

    I'm a beginner with Access, I have tried several approaches at this and apparently I am not even starting In the correct place, so here is what I have:

    I need to pull a query/report that will show the following, grouped by Department

    Department
    Agent ID, Agent Name, January Average (this will be the average of Call Totals for all calls with a Audit Month of 1), February Average (this will be the average of Call Totals for all calls with a Audit Month of 2), March Average (this will be the average of Call Totals for all calls with a Audit Month of 3), Quarter 1 Average (This will be the average of Jan, Feb, Mar)

    MasterDatabase - Copy.zip
    I need this to pull for each agent that has any info,

    Thank you so much in advance to anyone who can help me!

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Quarterly Reports/Query Totals problem

    Hi BDarden, create a new query using query design, switch to SQL view and paste this in. See if this is what you wanted.

    SELECT [Audit Scores Database].AGENTID, [Audit Scores Database].AgentName, Sum(IIf([Audit Month]='1',[CALL TOTAL],0))/Count(IIf([Audit Month]='1',1)) AS [Jan Avg], Sum(IIf([Audit Month]='2',[CALL TOTAL],0))/Count(IIf([Audit Month]='2',1)) AS [Feb Avg], Sum(IIf([Audit Month]='3',[CALL TOTAL],0))/Count(IIf([Audit Month]='3',1)) AS [Mar Avg], Sum(IIf([Audit Month]='1' Or [Audit Month]='2' Or [Audit Month]='3',[CALL TOTAL],0))/Count(IIf([Audit Month]='1' Or [Audit Month]='2' Or [Audit Month]='3',1)) AS [Qtr 1 Avg]
    FROM [Audit Scores Database]
    GROUP BY [Audit Scores Database].AGENTID, [Audit Scores Database].AgentName
    多么想要告诉你 我好喜欢你

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How do I group daily totals into weekly/monthly/quarterly totals
    By situationroom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2013, 09:58 AM
  2. quarterly reports
    By Al Vanderhoof in forum Excel General
    Replies: 5
    Last Post: 02-12-2005, 09:06 PM
  3. quarterly reports
    By Al Vanderhoof in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-12-2005, 09:06 PM
  4. [SOLVED] quarterly reports
    By Al Vanderhoof in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-12-2005, 09:06 PM
  5. [SOLVED] quarterly reports
    By Al Vanderhoof in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-12-2005, 12:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1