Drill Down a Date Column in Pivot Table in Google Sheets (Year → Quarter → Month)

Published on

When working with date-based data in Google Sheets, you often need summaries at multiple levels—yearly, quarterly, and monthly—without creating extra helper columns in your source data.

For example, imagine a credit card or bank statement covering multiple financial years. You want to:

  • View totals by Year
  • Drill down to Quarter
  • Further drill down to Month

All of this can be done using a single date column in a Pivot Table.

Google Sheets Pivot Tables support date grouping, which automatically creates a date hierarchy—no need to add Year, Quarter, or Month columns to your dataset.

This tutorial shows exactly how to drill down and drill up a date column in a Pivot Table using built-in date grouping.

This article is part of the larger guide: Pivot Table Formatting, Output & Special Behavior in Google Sheets (hub)

Step 1: Create the Pivot Table

  1. Select your source data (for example, A3:F13)
  2. Go to Insert → Pivot table
  3. Choose New sheet and click Create
Sample sales data with date, description, and amount columns used to create a Pivot Table in Google Sheets

In the Pivot table editor:

  • Rows → Date
  • Values → Qty. (or Amount)
  • Columns → Description (optional)
Pivot table editor in Google Sheets showing Date in Rows, Description in Columns, and Amount in Values

At this stage, dates appear at their lowest level, so there’s nothing to drill down yet.

Pivot Table in Google Sheets generated from date-based data before applying date grouping

Step 2: Define the Date Hierarchy (Grouping)

To enable drill-down, the date column must be grouped.

Decide the hierarchy first. Common options include:

  • Year → Quarter → Month (used here)
  • Year → Month
  • Quarter → Month
  • Month → Day of week

In this example, we’ll use a three-level hierarchy: Year → Quarter → Month

Step 3: Drill Down the Date Column in the Pivot Table

Group Dates by Year

  1. Right-click any date in the Pivot Table
  2. Select Create pivot date group → Year

A new Year level appears in the Rows area.

Grouping a date column by Year in a Google Sheets Pivot Table using right-click menu

Add the Quarter Level

  1. Open the Pivot table editor
  2. Under Rows, click Add → Date
  3. Right-click a date in the new column
  4. Select Create pivot date group → Quarter
Adding Quarter level to a date hierarchy in a Google Sheets Pivot Table

Add the Month Level

Repeat the same process:

  1. Add Date again under Rows
  2. Right-click a date
  3. Select Create pivot date group → Month

Your Pivot Table now shows a collapsible date hierarchy.

Final drill-down date hierarchy in Google Sheets Pivot Table showing Year, Quarter, and Month

How to Drill Down or Drill Up Dates

  • Click ➖ (minus) to collapse a level
  • Click ➕ (plus) to expand it

You can move seamlessly between Year, Quarter, and Month views.

You may also add Day of week as an additional level, but it’s optional and depends on reporting needs.

Why This Method Is Better Than Helper Columns

  • No extra Year / Month / Quarter columns needed
  • Cleaner source data
  • Fully dynamic reporting
  • Works with any valid date column

If you’re working extensively with Pivot Tables, this tutorial is part of a broader resource covering:

  • Formatting behavior
  • Output quirks
  • Special Pivot Table limitations

👉 Pivot Table Formatting, Output & Special Behavior in Google Sheets

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Top Discussions

More like this

Pivot Table Formatting, Output & Special Behavior in Google Sheets

Pivot Tables in Google Sheets are powerful—but they can get tricky once you move...

Pivot Table Calculations & Advanced Metrics in Google Sheets

When it comes to built-in tools for data analysis and visualization in Google Sheets,...

Google Sheets Pivot Table Tutorial: Basics, Setup, and Date Grouping

The easiest way to summarize, analyze, and report data in Google Sheets is by...

2 COMMENTS

  1. I follow your posts on google sheets regularly and also a subscriber of your blog. I have an interesting problem/challenge for you that could be a topic for your post also.

    Kindly go through a post http://www.contextures.com/xlPivot-Filter-Source-Data.html. It provides a code for excel pivot table by which double-clicking opens the data source with filters showing just the rows that make the value for the double-clicked cell.

    I find this feature very very useful and has been looking for a script for Google Sheets. But did not have any luck so far.

    There is a data drill feature in Google Sheets pivot that throws such rows but only on a new Sheet, not the filtered data source that I am looking for.

    I feel there should be some way to replicate the code in the above post for google sheet also or maybe some round-about way.

    After a lot of searching, I feel you are the only person who can probably help. Request you to kindly write a post on this problem and provide some solution.

    • Hi, S K Srivastava,

      When you double click on any aggregated values in Sheets Pivot Table, Google Sheets open a new tab to show the details associated with it. I understand you do not like this feature and want the details within the Pivot Table Sheet tab.

      For this, I can only think about a formula based workaround as I’m not familiar with Apps Script. One thing I can recommend you is using a Query.

      =query(A3:B,"Select * where A='"&E3&"'")

      Details from Pivot Table with the help of Query

      Change E3 in the formula.

      If you may not like such a solution you might find lucky asking your question on the Google Community Forum.

      https://support.google.com/docs/threads?hl=en&thread_filter=(category:docs_sheets)

      Please post your question there. There are lots of contributors who can help you with this.

      You can also find me there 😀

      Best,

      Prashanth KV

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.