How to Create a Date Hierarchy in an Excel Pivot Table – 7 Steps

This is the sample dataset.

how to create date hierarchy in excel pivot table


Step 1 – Add the Dataset to the Data Model

  • Select the entire dataset B4:E12.
  • Go to Power Pivot
  • Select Add to Data Model.

  • Excel will add the dataset to the data model.

how to create date hierarchy in excel pivot table


Step 2 – Activate the Diagram View

  • Select Diagram View in Data Model

  • Excel will activate the Diagram View.

how to create date hierarchy in excel pivot table


Step 3 – Select the Columns to Create a Hierarchy

  • Select the column Year.
  • Right-click .
  • Select Create Hierarchy.

how to create date hierarchy in excel pivot table


Step 4 –  Create a Child Hierarchy Level

The Month and Date columns will be the child levels:

  • Drag them one by one within the parent hierarchy level.

Read More: How to Create Multi Level Hierarchy in Excel


Step 5 – Create a PivotTable

  • Select PivotTable.

how to create date hierarchy in excel pivot table

  • Select New Worksheet.
  • Click OK.

  • Excel will create a PivotTable.

how to create date hierarchy in excel pivot table


Step 6 – Edit the PivotTable Fields

  • Drag Date Hierarchy to Rows and Sales to Values. You will find the Sales column in More Fields

  • To see the hierarchy, click the + icon.

how to create date hierarchy in excel pivot table

This is the output.

Read More: How to Add Row Hierarchy in Excel


Step 7 – Format the PivotTable

how to create date hierarchy in excel pivot table

Read More: How to Create Hierarchy in Excel Pivot Table


Things to Remember

  • You must activate the Power Pivot add-in.

Download Practice Workbook

Download this dataset and practice.


Related Articles


<< Go Back to Hierarchy in Excel | SmartArt in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Akib Bin Rashid
Akib Bin Rashid

AKIB BIN RASHID, a materials and metallurgical engineer, is passionate about delving into Excel and VBA programming. To him, programming is a valuable time-saving tool for managing data, files, and internet-related tasks. Proficient in MS Office, AutoCAD, Excel, and VBA, he goes beyond the fundamentals. Holding a B.Sc in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, MD AKIB has transitioned into a content development role. Specializing in creating technical content centred around Excel and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo