Timeline feature was first introduced in Excel 2013 and the good news is you can use it with a pivot table as well. It can be a game changer for you to filter dates in a pivot table.
Because the problem with default filter option is that it’s very hard to filter with months, quarters and years if you have simple dates.
But with a timeline filter is you don’t need to open the filter, again and again, you just do it with a single click. That’s why Microsoft has introduced the timeline filter option.
A timeline is just like a slicer, the difference is that the timeline only filters dates. So today in this post, I’d like to share with you simple steps to add a timeline filter to filter dates in a pivot table.
NOTE: Pivot Tables are one of the INTERMEDIATE EXCEL SKILLS.
Steps to Insert Timeline in Pivot Table
- Select any of the cells from your pivot table.
- Go to Pivot Table Tools → Analyze → Filter → Insert Timeline.
- Click on insert timeline and you’ll get a pop-up box.
- From the pop-up window, select the date columns which you have in your data.
- Click OK.
Now you have a timeline filter in your worksheet and you can filter your pivot table with this.
Related: Excel Slicer
Components of a Timeline Filter
Following are some major components you can use to master timelines.
- Clear Filters: You can use this button to clear all filters.
- Time Level: From the time level option you can use four different time levels. You have days, months, quarters, and years to use as time level.
- Timeline: Use the timeline to filter dates for the period you want. You can filter dates for days, months, quarters, and years. You also select more than a day, month, quarter & year but only in sequence.
- Scrollbar: Use the scrollbar to get to scroll through the days, months, quarters, and years.
Customizing a Timeline
You also have options to customize your timeline. You can make the following changes in it.
1. Change Size
You can change the size of a pivot table timeline by using the following steps.
- Select your timeline.
- Go To Timeline Tools → Options → Size.
- Change the height and width of your timeline.
And another best way is to resize a timeline from its borders.
2. Change Caption Name
By default, it will show you the caption name same as your column name which you have selected to insert a timeline. But you can change it anytime by using the following steps.
- Select your timeline.
- Go To Timeline Tools → Options → Timeline → Timeline Caption.
- Enter a new name.
- Hit enter.
3. Apply Timeline Styles
Yes, you can use different styles for your timeline in the pivot table. There are total of 12 different theme styles you can use for the pivot table timeline.
You can also create a customized theme for your timeline by creating a new Timeline style.
You have the following options to customize in your timeline.
4. Link a Timeline with more than one Pivot Table
Like a slicer, you can also link a timeline with more than one pivot table. Just follow these simple steps to do that.
- Select your timeline and right click on it.
- Now, click on Report Connections.
- Now, you’ll get a pop window with the list of pivot tables.
- Tick mark the pivot tables which you want to link with the timeline.
- And, click OK.
Hi,
very interesting, however, the data doesnt appear in the downloaded file so it’s not possible to follow the steps, rgds, david
New feature explained very well.
Thanks
Hello Puneet:
I find the How to use Pivot Table Timeline in Excel very interesting. However, I would like to recreate the Pivot Table from scratch using the source data. Is it at all possible to send me the source data worksheet? I would be very grateful.
Thanks.
Hi Puneet,
Update to previous Time Line post.
I have been using TimeLines for nearly 3 years in an expanding dataset. (Date/Event/Other causal events associated with the entry.) The problem I have is that the TimeLine regularly disappears, and I will have to reinstate it. One of my datasets now has 60 Connections. The only event that appears to trigger it (but not always!) is a blank line at the bottom of the table. This also will ungroup pivot tables that have dates in them. Otherwise, the Time Line is a fantastic addition, and superb for this particular task.
Do you have any experience of a disappearing TimeLine?
this is really awesome sir!!!
I must be missing something. I reconstructed your pivot table but when I clicked on “Insert Timeline” I got the message, “We can’t create a Timeline for this report because it doesn’t have a field formatted as Date.” But neither does yours best I can tell. I even entered dates for the months in the column headers but it still didn’t work. So what’s the secret?
Timeline Use,
Hi Puneet, I use a Timeline to control 32 pivot tables each with its own graph. very useful and impressive. The only snag is that it keeps disappearing every now and again so I have to keep re-inserting it.
SteveT
Love the timeline slicer but I hate that you can’t protect the worksheet and use the time level – help rock the vote and let’s get this FIXED!!! – https://excel.uservoice.com/forums/304921-excel-for-windows-desktop-application/suggestions/10765209-enable-the-time-level-functionality-of-the-timelin
Done
I already use timelines with pilot tables, but this lesson learned me somre new tricks, thank you!
Thanks for your words