Summary

When a filter is applied to a Pivot Table, you may see rows or columns disappear. This is because pivot tables, by default, display only items that contain data. In the example shown, a filter has been applied to exclude the East region. Normally the Blue column would disappear, because there are no entries for Blue in the North or West regions. However, Blue remains visible because field settings for color have been set to "show items with no data", as explained below.

Fields

The pivot table shown is based on three fields: Region, Color, and Sales:

Field list used for pivot table as shown

Region has been configured as a Row field, Color as a Column field, and Sales is a Value field. 

Data has been filtered by Region to exclude East:

Filter applied to exclude East region

To force the display of items with no data, "Show items with no data" has been enabled on the Layout & Print tab of the Color field settings, as seen below:

Color field settings

To force the pivot table to display zero when items have no data, a zero is entered in general pivot table options:

General pivot table settings - zero for empty cells

Finally, the Accounting number format has been applied to the Sales field to display empty cells with a dash (-).

Note: the same problem can occur with dates are grouped as months, and no data appears in a given month. You can use the same approach, with a few extra steps, described here.

Steps

  1. Create a pivot table
  2. Add Region field to Rows area
  3. Add Color field to Columns area
    1. Enable "show items with no data"
  4. Add Sales field to Values area
    1. Apply Accounting number format
  5. Set pivot table options to use zero for empty cells