Sub topic 2
Resizing, arranging columns, and applying styles
Assume you can create a PivotTable, use field drop-down filters, and recognize true Excel dates. These skills are needed before adding visual controls.
Format a slicer
Select the slicer to display the Slicer tab. Drag its sizing handles to change its height or width. A wider slicer can show longer item names. A taller slicer can show more items without scrolling.
Use Columns on the Slicer tab to arrange buttons across the slicer. For example, three columns can make a long list fit a dashboard. Apply a built-in style to match the report. Keep button text readable and leave enough space for the selected-state color.
Open Slicer Settings to change the caption, sort order, and visibility of items without data.
| Setting | Use |
|---|---|
| Caption | Change the title displayed above the slicer |
| Sort items | Show values ascending, descending, or in source order |
| Items with no data | Show or hide values that currently return no records |
A slicer filters by clicking buttons. Ctrl-click, or use the Multi-Select button, to choose several items. The clear-filter button removes the selection.
What timelines are
A timeline is a visual filter designed for a date field. Unlike a slicer, it presents a continuous time range. Use a timeline when users need to filter sales, tickets, or other measures by periods.
You can switch its level between Years, Quarters, Months, and Days. The selected range then filters connected PivotTables.
Prepare and insert a timeline
The source column must contain real Excel date values, not text that merely looks like dates. The column should also have a clear header and should not contain errors or incompatible values. Refresh the PivotTable after cleaning the source.
Select the PivotTable, then choose PivotTable Analyze > Insert Timeline. Select the date field and choose OK. Use the level menu on the timeline to change its time unit, then drag across the period to filter it.
Exercise
A timeline option is disabled. What should you check first?
Show answer
Check that the selected PivotTable has a field containing true Excel dates, then refresh the PivotTable.