Results 1 to 2 of 2
  1. #1
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128

    Query for top 5 issues each issue spilt week by week in one chart

    I am trying to build a query where I can pull top 5 issues each issue spilt week by week. How can I write that query. So something like this

    Problem A ------Week 1
    _____Week 2
    _____ Week 3
    _____ Week 4
    Problem B --------Week 1
    ______Week 2
    _______Week3


    _______Week 4

    So rotten apple is my top issue by count I want see over month how my issue stayed week by week. In the same chart Problem A and Problem 2 spilt by 4 weeks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    This can get tricky.

    Calculate a field in query to extract year, month, week number from the date value then use those in combination to organize records.

    Year([Datefield]) & Format(Month([Datefield]), "00") & DatePart("w", [Datefield]) AS YrMoWk

    but that will return the week numbers within each month which means first and last weeks can be less than 7 days and some months will have 5 week numbers.

    DatePart("ww", [Datefield]) will return week numbers within the year (1 - 53), again first and last weeks can be less than 7 days.

    However, seems this will meet you requirement for weekly count within month.
    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. Replies: 3
    Last Post: 01-21-2015, 02:40 PM
  2. Query since last (Day of week)
    By BDevil15 in forum Access
    Replies: 11
    Last Post: 08-25-2014, 03:20 AM
  3. Replies: 3
    Last Post: 09-19-2013, 10:18 AM
  4. Start a report on week 40 of a week count
    By aspitalnick in forum Reports
    Replies: 8
    Last Post: 11-28-2012, 04:53 PM
  5. query problem, oppointments for one week
    By keithsrobinson in forum Queries
    Replies: 2
    Last Post: 02-18-2006, 02:28 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