Pivot Table Date "Show items with no data" does not respect grouped date range

mdiller

New Member
Joined
Jan 25, 2018
Messages
4
Hi Everyone! First post here. There is SO much good on this site that I've taken, and until now haven't had to ask! Bravo. :)

Here is the situation:
  • I have a data set of complaints with a date field and a product field.
  • Some of the products do not get a complaint every month.
  • I automatically create a PivotTable/PivotChart of the data using VBA which I use multiple times per month.
  • The resulting file is provided to...not so excel savvy coworkers (i.e. they can't be required to do anything but copy paste the data into their presentations)
  • Presented data covers a rolling 12 month window.
  • Users can filter for their specific product line and complaint category (this means brute force adding rows of "dummy" data to the data set isn't going to work.)
  • I'd be happy with a VBA solution if there is one, but would prefer to find some PivotTable setting I'm missing. Currently I have VBA copy and paste the data outside of the PivotTable, but it is VERY clumsy solution.
  • I'm using Excel 2010...but may get upgraded to 2013 soon.

And here are my current options (that I know of):
  1. "Show items with no data" = False
    • When I show months and year (grouping the date field) the months with no data get skipped.
  2. "Show items with no data" = True
    • This ensures that all the months are included, BUT it also includes the months before and after my 12 month window.

Example:
  • Here is a made up example of the resulting PivotTable and the current options and solution I am looking for.
    • Month Year# ComplaintsOption 1:
      Show Items with
      no data" = True
      Option 2:
      "Show Items with
      no data" = False
      Preferred
      Solution
      <June 2016100VisibleVisibleVisible
      Jan 2016N/A out of rangeVisibleNot VisibleNot Visible
      Feb 2016N/A out of rangeVisibleNot VisibleNot Visible
      Mar 2016N/A out of rangeVisibleNot VisibleNot Visible
      Apr 2016N/A out of rangeVisibleNot VisibleNot Visible
      May 2016N/A out of rangeVisibleNot VisibleNot Visible
      June 20165VisibleVisibleVisible
      July 20160VisibleNot VisibleVisible
      Aug 20160VisibleNot VisibleVisible
      Sep 20160VisibleNot VisibleVisible
      Oct 20160VisibleNot VisibleVisible
      Nov 20161VisibleVisibleVisible
      Dec 20161VisibleVisibleVisible
      Jan 20170VisibleNot VisibleVisible
      Feb 20170VisibleNot VisibleVisible
      Mar 20170VisibleNot VisibleVisible
      Apr 20170VisibleNot VisibleVisible
      May 20170VisibleNot VisibleVisible
      Jun 2017N/A out of rangeVisibleNot VisibleNot Visible
      Jul 2017N/A out of rangeVisibleNot VisibleNot Visible
      Aug 2017N/A out of rangeVisibleNot VisibleNot Visible
      Sep 2017N/A out of rangeVisibleNot VisibleNot Visible
      Oct 2017N/A out of rangeVisibleNot VisibleNot Visible
      Nov 2017N/A out of rangeVisibleNot VisibleNot Visible
      Dec 2017N/A out of rangeVisibleNot VisibleNot Visible
      >May 2017100VisibleVisibleVisible

      <tbody>
      </tbody>

Any ideas? I've been looking for a solution for a few years now, and have found nothing online. Am I the only one that runs into this problem???
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Somehow I missed that first box under "Month Year" (cell A2 if you will). It should say <Jun 2016.
 
Upvote 0
OK, I'm going crazy. In both the original post and the reply it seems like the less than sign removes everything after it. What I wanted to say was that the cell should say "Less than Jun 2016" or "<Jun 2016".
 
Upvote 0
Good morning,

I am having the same issue, and I have been trying to work through it for about a week with no headway. Any possible solutions out there?
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top