+ Reply to Thread
Results 1 to 7 of 7

Chart - Week number vs occurences

  1. #1
    Registered User
    Join Date
    10-12-2018
    Location
    Terra Nova
    MS-Off Ver
    2013
    Posts
    14

    Chart - Week number vs occurences

    Hi All,

    I am trying to create a chart that counts the occurences of a week number in a table. So I need to display how many times something has happened in that particular week number. Is there a way to create it from just the single table or do I need to make a seperate table with more info?

    1.jpg

    2.jpg

    In the table example it would be 3 occurences in week 40, 3 in week 41, 2 in week 45 and so on...

  2. #2
    Registered User
    Join Date
    04-19-2011
    Location
    Leeds
    MS-Off Ver
    Excel 365
    Posts
    48

    Re: Chart - Week number vs occurences

    Give your list a heading (e.g. Week No.) select all your data and create a pivot table with chart (use the drop down on the insert tab under the tables and PivotTable section) you can select PivotChart. Once you select the position of the pivot, drag Week No. to Axis Field and also to Values, changing Values to count rather than sum.
    There's always a way.

  3. #3
    Registered User
    Join Date
    04-19-2011
    Location
    Leeds
    MS-Off Ver
    Excel 365
    Posts
    48

    Re: Chart - Week number vs occurences

    There's an issue uploading examples. Had to find a work around.
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Chart - Week number vs occurences

    Your office version shows 2013, so why not just create a simple pivot chart and use the weeks as the axis labels and then for the values, count the weeks.
    Attached Files Attached Files
    HTH
    Regards, Jeff

  5. #5
    Registered User
    Join Date
    10-12-2018
    Location
    Terra Nova
    MS-Off Ver
    2013
    Posts
    14

    Re: Chart - Week number vs occurences

    Thanks, that looks perfect. Is there a way to get weeks that have no actions in them reporting in the table as well? So if week 40 has 5, 41 has 0, and 42 3 I want week 41 to report zero on the axis.

  6. #6
    Valued Forum Contributor
    Join Date
    09-25-2015
    Location
    Nowy Tomysl, Poland
    MS-Off Ver
    2019, O365
    Posts
    398

    Re: Chart - Week number vs occurences

    To do the way you want, you need to create a table of data and a table with the numbers of the week. It is necessary to create relations between tables. In the pivot table that you created, check to show items without data in rows. For blanks, show "zero".
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Chart - Week number vs occurences

    just set the option in field setting>Layout & Print
    tick option show items with no data


    *edit*
    this solution doesnt work
    it only worked in this example because i had used 40 previously in pivot table so it was cached in rather than "filling the gap"
    so i suppose you can purposely cache in labels you want in i guess
    Attached Files Attached Files
    Last edited by humdingaling; 10-16-2018 at 03:27 AM. Reason: using Jeff's file
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. Week number issue in Pivot Chart view
    By iadrika21 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-06-2018, 07:49 AM
  2. [SOLVED] Create a chart to compare week on week volumes
    By fastcar in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-17-2016, 08:43 PM
  3. Week Number out of Order on Axis Chart
    By ThxInAdvance in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 02-04-2015, 04:07 PM
  4. Replies: 5
    Last Post: 09-01-2014, 03:55 PM
  5. Chart previous week data as grouped and current week as ungrouped
    By r_a_c_a_4_u in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2013, 12:55 PM
  6. count the number of duplicates and print the number of occurences
    By ash81sen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2010, 01:21 PM
  7. Chart number of occurences
    By David P. in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-23-2006, 04:15 PM

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