+ Reply to Thread
Results 1 to 4 of 4

Pivot and group dates - Force to show all groupings?

  1. #1
    Registered User
    Join Date
    05-17-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    4

    Pivot and group dates - Force to show all groupings?

    Hi everyone, in quite a few instances we are generating data based upon events that occur in our system. For instance I may have something like this:
    In this case we have when something occurred, and in this simple example we just care that something occurred, no summing or other functions we just want to know how many things occurred in each month.

    So we create our pivot table and group by dates to find out how many incidents we have per month
    Great so now we have our pivot table, but there is no grouping shown for July because there were no incidents during July.
    Now when we try to display this data the chart generated is deceiving. It looks like a fairly flat trend, where it should dip to zero in July.
    My issue is that I don't have a way to force the pivot table or the pivot table to display the months/years with no events to make the X axis representative. Maybe I can go back and insert bogus data (maybe hard with doing a count in the pivot) but that's a lot of manual manipulation that most people aren't going to do.

    I read about modifying the "Axis Type:" but when you've done the grouping in the pivot to get it by month, the "Date Axis" is not available as a selection.

    Does anyone have a magic solution for doing this?
    Last edited by timberguy; 10-02-2015 at 09:15 AM.

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

    Re: Pivot and group dates - Force to show all groupings?

    you can insert bogus data in but leave the desc blank so nothing counts

    then in source data>hidden & empty cells
    select zero instead of Gaps
    Attached Files Attached Files
    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.

  3. #3
    Registered User
    Join Date
    05-17-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Pivot and group dates - Force to show all groupings?

    Yeah that would definitely be tedious for large sets of data, and this is something my users run into all the time, and I see a lot of charts that are misleading because the X-Axis skips months or years so none of the trends are right unless someone really jumps through some hoops.

    Was hoping of a way to manipulate the pivot table or the chart to include groups even if there wasn't data. Seems like it would be very handy to do.

  4. #4
    Registered User
    Join Date
    05-17-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Pivot and group dates - Force to show all groupings?

    A-ha!

    Figured it out. In the pivot table right click on the grouped date in the rows, and go to field settings. In field settings to to Print & Layout tab, and there is a box for "Show items with no data"

    Check this and you'll get the blank months showing up. It adds in some stuff for the edges (beyond the edge of the year, on either side for example)

    But you can throw a slicer in on the year and clean that up quickly.

    Works exactly how I wanted it to!

+ 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. Pivot table won't group dates
    By hwishman in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-25-2015, 06:37 PM
  2. VBA Pivot Table Group and show maximum value
    By mariosgarg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2012, 01:03 PM
  3. Pivot Group Dates - how to remove start and end dates from table
    By markoloughlin in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-21-2012, 04:19 AM
  4. Pivot table's Group and show details not available
    By gideone in forum Excel General
    Replies: 1
    Last Post: 08-31-2011, 10:08 AM
  5. Pivot table group dates
    By RD Wirr in forum Excel General
    Replies: 3
    Last Post: 07-22-2006, 03:10 PM
  6. Replies: 4
    Last Post: 03-17-2005, 06:06 PM
  7. Replies: 6
    Last Post: 01-14-2005, 06:06 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