Results 1 to 4 of 4
  1. #1
    bangemd is offline Novice
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2009
    Posts
    18

    Talking Use report to Calculate sum and percentage

    Hello everyone

    I have a query that I want to create a report out of but I don't know where to start I know the general calculation and can do it pretty well in excel however I'm completely ignorance when it come to access. Any way here my problem

    I have this Query:

    Code:
    SELECT [Phase ID].[Phase ID],
     Count([Phase ID].[Phase ID]) AS CountofPhaseID, 
    Count([Phase ID])/(Select Count([Phase ID]) from [Phase ID]) AS [% compare to total], 
    Sum(IIf([Phase status]="COMPLETE",1,0)) AS [TP Completed], 
    Sum(IIf([Phase status]="IN PROGRESS",1,0)) AS [TP In Progress], 
    Sum(IIf([Phase status]="ON HOLD",1,0)) AS [TP On Hold], 
    Sum(IIf([Phase status]="ASSIGNED",1,0)) AS [TP Assigned], 
    Sum(IIf(IsNull([Phase status]),1,0)) AS [% of Untouched]
    FROM [Phase ID]
    GROUP BY [Phase ID].[Phase ID];
    The Query look like this




    this is What I wanted the report to look like.


    Please help Thank you In Advance

  2. #2
    bangemd is offline Novice
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2009
    Posts
    18
    Ok I figure it out,

    Create multiple query and report then Drag and drop.

    Thanks guys for checking this Thread out.

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I love it when posters figure out their own problem. There is learning happening here.

  4. #4
    bangemd is offline Novice
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2009
    Posts
    18
    haha but there is alot to learn still

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

Similar Threads

  1. Percentage Queries
    By bangemd in forum Queries
    Replies: 18
    Last Post: 05-21-2009, 09:32 AM
  2. Replies: 0
    Last Post: 08-07-2008, 07:02 PM
  3. percentage in a query
    By Peljo in forum Access
    Replies: 2
    Last Post: 02-27-2008, 10:51 AM
  4. Replies: 0
    Last Post: 10-28-2007, 09:11 PM
  5. calculate holidays
    By barkarlo in forum Queries
    Replies: 0
    Last Post: 12-20-2006, 06:08 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