Sub topic 10
Switching time levels and selecting date ranges
This chapter assumes you can build a PivotTable from a range or Excel Table, and that you have already inserted a timeline on a true date field. If the timeline button is disabled or the field holds text, fix that first (see the chapter on preparing a date field). Here we focus on how to drive a timeline once it exists.
What the timeline shows
A timeline is a horizontal scale of dates. Along the top is a label showing the current selection, such as Jan 2025 - Mar 2025. Below it is a drop-down that sets the time level. Under that sits the scrolling bar of time blocks, with a scroll bar beneath.
Each block on the bar is one unit of the current time level. Selected blocks are shaded. Unselected blocks stay white or grey. The PivotTable shows only rows whose date falls inside the shaded range.
The time level controls what one block means. It does not change your data. Switching levels changes the size of the blocks you click, and a selection made at one level is carried to the next as the equivalent date range.
The four time levels
The drop-down at the top right of the timeline offers four levels.
| Level | One block equals | Typical use |
|---|---|---|
| Years | A calendar year | Multi-year comparisons |
| Quarters | A calendar quarter (Q1 is Jan-Mar) | Quarterly reviews |
| Months | A calendar month | Seasonality and monthly reporting |
| Days | A single day | Short windows, daily operations |
Quarters follow the calendar year. A timeline has no setting for a fiscal year that starts in another month. If your company's fiscal year starts in July, "Q1" on the timeline still means January to March. To report by fiscal period, add a fiscal-period column to the source data and use a slicer on that column.
To switch levels:
- Click the timeline so the Timeline tab appears on the ribbon.
- Click the level drop-down in the top right corner of the timeline, which shows the current level.
- Choose Years, Quarters, Months, or Days.
The bar redraws at once. The PivotTable does not change just because you switched levels. Only your next selection changes the filter.
Selecting a date range
Select one block
Click a block. The PivotTable shows only that period. At the Months level, clicking Mar under 2025 filters to March 2025.
Select a continuous range
You can select several blocks in a row in two ways:
- Click the first block, then hold Shift and click the last block.
- Click a block and drag across the bar to the last block you want.
You can also drag the handles at the ends of the shaded area. Drag the left handle to move the start date, and the right handle to move the end date. This is the fastest way to adjust a range you already have.
The selection must be continuous. A timeline cannot select March and May without April. If you need non-adjacent periods, use a slicer on a Month field instead. The slicer chapters cover how to add that field.
Select across years
At the Months level, the bar scrolls past year boundaries. A range such as Nov 2024 to Feb 2025 is one continuous selection. You do not need to select each year separately.
Mixing levels
Level choice affects precision. The block you click defines the start and end of the range.
- At the Years level, clicking
2025selects 1 Jan 2025 through 31 Dec 2025. - At the Quarters level, clicking
Q2selects 1 Apr through 30 Jun. - At the Months level, clicking
Febselects 1 Feb through the last day of February, including 29 February in a leap year. - At the Days level, clicking a block selects exactly that day.
Suppose you want 10 March to 20 April. Only the Days level can express that. Switch to Days, click 10 March, then Shift-click 20 April.
If you then switch to Months, the label still shows the exact dates, and the shaded area covers the partial months. The filter stays as it was until you click again. Clicking a month block at that point replaces the partial range with the whole month.
Worked example
You have a sales PivotTable with a date field named Order Date, covering January 2024 to December 2025.
- Insert a timeline on
Order Date. - Set the level to Years and click
2025. The PivotTable shows 2025 only. - Switch the level to Quarters. The label still reads 2025, and the bar now shows quarter blocks with all four quarters of 2025 shaded.
- Click
Q3. The PivotTable now shows July to September 2025. - Switch to Months and Shift-click
Augto extend the range. Because Jul is selected already, the range is Jul to Aug.
Moving from coarse to fine levels like this is a common pattern. Start broad to orient yourself, then narrow.
Clearing the timeline filter
A timeline has a Clear Filter button in the top right corner of the header, a funnel icon with a red cross. Click it to remove the date restriction. All dates in the source return, and the label changes to All Periods.
You can also press Alt + C while the timeline is selected. Clearing does not remove the timeline. It only removes the filter.
Scrolling and large date ranges
If the data spans many years, the bar is wider than the control. Use the scroll bar beneath the bar to move along the dates. Dragging the scroll bar does not change the selection. It only changes which blocks are visible.
Two habits help:
- Widen the timeline (drag a side handle or set the width on the Timeline tab) so more blocks fit.
- Use the Years or Quarters level for orientation, then switch to Months once you have scrolled to the right area.
Edge cases
- Dates outside the data. The bar spans the full range of dates in the pivot cache. Blocks for periods with no rows still appear, but clicking one yields an empty PivotTable.
- Blank dates. Rows with an empty date cell fall outside every block. They are hidden whenever any timeline filter is active, and return only after you clear it.
- Time stamps. A date with a time (for example
2025-03-10 14:30) belongs to the Days block for 10 March. The time portion is ignored. - Connected PivotTables. A timeline filters every PivotTable connected to it. If the range looks wrong on one table, check Report Connections. That topic has its own chapter.
- Existing field filters. If the date field also has a manual filter in the PivotTable, the timeline and that filter interact. Clear the manual filter first, or you may see fewer dates than you selected.
Quick reference
| Task | How |
|---|---|
| Change level | Level drop-down in the top right of the timeline |
| Select one period | Click a block |
| Select a range | Shift-click or drag across blocks |
| Adjust start or end | Drag the handles on the shaded area |
| Clear the filter | Clear Filter button in the header |
| See other dates | Use the scroll bar under the bar |
Exercise
A PivotTable has a timeline set to the Years level with 2025 selected. You switch the level to Months. What does the PivotTable show now, and how would you narrow it to 15 January through 10 February 2025?
Show answer
After switching to Months, the PivotTable still shows all of 2025, because changing the level does not change the filter. At the Months level you can select only whole months, so you would switch to the Days level, click 15 January, and Shift-click 10 February. The label should then read the exact date range.
Exercise
Your manager wants to compare March and May of 2025 side by side, without April. Can a single timeline do this? What would you use instead?
Show answer
No. A timeline selects only a continuous range, so March to May would include April. Add a Month field to the PivotTable source (or group the dates by month) and insert a slicer on it. A slicer lets you Ctrl-click March and May without April.