Pivot Table Issues

How to Show a Zero Count for a Missing TRUE Item in an Excel PivotTable

Maira MehtabMaira Mehtab Nov 3, 2026 869 views

Question details

The user needs a PivotTable to display a TRUE category with a count of zero, even when the underlying source data contains no TRUE records and defaults entirely to FALSE.

How to Show a Zero Count for a Missing TRUE Item in a PivotTable
Product
Excel
Device & OS
not provided
Scenario
Counting Boolean (TRUE/FALSE) values in a PivotTable where one of the states is temporarily missing from the active dataset.
Observed behavior
The missing Boolean item (TRUE) completely disappears from the PivotTable layout instead of remaining visible with a 0 count.
Before you start

Verify that your PivotTable source range includes the entire dataset and ensure that your PivotTable Options are configured to display '0' for empty cells before modifying the field settings.

Solution 1Recommended

Enable 'Show Items with No Data' in Field Settings

This is the most direct method to retain categories in a PivotTable layout even when the current filtered data has no matching records.

By default, PivotTables automatically hide items that contain no data to keep the report concise. If the item (TRUE) has existed in the data previously but was filtered out or removed in a recent update, you can force the PivotTable to remember and display it.

1
Open Field Settings

Right-click the TRUE/FALSE field item inside your PivotTable and select 'Field Settings' from the context menu.

2
Change Layout Options

In the Field Settings dialog box, navigate to the 'Layout & Print' tab.

3
Enable Empty Items

Check the box next to 'Show items with no data' and click OK.

4
Set Empty Cells to Zero

Right-click anywhere in the PivotTable, select 'PivotTable Options', and on the 'Layout & Format' tab, check 'For empty cells show:' and type '0' in the box.

Enable 'Show Items with No Data' in Field Settings
Data Cache Limitation: This setting only works if the PivotTable cache has seen the 'TRUE' value at least once. If the source data has never contained a TRUE value, proceed to the next solution.
Advanced Data Analysis

Easily Manage PivotTables with WPS Spreadsheet

WPS Spreadsheet provides powerful and intuitive PivotTable features, allowing you to easily handle missing data items, format empty cells, and analyze your datasets without complex workarounds.

  1. 1. Insert a PivotTable: Highlight your dataset in WPS Spreadsheet, navigate to the 'Insert' tab, and click 'PivotTable'.
  2. 2. Configure the Boolean Field: Drag your TRUE/FALSE data column into the 'Rows' area of the PivotTable task pane.
  3. 3. Enable Empty Items: Double-click the field header in the PivotTable, go to 'Layout & Print', and check 'Show items with no data'.
  4. 4. Format Zero Values: Right-click the table, open 'Options', and configure 'For empty cells show' to display '0'.
Fully compatible with Microsoft Excel PivotTables and source dataIntuitive Field Settings menu to quickly 'Show items with no data'Lightweight, fast performance even with large data models
microsoft office alternative - wps office

Frequently Asked Questions

Why is 'Show items with no data' greyed out or missing?

This option is typically disabled if the field is part of a grouped selection or if it is a calculated field. Ensure you are applying the setting to the base field directly. Also, OLAP-based Data Model PivotTables handle missing items differently and may restrict this specific toggle.

How do I force empty cells to display '0' instead of remaining blank?

Right-click any cell within the PivotTable and choose 'PivotTable Options'. On the 'Layout & Format' tab, locate the 'Format' section. Check the box labeled 'For empty cells show:' and enter a '0' in the adjacent text field.

Will a Data Model solve missing category issues automatically?

Yes. If you add your data to the Data Model and create a relationship with a separate lookup table (a table that strictly defines both TRUE and FALSE categories), the PivotTable can pull the row headers from the lookup table, guaranteeing both items are always displayed regardless of the transactional data.