Sub topic 14
Troubleshooting Common Problems
This chapter assumes you can build a PivotTable, insert a slicer or timeline, and open Report Connections. It covers the problems you are most likely to meet and how to fix each one.
Start With the Working Model
A slicer or timeline does not filter the worksheet. It filters one or more PivotTables through a shared cache. Most problems come from one of three places: the source data, the pivot cache a PivotTable uses, or the connection between the control and the PivotTable.
The Timeline Is Disabled or Cannot Be Inserted
The Timeline button is grayed out, or Excel reports that the PivotTable has no date field. Timelines need a field that holds true dates.
Check these causes in order:
- The date column contains text that looks like dates. Left-aligned values are a common sign. Convert them with Data > Text to Columns, or with a formula such as
=DATEVALUE(A2). - The column has blank cells or mixed text and dates. Fix or remove them.
- The date field was grouped into years or months in the PivotTable. Insert the timeline on the original date field, not on the grouped field.
- The workbook is in an older file format. Save it as
.xlsxand try again.
After you fix the source, refresh the PivotTable (Alt+F5) and insert the timeline again.
A PivotTable Is Missing From Report Connections
You open Report Connections and a PivotTable you expected is not listed. A control can only connect to PivotTables that share its pivot cache.
This happens when you create each PivotTable separately from the same range. Excel may build a new cache each time. To avoid it, copy and paste an existing PivotTable, or create the new one from the same cache when Excel offers it. The VBA example in the final chapter relies on the same rule.
The Slicer Shows Old or Unexpected Items
A slicer lists items from the pivot cache. It does not read the source range directly. If you add new rows or a new region, the slicer will not show them until the data refreshes.
- Refresh all PivotTables with Data > Refresh All.
- Use an Excel Table as the source so new rows join the range automatically.
- Deleted items may still appear. Open Slicer Settings and check the option for showing items deleted from the data source. To clear them for good, open PivotTable Options > Data and set Number of items to retain per field to None, then refresh.
- Items with no data may appear grayed out. Whether they appear is a slicer setting, covered earlier in this tutorial.
The Filter Seems Not to Work
If selecting an item changes nothing, check these points:
- Another control or a report filter may already exclude those rows. Clear every filter and try again.
- The slicer may be connected to a different PivotTable than the one you are looking at.
- Calculation or refresh may be paused, for example if the workbook is in manual calculation mode. Press F9.
Common Symptoms at a Glance
| Symptom | Likely cause | Fix |
|---|---|---|
| Timeline button is gray | Field holds text, not dates | Convert to true dates, refresh |
| PivotTable not listed in Report Connections | Different pivot cache | Rebuild from the same cache |
| New items missing | Data not refreshed | Refresh All, use an Excel Table |
| Deleted items still listed | Items retained in cache | Set retained items to None, refresh |
| Slicer changes nothing | Connected to another PivotTable | Check Report Connections |
Exercise
A colleague sends you a workbook. The Timeline button is gray on a PivotTable, and a second PivotTable is missing from the Report Connections list of a Region slicer. Name the likely cause of each problem and one fix for each.
Show answer
The gray Timeline button usually means the date column holds text instead of true dates, so convert the column to real dates and refresh. The missing PivotTable most likely uses a different pivot cache, so rebuild it by copying the first PivotTable or creating it from the same cache.