Introduction

The pivot table is the single most powerful command in all of Excel. Pivot tables came along during the 1990s, when Microsoft and Lotus were locked in a bitter battle for dominance of the spreadsheet market. The race to continually add enhanced features to their respective products during the mid-1990s led to many incredible features, but none as powerful as the pivot table.

With a pivot table, you can transform one million rows of transactional data into a summary report in seconds. If you can drag a mouse, you can create a pivot table. In addition to quickly summarizing and calculating data, pivot tables enable you to change your analysis on the fly by simply moving fields from one area of a report to another.

No other tool in Excel gives you the flexibility and analytical power of a pivot table.

What You Will Learn from This Book

It is widely agreed that close to 60% of Excel users leave 80% of Excel untouched. That is, most users do not tap into the full potential of Excel’s built-in utilities. Of these utilities, the most prolific by far is the pivot table. Despite the fact that pivot tables have been a cornerstone of Excel for almost 20 years, they remain one of the most underutilized tools in the entire Microsoft Office suite.

Having picked up this book, you are savvy enough to have heard of pivot tables—and you have perhaps even used them on occasion. You have a sense that pivot tables provide a power that you are not using, and you want to learn how to leverage that power to increase your productivity quickly.

Within the first two chapters, you will be able to create basic pivot tables, increase your productivity, and produce reports in minutes instead of hours. Within the first seven chapters, you will be able to output complex pivot reports with drill-down capabilities and accompanying charts. By the end of the book, you will be able to build a dynamic pivot table reporting system.

What Is New in Excel 2016’s Pivot Tables

Luckily, Microsoft continues to invest heavily in business intelligence (BI), and pivot tables are the front end that let you access the new features. Some of the features added to Excel 2016 pivot tables include the following:

Image Pivot tables now provide auto grouping for date or time columns. If you add a date column to the Rows or Columns area, Excel will automatically group the data up to Months and collapse to Months. If the data spans more than one year, Excel will add Quarters and Years as well. If you add a time column, Excel will automatically group to Seconds, Minutes, and Hours and collapse to show only the top level.

Image Pivot charts offer expand and collapse buttons. If you add two or more fields to the Axis or Legend area of a pivot table, you can use the + and - icons on the pivot chart to zoom in and out on the hierarchy.

Image Slicers now offer a Multi-Select icon to allow you to choose multiple items without using the Ctrl key. This feature was added for touchscreens.

Image If your data has a geographic field such as for addresses or postal codes, you can build a pivot table on a map by using the 3D Maps icon on the Insert tab.

Image If you need to import data for a pivot table, the Power Query tools found under Data, Get & Transform will assist you in cleaning and shaping that data.

Image Power Pivot has an automatic feature for creating a calendar table.

Image If you select Insert PivotTable from a blank cell, and if there is a Data Model in the workbook, Excel will offer to build the pivot table from the model.

Image Power Pivot’s Auto-Detect Relationships dialog offers a Manage Relationships button that allows you to review or correct any relationship that was detected.

If you skipped right over Excel 2013, you may not know about some of the new features it introduced. Here are some of the best ones:

Image Beginning with 2013, Excel offers thumbnails for 10 recommended pivot tables when you choose Insert, Recommended Pivot Tables. If you are not sure how best to summarize your data, you’ll find plenty of inspiration in this dialog.

Image A timeline slicer enables you to easily filter a pivot table by month, quarter, or year.

Image Excel 2013 introduced the Data Model as a way to build a pivot table from two tables. This is for the versions of Excel that do not offer Power Pivot.

Image People using Office Professional Plus, Office 365 Pro Plus, or other high-end editions can enable the Power Pivot add-in. Power Pivot provides drag-and-drop functionality to link tables, worksheets, SQL Server, and more. Power Pivot adds better calculated fields.

Image Power View enables you to animate pivot tables in an ad hoc query tool.

Skills Required to Use This Book

This book is a comprehensive enough reference for hard-core analysts yet relevant to casual users of Excel. The bulk of the book covers how to use pivot tables in the Excel user interface. Chapter 10, “Mashing Up Data with Power Pivot,” delves into the Power Pivot window. Chapter 14, “Advanced Pivot Table Tips and Techniques,” describes how to create pivot tables in Excel’s powerful VBA macro language. Any user who has a firm grasp of basics such as preparing data, copying, pasting, and entering simple formulas should not have a problem understanding the concepts in this book.

Invention of the Pivot Table

When the actual pivot table was invented is in dispute. The Excel team coined the term pivot table, which appeared in Excel in 1993. However, the concept was not new. Pito Salas and his team at Lotus were working on the pivot table concept in 1986 and released Lotus Improv in 1991. Before then, Javelin offered functionality similar to that of pivot tables.

The core concept behind a pivot table is that the data, formulas, and data views are stored separately. Each column has a name, and you can group and rearrange the data by dragging field names to various positions on the report.

Sample Files Used in This Book

All data files used throughout this book are available for download from www.mrexcel.com/pivotbookdata2016.html. You will find one Excel workbook per chapter and should be able to achieve exactly the same results shown in the figures in this book by starting with the raw data on the Data worksheet. If you simply want to work with the final pivot table, you can find it in the workbook as well.

Conventions Used in This Book

This book follows certain conventions:

Image Monospace—Code and messages you see onscreen appear in a monospace font.

Image Bold—Text you type appears in a bold font.

Image Italic—New and important terms appear in italics.

Image Initial Caps—Tab names, dialog names, and dialog elements are presented with initial capital letters so you can identify them easily.

Referring to Ribbon Commands

When the active cell is inside a pivot table, two new tabs appear on the ribbon. In the help files, Microsoft calls these tabs “PivotTable Tools | Analyze” and “PivotTable Tools | Design.” For convenience, this book refers to these elements as the Analyze tab and the Design tab, respectively. The Slicer feature has a ribbon tab that Microsoft calls “Slicer Tools | Options.” This book refers to this as the Slicer tab. Excel 2013 introduced the “Timeline Tools | Options” tab. This book calls this the Timeline tab.

In some cases, the ribbon icon leads to a drop-down with additional choices. In these cases, the book lists the hierarchy of ribbon, icon, menu choice, and submenu choice. For example, Figure I.7 shows what you would select if the book said “select Design, Report Layout, Repeat All Item Labels.”

Image

Figure I.7 For shorthand, instructions might say to select Design, Report Layout, Repeat All Item Labels.

Special Elements

This book contains the following special elements:


Note

Notes provide additional information outside the main thread of the chapter discussion that might be useful for you to know.



Tip

Tips provide quick workarounds and time-saving techniques to help you do your work more efficiently.



Caution

Cautions warn you about potential pitfalls you might encounter. Pay attention to cautions because they alert you to problems that could cause you hours of frustration.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset