+ Reply to Thread
Results 1 to 15 of 15

Showing each month in a year in Pivot Table

  1. #1
    Registered User
    Join Date
    01-27-2020
    Location
    Simi Valley
    MS-Off Ver
    Office365
    Posts
    8

    Showing each month in a year in Pivot Table

    My data that I'm creating a pivot table from does not have data for selected months. When I create the pivot table naturally shows months missing.
    I need to show in the pivot table if the month does not have a value show the month with a value of 0
    I have tried adding a row in my source data indicating month but then it shows up in pivot table with a data value of 1.

    Please advise

    Pivot1.JPG

    Source Data

    PivotSourceData.JPG

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Showing each month in a year in Pivot Table

    Sight of the workbook would be useful. It's always easier if we can see the context.

    Are you show yuo don't have a space character in the months?

    In the PT Options have you ticked the 'for empty cells show' choice and set it to show zero?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-27-2020
    Location
    Simi Valley
    MS-Off Ver
    Office365
    Posts
    8

    Re: Showing each month in a year in Pivot Table

    Thanks for reply:

    What does this mean: Are you show yuo don't have a space character in the months?

    In the PT Options have you ticked the 'for empty cells show' choice and set it to show zero? No as looks god awful

    PivotSourceData.JPG

    Pivot1.JPG

    Data crossed-out or deleted as sensitive public info.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Showing each month in a year in Pivot Table

    Sorry that was a typo

    I should have said are you sure you don't have a spce character in the months. And by the months I meant the blank months you've added to the database.

    Sorry I don't know what you mean by your response to my question about ticking the 'for empty cells..' option.

    Plese upload the workbook. Pictures are rarely much use. Anonymise the data if necessary.

  5. #5
    Registered User
    Join Date
    01-27-2020
    Location
    Simi Valley
    MS-Off Ver
    Office365
    Posts
    8

    Re: Showing each month in a year in Pivot Table


  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Showing each month in a year in Pivot Table

    Perhaps this will be of help:
    1. Produce a Months column (F) of dates using: =DATE(RIGHT(A2,2)+2000,MONTH(DATEVALUE(A2)),1)
    2. In the pivot table Columns field replace Month with month and year from the new column (Months)
    3. In the field settings for Months select Layout & Print > check Show items with no data
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    01-27-2020
    Location
    Simi Valley
    MS-Off Ver
    Office365
    Posts
    8

    Re: Showing each month in a year in Pivot Table

    That did it - Thank you very much

  8. #8
    Registered User
    Join Date
    01-27-2020
    Location
    Simi Valley
    MS-Off Ver
    Office365
    Posts
    8

    Re: Showing each month in a year in Pivot Table

    I spoke to quick. Mgt. only wants to see 12 months worth of data not 2 years. When I select the pull down I see 2019 and 2020 and no way to say show from Feb 2019 to Jan 2020. Ideas?

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Showing each month in a year in Pivot Table

    Do you mean any 12 months?

    e.g. May 2019 to April 2020

  10. #10
    Registered User
    Join Date
    01-27-2020
    Location
    Simi Valley
    MS-Off Ver
    Office365
    Posts
    8

    Re: Showing each month in a year in Pivot Table

    Yes they want proceeding 12 month from current month. So if I had to report today 1/31 it would be February 2019 to January 2020. In Feb, I will report March 2019 to Feb 2020. Thanks

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Showing each month in a year in Pivot Table

    Here is a low tech proposal which will require manual monthly update to group the columns containing months that you do not want to see.
    I'll look into a more automatic solution later, unless someone else comes up with a solution beforehand.
    Let us know if you have any question.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    01-27-2020
    Location
    Simi Valley
    MS-Off Ver
    Office365
    Posts
    8

    Re: Showing each month in a year in Pivot Table

    THANKS! What was the specific changes you made?

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Showing each month in a year in Pivot Table

    The columns have been grouped. Select the 3 at the top left of the spreadsheet, below the Name Box and above the Row Numbers, and the grouped columns will appear. Selecting the 1 will again group the columns so that they are not visible.
    Let us know if you have any questions.

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Showing each month in a year in Pivot Table

    I cleaned the pivot table up a bit so that it has only two levels. The range on sheet 1 has been converted to a table so that when rows are added the source data of the pivot table will change automatically.
    Sorry not to be able to get the display of months to update along with the current month, I'll ask some of the other contributors to take a look.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    01-27-2020
    Location
    Simi Valley
    MS-Off Ver
    Office365
    Posts
    8

    Re: Showing each month in a year in Pivot Table

    Really appreciate the work.

+ 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. [SOLVED] Want to make pivot table that breaks down by year then month
    By chough10 in forum Excel General
    Replies: 2
    Last Post: 01-03-2019, 11:27 AM
  2. Showing resources per month in a pivot table
    By eoindeb in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-11-2018, 12:55 PM
  3. Pivot table - showing difference from previous month
    By sharp_shooter in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-16-2017, 11:26 AM
  4. Return month and year from pivot table
    By potatoman in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-08-2014, 07:28 AM
  5. How to add Month-on-Month and Year-on-Year %Variance into a pivot table
    By emeritus1812 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-09-2013, 02:37 AM
  6. [SOLVED] Sort by Month and year in pivot table
    By mb1074 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-21-2013, 02:05 PM
  7. Pivot table showing wrong data (date not month)
    By rushdenx1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2010, 06:59 AM

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