Results 1 to 3 of 3
  1. #1
    Ian Frost is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    11

    Project Duration

    I need to display either in a query or in a report the average number of days a project takes in each phase(Planning, design, constrution, completion) based on the project cost. Currently i have a query that displays the information below. (Just a sample) What i need to figure out is how to display the average #of days in each phase for a certain project cost interval. (ex. $0-$50, $51-$100, $101-$150)




    Project Cost Days in Planning Days in Design Days in Construction Days to Completion
    $100 20 42 100 162
    $125 40 35 110 185
    $50 25 37 105 167
    $75 50 40 109 199
    $145 25 50 130 205
    $150 28 52 80 160
    $60 15 58 92 165

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Build individ queries for each block w its new field

    Q1 = select *,"$0-$50" as Block from tProject where [cost] between 0 and 50
    Q2 = select *,"$51-$100" as Block from tProject where [cost] between 51 and 100
    Q3 =... etc.

    then put all of them in a UNION QUERY ,say: qnCostBlocks
    select * from Q1
    union
    select * from Q2
    union
    select * from Q3 ...

    Then run your averages off this query: qnCostBlocks

  3. #3
    hapm is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    197
    Lets say the interval is $50 you can simply group by Int(ProjectCost/50). Grouping would be from 0 to 49 ... If you want to have it from 0 to 50 you would need to use Int((ProjectCost-1)/50).

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

Similar Threads

  1. Replies: 1
    Last Post: 12-20-2013, 06:21 PM
  2. Calculate duration between two dates
    By Tommy1005 in forum Queries
    Replies: 3
    Last Post: 07-02-2012, 05:41 AM
  3. Duration field NOT time
    By rockcliff15 in forum Access
    Replies: 6
    Last Post: 04-15-2012, 12:22 PM
  4. Count one event regardless of duration
    By jbr87 in forum Queries
    Replies: 8
    Last Post: 03-05-2012, 08:54 PM
  5. How to calculate duration in hours & minutes
    By joypanattil in forum Access
    Replies: 0
    Last Post: 11-25-2009, 04:49 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