navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

Excel 2013: Pivot Tables in Depth

Excel 2013: Pivot Tables in Depth

with Curt Frye

 


Join Curt Frye as he explains how to leverage PivotTables to summarize, sort, count, and chart your data in Microsoft Excel. Curt shows you how to navigate the complexity of PivotTables while taking advantage of their power. This course shows how to build PivotTables from single or multiple data sources, add calculated fields, filter your results, and format your layout to make it more readable. Plus, learn how to enhance PivotTable with macros, DAX expressions, and the PowerPivot add-in for analyzing millions of rows of data.
Topics include:
  • Creating a PivotTable
  • Summarizing multiple data fields
  • Managing subtotals and grand totals
  • Grouping PivotTable fields
  • Filtering with selections, rules, slicers, and search filters
  • Applying PivotTable styles
  • Formatting cells
  • Creating PivotCharts
  • Enabling PowerPivot
  • Using DAX operators
  • Visualizing data with matrices, cards, and tiles
  • Building charts and maps

show more

author
Curt Frye
subject
Business, Data Analysis, Spreadsheets
software
Excel 2013, Office 2013, Office 365
level
Intermediate
duration
4h 15m
released
Apr 11, 2013

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:00(music playing)
00:06Hi! I am Curt Frye. Welcome to Excel 2013:
00:07Pivot Tables in Depth.
00:09In this course, I'll show you how to use PivotTables to gain valuable insights
00:13from your organization's data.
00:15I'll begin by showing you how to create a PivotTable from data already in your
00:19Excel workbook, then using that knowledge as a base, I'll demonstrate how to
00:23create PivotTables using data from an external source.
00:26I'll enhance your ability to analyze your data by showing you how to reorganize,
00:30or pivot, a PivotTable.
00:31After you've organized your PivotTable's data, you can sort and filter its
00:36contents to develop useful insights into your business.
00:38I'll also show you how to create conditional formats that highlight subsets of
00:43your data, control your PivotTable using macros, and summarize huge data sets
00:48using the PowerPivot add-in.
00:49PowerPivots capabilities have been extended with the new Power View add-in.
00:54In short, I'll show you how to summarize and analyze data using one of Excel's
00:59most powerful and overlooked features.
Collapse this transcript
What you should know before watching this course
00:00Before I get started with PivotTables in Excel 2013, I'd like to go over a few
00:05things that you should know to get the most out of this course.
00:08The first is that you should be familiar with Excel 2007 or later.
00:12Microsoft introduced the ribbon user interface in Excel 2007, and because Excel
00:182013 uses that interface, it would help if you've had some experience with it.
00:23Many skills from working with Excel tables carry over to PivotTables, so if
00:27you've worked with them before, that's a big help.
00:29You should also be familiar with creating formulas, sorting and filtering data,
00:34and also creating and manipulating charts.
00:36I'll cover all these topics throughout the course, but if you had experience
00:41with them in the context of regular worksheets, you'll pick up the PivotTable
00:44applications much more quickly.
00:46And finally, I hope to demystify PivotTables. They aren't hard; they're
00:50just different.
Collapse this transcript
Using the exercise files
00:00If you are a premium subscriber to the Lynda.com Online Training Library, or if
00:05you've purchased this course on DVD, then you have access to the exercise files.
00:10I have downloaded the exercise files onto my system, and put them in a folder
00:15on my Desktop called Exercise Files.
00:17You can navigate within the archive by opening the Exercise Files folder, and
00:21then opening folders based on the chapter that you're working in.
00:26Each of the files is clearly named, and there is at least one separate file for
00:30each movie within a chapter.
00:32If you don't have access to the sample files, then you can create your own
00:36assets, or just follow along.
Collapse this transcript
1. Creating and Pivoting PivotTables
Introducing PivotTables
00:00I wanted to use the first movie of this course to introduce PivotTables as a
00:04concept, and to give you an overview of what you can do with them.
00:08I will use the Introducing sample file, which you can find in the Chapter01
00:12folder of your Exercise Files archive.
00:14With that said, don't worry about following along move by move. Instead what I
00:19would like you do is watch this movie just to get a general idea of what's
00:23possible with PivotTables, and what they let you do with your data.
00:26A PivotTable has this basic structure.
00:29You can see that there are row labels; in this case, five different
00:34departments for a company, and then also column labels, which in this case
00:38represent quarters.
00:39So, I have Balance, Dance, Play, Sport, and Work, and along the top, I have
00:44Quarters 1 through 4, and you can see that this organization is mirrored here in
00:50the PivotTable Fields pane.
00:52The PivotTable contains three fields; Department, Quarter, and Sales, and you can
00:56see that their arrangement -- Quarter for the Columns, Department for the Rows,
01:00and Sales data in the Values area -- represents the organization of the PivotTable on the left.
01:07If I want to change the organization of the PivotTable, I can do so by moving
01:11the fields around here in the PivotTable Fields task pane.
01:15So that it's easier for you to follow what's going on in the body of the
01:18PivotTable, I am going to click cell D5, the one that contains the value of
01:2338,092, and give it a yellow fill color.
01:27That way you can hopefully better follow how that cell moves within the
01:31PivotTable as I rearrange it.
01:33So, the first thing I'll do is to rearrange the PivotTable to put the Quarter
01:37field in the Rows area below Department.
01:41So, I'll drag the Quarter field header down to Rows, and you can see that the
01:46PivotTable rearranges,
01:48so now I have each Department; Balance, Dance, and so on, and the data for each
01:54Quarter beneath that.
01:55So, it's the same for Balance, for Dance, for Play, and so on.
01:59And you can see that the data that was previously in cell D5 is now in cell B7.
02:05So, that's quarter three results for the Balance Department, but because I
02:09applied the formatting to a cell within the PivotTable, the formatting moved
02:12along with it, and didn't stay here in cell D5.
02:16Now let's say that I want to filter the data in the PivotTable.
02:19There are number of ways to do that, and again, I'll go into more detail later,
02:23but if I want to filter the data, say, by Department, I can go over to the
02:27PivotTable Fields pane, hover over Department, click the down arrow that appears,
02:32and I display a filter interface that's probably familiar to you from using
02:37Excel, and filtering either data lists or Excel tables.
02:41So, let's say that I only want to display values for Balance.
02:45To do that, I can clear the Select All checkbox, then check the Balance box, and click OK.
02:50Doing so filters the PivotTable, so only data for the Balance
02:54Department appears.
02:56I can also filter based on the values in other fields, but that's a topic for another movie.
03:01So, hopefully now you have a basic idea of what's possible with PivotTables.
03:06They allow you to reorganize and summarize your data dynamically, so that you can
03:10focus on exactly what you need for the decisions you need to make.
Collapse this transcript
Formatting data for use in a PivotTable
00:00If you want to summarize Excel data using a PivotTable, you need to make sure
00:04that data is formatted properly.
00:06In this movie, I will show you what you need to do.
00:09I'll use the FormatData sample workbook, which you can find in the Chapter01
00:13folder of your Exercise Files archive.
00:16The best way to format your data for use in a PivotTable is as a list.
00:21A list is a series of columns; in this case Department, Quarter, and Sales, and
00:26each row represents a particular fact.
00:29So, for example, we know that for the Balance Department, Quarter number 1, Sales
00:33were $51,992, and so on for Quarter 2, Quarter 3, Quarter 4, and so on, and then
00:40for the Dance, Play, Sport, and Work Departments.
00:43And if I scroll down using my mouse wheel, you can see the rest of the data.
00:46Some important things to note about this data list; the first is that there are no gaps.
00:51As I scroll down through the list again, you can see that there are no blank rows.
00:55If for some reason I were to have a blank row, so I'll just insert one here, and
01:00I were to click cell B4, and create the PivotTable, then the PivotTable data
01:06would stop with what is currently the data in row 5.
01:10So, the first thing you should realize is that you must have no gaps in your date list.
01:14I'll just press Ctrl+Z to undo the insertion.
01:17The second thing you should watch out for is that there's no extraneous data
01:21around the list you want to summarize as a PivotTable.
01:24So, for example, scrolling down again, you can see that I have no excess data in
01:29the column D of the worksheet; there is also nothing below it that I don't
01:33want to be included.
01:35So, that means that if I click any cell within this data list, as I've done
01:38here with cell A6, creating the PivotTable means that it would include all
01:42that data, and only that data.
01:44So again, the basic idea is you want to have no gaps, no blank rows in the
01:49list, and you also want to have no data around the data that you want to
01:53summarize using a PivotTable.
01:54The best way to format your data is as an Excel table.
01:58To do that you click any cell in the data list, and then on the Home tab, click
02:03Format as Table, and then pick a table style, and I'll just click the first one
02:08here. Verify that all your data appears; A1 to C21, which I know is correct.
02:13My table has headers, and click OK.
02:16When you define a data list as an Excel table, you can add rows to the
02:20table, and have that data appear automatically in the PivotTable the next time it refreshes.
02:25So, if I were to go down, scrolling again with my mouse wheel, and click cell
02:30C21, and press the Tab key, Excel adds a new row to my Excel table.
02:36So, if I were to add another row of data -- let's say, for example Shoes -- press
02:41Tab, Quarter, it would be Quarter 1, and we will give it $20,000 of revenue, and press Enter,
02:47then that data would appear again in the PivotTable the next time it refreshes.
02:52So, to sum up, you should have your data as a data list with column headers, and
02:57no blank rows, but the best way to format your data is as an Excel table.
Collapse this transcript
Creating a PivotTable
00:00Once you have your Excel data arranged in either a list, or even better, an Excel
00:05table with columns of data, as we have here, and rows, with each row representing
00:12particular fact in the data list, then you can create a PivotTable.
00:17To demonstrate how to do that, I'll use the Create sample file, which you can
00:21find in the Chapter01 folder of your Exercise Files archive.
00:25So again, my goal is to create a PivotTable from this Excel table.
00:30To do that, I click any cell in the body of the Excel table or the data list, and
00:35then on the Insert tab, click PivotTable. Doing so displays the Create
00:40PivotTable dialog box.
00:42I want to create the PivotTable using a table or range, so I'll leave this radio
00:48buttons selected, and I'll verify that the proper table is selected.
00:52I happen to know that my table is named Table2, so that looks right.
00:57Then down here, I can select whether to put the PivotTable on a New Worksheet or
01:01an Existing Worksheet.
01:02I pretty much always a decide to put my PivotTables on new worksheets; that way
01:06I have plenty of room to spread out, and there won't be any graphics, or any other
01:11elements of a worksheet impinging on the PivotTable itself.
01:15Those are the only basic choices that I need to make.
01:18So, to create the PivotTable, I'll click OK.
01:21Doing so adds a new sheet to the workbook, and you can see the PivotTable outline
01:25that appears on the left edge of the worksheet.
01:28You'll also notice the PivotTable Fields pane, which appears over on the right
01:33side. You can use the controls in the PivotTable Fields pane to create, and then
01:38also to manipulate your PivotTable.
01:40For this movie, I'll just show you how to set up the PivotTable, and in later
01:44movies, I'll show you how to manipulate it.
01:46There are two main parts of the PivotTable Fields pane.
01:49The first is the field list, and it shows the fields that are available to you;
01:53in this case, Department, Quarter, and Sales, and those mirror the columns that
01:58were in the data list or the Excel table that I used to create the PivotTable.
02:03And at the bottom of the task pane, you have areas that you can use to
02:08create your PivotTable.
02:09So, you have the Columns area, which creates column headers, the Rows area
02:14for row headers, and the Values area, which displays the data in the body of the PivotTable.
02:19So, let's say that I want to put Departments in the Columns area, Quarter in the
02:26Rows area, and Sales in the Values area.
02:30Doing so creates a PivotTable that you can see on the left.
02:33Those are the basics of creating a PivotTable in Excel 2013.
Collapse this transcript
Creating a Recommended PivotTable
00:00If you don't have a lot of experience working with PivotTables, you might be
00:04uncertain as to what arrangement to start with.
00:06It's all well and good to create the PivotTable, but where do want to put your
00:10headers, and how do you want the data laid out?
00:12Well, in Excel 2013, the Excel programming team has added what are called
00:16Recommended PivotTables.
00:18You click inside of a data list or Excel table, click Recommended PivotTables,
00:22and Excel suggests some layouts for your data, and in this movie, I'll show you
00:26how to take advantage of that new feature.
00:29I will use the Recommended sample file, which you can find in the Chapter01
00:33folder of your Exercise Files archive.
00:36This workbook contains a single sheet, and I have an Excel table with quarterly
00:40sales data for a bunch of different departments of a company.
00:43To create a recommended PivotTable from the data, I click any cell in the
00:48list, and then on the Insert tab, click Recommended PivotTables.
00:52Doing so displays the Recommended PivotTables dialog box.
00:56I can scroll down the list of recommendations, and the one that's selected is
01:00previewed here in the right-hand pane.
01:02You can see right off that some of those suggestions don't make a lot of sense.
01:07For example, Counting Sales by Department, well, there are four quarters, so of
01:11course count of sales will always be 4.
01:13Same thing for Sum of Quarter by Department; Quarters 1 through 4 add up to 10,
01:18so that doesn't really give you any good information.
01:20But if you scroll down by dragging the vertical scrollbar, you can see one
01:25that does make sense, and that is the first one with a label Sum of Sales by
01:29Quarter and Department.
01:31So, if I click that preview, I can see it over here in the preview panel. So, I
01:35have the Quarters for the row labels, and the Departments for the column labels.
01:40That looks like something that I would like to create, so I'll click OK, and
01:44doing so creates a PivotTable with exactly that layout.
01:47If you look in the PivotTable Fields pane, you can see that Department, Quarter,
01:52and Sales are in the Columns, Rows, and Values areas respectively.
01:57So, that's the basics of creating a Recommended PivotTable.
02:00It's very quick, and like I said, it's new in Excel 2013, and quite useful.
Collapse this transcript
Pivoting a PivotTable
00:00After you've created a PivotTable with the fields arranged to give you the data
00:05arrangement that you want,
00:06you can modify the PivotTable to rearrange your data dynamically. That process
00:11is called pivoting, and in this movie, I will show you how to pivot your data to
00:15get exactly the result that you want.
00:17I will use the Pivoting sample file, which you can find in the Chapter01 folder
00:22of your Exercise Files archive.
00:23Let's take a quick look at the PivotTable that's already in this workbook. It
00:28counts the number of customers that were added by a company in quarters 1, 2, 3,
00:33and 4, for the calendar years 2012 and 2013.
00:36But let's say that I want to rearrange the data, for example, by having the year,
00:41and then each quarter within the year laid out vertically.
00:44To do that, I can drag the Quarter field from the Columns area, below Year in the Rows area.
00:50Doing so changes the arrangement of the PivotTable,
00:53so now I still have the years 2012 and 2013, but now I've the quarters, instead
00:59of being laid out horizontally as column headers, they are also laid out
01:04vertically under Rows.
01:05Now let's say that I wanted to compare quarters between 2012 and 2013; so in
01:10other words, I want to have quarter 1 of 2012 adjacent to quarter 1 of 2013,
01:16instead of separated into different years.
01:18To do that, I can drag the Year field header in the Rows area below Quarter, so
01:24I'll just click, and drag it below Quarter, and you can probably see a green line
01:30that indicates where Year will end up when I release the left mouse button.
01:35So, I'll do that, and you can see that the arrangement of the PivotTable changed.
01:39Now I have quarter 1 of 2012 and 2013; quarter 2, 3, and 4 follow the same arrangement.
01:46I can also add fields that are available in the original data to the PivotTable,
01:50even though they're not currently displayed.
01:52If you look again in the PivotTable Fields pane, you'll see that Year, Quarter,
01:57and Customers all have checkmarks in their boxes, but Region is not checked;
02:02it's also not highlighted in bold.
02:05That means that the Region field, which does exist in the original data -- I'll
02:10click the Sheet1 sheet tab, and you see that I have a Region column,
02:13then I'll go back to Sheet2, so the data is available, but it doesn't appear
02:19inside of the PivotTable at the moment.
02:21Let's say that I want to add Region to the Columns area.
02:24To do that, I just drag the Region field header from the Fields area down to the
02:29Columns area, and now I have my data for North, South, East, and West, again,
02:34broken down by Quarter, and by Year.
02:37If I wanted, I could also drag the Region field header below Year in the Rows
02:42area, so then I'd see quarter 1 for 2012, and then each of the regions, and then
02:46quarter 1 for 2013, and so on. Or if I wanted to, I could drag Year above Quarter
02:52in the Rows area, and rearrange the PivotTable that way.
02:56So, once again, pivoting a PivotTable lets you change the order and structure of
03:01the headers within the PivotTable to emphasize the aspects of the data that are
03:05most important to you.
03:06Don't be afraid to experiment, because you can always press Ctrl+Z to go back,
03:10and undo whatever change you just made.
Collapse this transcript
Configuring a PivotTable
00:00Excel 2013 PivotTables come with a number of built in tools that you can use
00:04to manipulate them,
00:06and in this movie, I'll show you how to use some of them, including the Fields
00:10pane, and also expand and contract buttons within the body of the PivotTable.
00:15I will use the Configuring sample file, which you can find in the Chapter01
00:20folder of your Exercise Files archive.
00:22This PivotTable contains four fields of data; you can see them here in the
00:26PivotTable Fields task pane, and they are Year, Quarter, Region, and Customers.
00:31So, the PivotTable summarizes the number of customers acquired by region for
00:36quarters 1 through 4, for the years 2012 and 2013.
00:40You can see that data represented here in the body of the PivotTable.
00:44The PivotTable Fields pane contains a number of controls.
00:46For example, you can drag fields between areas to pivot the PivotTable.
00:51For example, if I wanted to put Region above Quarter in the Columns area, I
00:56could just drag that field header over, and I would rearrange my PivotTable.
01:00To undo that, I would just press Ctrl+Z. If you want to get rid of the
01:04PivotTable Fields pane, you can do so by clicking the Close button here at the top right corner.
01:10If you want to bring it back, make sure that you have clicked any cell inside
01:14the body of the PivotTable, and then on the ribbon, click the Analyze contextual
01:19tab, and then at the far right corner of this tab, in the Show group, click Field
01:24List; doing so brings it back.
01:26And of course, clicking the Field List button on this ribbon tab hides the Field
01:30List, and clicking it again brings it back.
01:33You can also show and hide the expand and contract, or show and hide buttons.
01:38If you are not sure what they are, in the body of the PivotTable, here next to
01:422012, you can see that there is a button that contains what looks like a minus
01:46sign; that's actually a hide detail button; the same thing here for 2013.
01:52And the reason that they appear for 2012 and 2013 is that you have rows
01:56of detail beneath it.
01:58So you have, in this case, Regions; East, North, and South, and West.
02:02If I were to click the hide detail button next to 2012, then Excel updates the
02:08PivotTable to show only the total for 2012, and you'll also notice that the hide
02:13detail button is now a show detail button, it went from having minus sign to
02:18having a plus sign.
02:19So, if I want to show the detail, all I need to do is click that button, and the
02:23regional data comes back.
02:25If for some reason you want to hide these show and hide detail buttons, all you need
02:29to do is once again go to the Analyze tab, and in the Show group, click the +/-
02:35Buttons control to hide them.
02:38To bring them back, just click that ribbon control again.
02:41You can also show and hide field headers, and as you have seen before, it's just
02:45a matter of going to the Show group on the Analyze contextual tab, clicking the
02:49Field Headers button; doing so gets rid of the column labels and row labels.
02:54If you want to bring them back, just click Field Headers, and they reappear.
02:58So, those are some of the basic ways that you can configure a PivotTable.
03:02The main reason to get rid of the PivotTable Fields pane is so that you have
03:06more room to display your PivotTable in the body of your workbook.
03:10The other tools, specifically Field Headers, and the show and hide detail buttons,
03:14come down to a matter of aesthetics.
Collapse this transcript
Connecting to an external data source
00:00If you work in a corporate environment, then it's likely that you'll want to
00:03create a PivotTable using data that is not stored in your active workbook.
00:08In this movie, I'll show you how to connect to an external data source, and
00:11create your PivotTable based on that data.
00:14I'll start out with the Connect sample file, which you can find in the Chapter01
00:18folder of your Exercise Files archive.
00:20To create your PivotTable click the Insert tab on the ribbon, and then click
00:24PivotTable. That displays the Create PivotTable dialog box.
00:28Now choose the Use an external data source option, and then click the Choose
00:34Connection button. Doing so displays the Existing Connections dialog box.
00:38Now click Browse for More; that displays the Select Data Source dialog box.
00:43Now you can navigate to the folder that contains the external data workbook,
00:47and that happens to be on my Desktop, in my Exercise Files folder, in Chapter01,
00:54and I'll double-click the ExternalData file, and doing so displays the Select Table dialog box.
01:00There is only one table in that file; it's called ExternalData, so I'll leave it
01:05selected, and the first row of the data does contain column headers, so I'll
01:09leave that box checked, and click OK.
01:11Now, back in the Create PivotTable dialog box, I can select where to create the
01:15PivotTable; in this case, I'll leave it on the Existing Worksheet, Sheet1, and it
01:20will start at cell A1, which is currently selected, and I'll click OK.
01:25Doing so creates the PivotTable, and I can add fields using the controls in the
01:30PivotTable Fields pane.
01:31So, for example, I could display each Department in a column, put Month in Rows,
01:37and put Sales in the Values area.
01:40The techniques that I showed you for connecting it to an Excel workbook are very
01:44similar to the steps you would use to connect to other data sources.
01:47Play around with the Select Data Source dialog box, and I'm sure you'll
01:51find your way quickly.
Collapse this transcript
Consolidating data from multiple sources
00:00Most of the time when you create a PivotTable in Excel 2013, you'll use a data
00:05list, or an Excel table.
00:07There might be some older workbooks that you have in your collection with data
00:11arranged differently, but you'll still want to create a PivotTable.
00:14If the data is arranged properly, then you can do that.
00:17In this movie, I will use the Consolidating sample file, which you can find in
00:22the Chapter01 folder of your Exercise Files archive.
00:25The Consolidating workbook contains three worksheets, and all those worksheets
00:30are data collections that you can use to combine into a PivotTable.
00:34On the SupportCalls worksheet, you can see that there is a rectangular region of
00:39data; it starts here in cell B3, and runs down the cell F7.
00:43It's very important that your data be in a perfect rectangle.
00:47So, if I were to have Region in cell B3, and Year in cell C2, the data values
00:54would not be perfectly rectangular, and therefore, the technique I'm going to
00:58show you wouldn't work.
00:59You also need to make sure that there are no blank cells anywhere in your data set.
01:04This data summarizes regional sales for 4 years; the years are along the top and
01:10the row labels are along the side, and the worksheets OrderCalls, and ReturnCalls
01:16contain similar data, just for different sets.
01:19I'll switch back to the SupportCalls worksheet, and now I can open the tool that
01:23I need to combine these three datasets into a PivotTable.
01:27That is the PivotTable Wizard; it's no longer available through the ribbon, but
01:31you can open it using keyboard shortcuts,
01:34and the key sequence you need to use is to press Alt+D, and then press P. Doing
01:40so opens the PivotTable and PivotChart Wizard.
01:43The data we want to analyze is in multiple consolidation ranges, and those are
01:48defined as ranges that have the same shape, and the same labels; that's the
01:53third option here, so I'll check the Multiple consolidation ranges option.
01:58I want to create a PivotTable, so I can click Next.
02:01On the next page of the Wizard, I can choose whether to have Excel create a
02:05single page field for me, or whether I want to create page fields.
02:09Page fields are fields that are used to filter the contents of a PivotTable, and
02:14for the purposes of this procedure, select the I will create the page fields
02:18option, then click Next.
02:20Now you can identify the ranges that you want to consolidate.
02:24To do that, click the collapse dialog button at the right side of the Range box,
02:29and make sure that the insertion point is flashing inside the Range box. Once it
02:33is, click the collapse dialog button, and select the first set of cells.
02:38Those are on the SupportCalls worksheet, so I'll select from B3 to F7.
02:43Expand the dialog box, and then click Add.
02:47Doing so adds that range to the All Ranges pane.
02:50And now I can do the same thing for the other two worksheets.
02:53I'll click the collapse dialog box button, click the OrderCalls sheet tab,
02:58select cells B3 to F7, expand the dialog box, and click Add.
03:02Now I can do it for the ReturnCalls worksheet; collapse the dialog box,
03:06ReturnCalls, select B3 to F7, expand the dialog box, and click Add.
03:12It doesn't matter if the data collections on the different worksheets are in
03:17separate cells as long as the cell ranges they are in are the same size, and
03:22the exact same shape.
03:23Now that I've identified my consolidation ranges, I can specify how many
03:28page fields I want.
03:29In this case, I'll select 0. I don't want to create any filter fields.
03:32I'll click Next, and I can decide where to put the new PivotTable. I'll put it on
03:37the New worksheet, and now that I'm done, I can click Finish.
03:41Doing so creates a PivotTable with the values that are all consolidated into a
03:45PivotTable from my three sources.
03:47If you look over in the PivotTable Fields pane at the right edge of the
03:51program window, you'll see that I have three fields; they're called Row, Column, and Value.
03:56Value is fine, but Row and Column aren't terribly descriptive,
04:00so I will change the name of those fields.
04:03To do that, I will click a value in the Row Labels area, and then on the Analyze
04:09contextual tab of the ribbon, which is already selected, I will edit the value in
04:14the Active Field box.
04:15It currently says Row, and clicking in the box selects it; these are the regions,
04:20so I'll type in Region, and press Enter.
04:23Doing so changes the name of the field in the PivotTable Fields pane.
04:27I'll do the same thing for Column.
04:29So, I'll click one of the Column Labels, and again, on the Analyze tab, I will
04:33edit the value in the Active Field box, so it says Year. Type that, and press
04:38Enter, and the value changes.
04:40And finally, I'd like to show you a way to get your data from your PivotTable
04:45into a data list, or an Excel table.
04:47Now, remember that you created this PivotTable from three separate consolidation
04:51ranges, and they look like this range here on the SupportCalls worksheet.
04:56Now click the Sheet1 sheet tab to go back to the PivotTable.
05:00You can create an Excel table based on this data by using a drill down technique.
05:06The first thing you need to do is remove all field headers from the Rows and
05:10Columns area, so that you're left with just the Grand Total in the Value area,
05:16so it should be a single cell.
05:18Now, to create the Excel table, double-click that cell; in this case, it's cell A4.
05:23Doing so creates an Excel table that contains a list of all of your data. So, you
05:28have North for the year 2010, the value; North 2011, with a value, and so on.
05:34The techniques that I've shown you in this movie let you combine data from
05:38separate ranges, as long as they are the same shape, into a PivotTable, and
05:42then once you have created your PivotTable, you can create an Excel table
05:46based on that data.
05:47The PivotTable is a very flexible tool, and the Excel table is as well.
Collapse this transcript
Managing PivotTables
00:00When you create a PivotTable, you can rearrange the data to emphasize exactly
00:05the elements that you're interested in.
00:07In this movie, I will show you how to manage PivotTables;
00:10that includes tasks such as renaming a PivotTable, selecting the entire
00:14PivotTable, moving it, and deleting it.
00:17As my sample file, I'll use the Managing workbook, which you can find in the
00:22Chapter01 folder of your Exercise Files archive.
00:25It's possible to use PivotTable in formulas, and I show you how to do that
00:30elsewhere in the course.
00:31And every PivotTable has a name; that's one way that you know which PivotTable
00:35you're referring to when you create a formula based on its data.
00:38You can find a PivotTable's name by clicking any cell in the PivotTable, and
00:42then on the Analyze tab, you can look over in the PivotTable group at the far
00:47left, and look in the PivotTable Name box.
00:51And in this case, the name of this PivotTable is PivotTable3.
00:55That's not very informative; I mean, it could be anything.
00:58What you can do is edit this value by clicking in the box to select the entire
01:02value, and then type in something that describes the data in the PivotTable, and
01:07in this case, I'll call it Department, Dept, Quarter, and press Enter.
01:15Now the PivotTable is named DeptQuarter, so that I know, at least in my own head,
01:20that the Row Labels are the departments, and the Column Labels are the quarters.
01:26Now let's say that I want to select a PivotTable,
01:28for example, if want to copy it, or perhaps even delete it.
01:31To select an entire PivotTable, again, click any cell in the body of the
01:34PivotTable, and again on the Analyze tab, click the Select button, and then
01:41click Entire PivotTable. Doing so selects the entire PivotTable. Now you can
01:45copy it, or delete it.
01:47If you want to copy it, with the PivotTable selected, just press Ctrl+C to copy,
01:53and you can see that it has the marquee outline.
01:55Now you can past the PivotTable on another worksheet. Say, for example, if I
02:00click the PTPaste sheet tab here, and display that worksheet, I can press Ctrl+V
02:07to paste the PivotTable, and you can see that my new PivotTable appears.
02:11And with the PivotTable selected, click the Analyze tab, and it's called
02:15PivotTable1, and again, I could rename it as before.
02:19I want to emphasize that this is a second PivotTable, so if I were to click back
02:23on Sheet2, the original PivotTable is still there, and it is independent of this
02:28PivotTable on this worksheet.
02:30Now let's say that want to delete this PivotTable.
02:33With the entire PivotTable selected -- and again, that procedure is to click any
02:37cell within the PivotTable, click Select, and click Entire PivotTable --
02:41I can delete it by selecting it as I just showed you, and pressing the delete key.
02:45So, now the PivotTable is gone, and I just have the one PivotTable left in
02:49this workbook on Sheet2.
02:51Now, let's say that I have a PivotTable, and I want to reset it; in other words, I
02:56want to remove all of its fields, any filters, and so on. I just want to go back
02:59to a blank worksheet, with an empty PivotTable.
03:03To do that, click any cell in the body of a PivotTable, and on the Analyze tab,
03:08click Clear, and click Clear All.
03:11Doing so resets the PivotTable, and if I click here, that refers you to here.
03:17Doing so resets the PivotTable, and if I want to bring it back, and recreate
03:21it, I just click here on the graphic, indicating where the PivotTable will go.
03:25That brings back my PivotTable Fields pane, and I can add any fields that I want back to it.
03:31So, for example, I can put Department in the Rows area, Order in the Columns area,
03:36and Sales in the Values area.
03:38So, those are the basics of managing a PivotTable; showing you how to rename it,
03:42how to select it, how to move to it, and also, if you want to, how to delete it.
03:47All those skills are very useful, and you'll probably use them more than you
03:50think when you're working with PivotTables in Excel 2013.
Collapse this transcript
2. Summarizing PivotTable Data
Managing subtotals and grand totals
00:00One extremely useful aspect of PivotTables in Excel 2013 is the way that they
00:05let you summarize your data.
00:07In this movie, I will show you how to work with subtotals and grand totals inside
00:12the body of a PivotTable.
00:13I'll use the Totals sample workbook, which you can find in the Chapter02 folder of
00:18your Exercise Files archive.
00:20Let's take a quick look at the contents of this PivotTable.
00:24As you can see, there is regional customer data; the number of customers acquired
00:29for four regions: East, North, South, and West in alphabetical order, and it's
00:33also broken out by year, and by quarter, for the years 2012 and 2013.
00:38Most relevant is the fact that we have subtotals for the year 2012 here for East,
00:44and also for a grand total for that year 2012.
00:48In other words, if we look at the sum of all customers acquired in these four
00:52rows here, we can see that the total is 7,872.
00:57We have a similar arrangement for the year 2013 at the bottom.
01:01We can also see grand totals for each of the regions; you can see that down here.
01:06So, we have a grand total for customers from the East, North, South, and West, and
01:11of course, a grand total of all customers acquired for the years 2012 and 2013.
01:17When you create a PivotTable, this is the default way that subtotals and grand
01:21totals appear, but you can control how they appear inside your PivotTable.
01:25To do that, click the Design tab on the ribbon, and you must have clicked a
01:30cell inside of the PivotTable to have access to the Analyze and Design tabs on the ribbon.
01:35With that selection in place, you can go over to the Layout group of the
01:39Design tab, and you can use these Subtotals and Grand Totals controls to
01:44affect your PivotTable.
01:45For example, let's change how subtotals work.
01:48To do that, I'll the click the Subtotals button, and I have three selections:
01:53don't show subtotals, show them at the bottom of the group, or show them at
01:56the top of the group.
01:58As the PivotTables currently configured, we're showing subtotals of the top of the group.
02:02I personally prefer to have subtotals at the bottom.
02:05So, I'll make that choice now, and you can see now that I have a year 2012, and
02:10then my subtotal for 2012 is at the bottom.
02:13This arrangement moves, as I said, the subtotals to the bottom, and it also gives
02:18you a blank line here, or at least an empty line, instead of containing data.
02:23It provides a little bit more space, and I tend to read from top to bottom, so I
02:28prefer to see my subtotals at the bottom of a group, as opposed to the top.
02:32It's an individual preference, so just pick whatever works best for you.
02:36But just to give you an idea of what a PivotTable looks like if you turn off
02:39subtotals entirely, I'll to click the Subtotals button, and click Do Not Show Subtotals.
02:44When you do, the subtotals go away, and also notice that you still have this blank
02:49line here at the top,
02:51so you have a little bit of space between your labels and the data.
02:54You can also turn grand totals on or off.
02:56To do that click the Grand Totals button, again, in the Layout group, and you have
03:01four different options.
03:02Basically, you're turning grand totals off or on for rows and columns, and there
03:08are four combinations of how you can do that for rows and columns, on and off, and
03:12those options appear here under Grand Totals.
03:15So, let's say that I want to turn all grand totals off.
03:18To do that, I'll click Off for Rows and Columns; just click back in the body
03:22of the PivotTable to get my controls back, and if I want to have grand totals
03:27for both rows and columns, I'll click Grand Totals, and click On for Rows and Columns.
03:32So, we're back to seeing our summary by quarter, and also by region.
03:36But notice that we don't have our subtotals for the years 2012 or 2013.
03:41So, that means we don't have a grand total for an individual year.
03:46So, if I were turn subtotals back on, and have them appear at the top of the group,
03:50then we get the subtotals for each of the regions, four a year, and we also get the
03:54Grand Total for each year.
03:56So, as with everything regarding a PivotTable, take the time to configure it,
04:00change it the way that you want, and don't be afraid to experiment.
04:03Keep working until you find exactly the layout that works for you.
Collapse this transcript
Changing the data field summary operation
00:00When you create a PivotTable in Excel 2013, Excel finds the sum of all of the data.
00:06The good news is that you're not limited to that one operation.
00:09You can find averages, running totals, and a lot of other different types of summaries.
00:14In this movie, I will show you how to change both the display, and the summaries
00:18that occur inside of your PivotTable.
00:21I will use these Summary sample file, which you can find in the Chapter02 folder
00:25of your Exercise Files archive.
00:27Let's take a quick look at the data inside of the PivotTable.
00:31The individual values which are here for each of four regions, North, East, West,
00:37and South, and it's the number of customers that were acquired per quarter for
00:40each of those regions, for quarter one through four, and the years 2012 and 2013.
00:46And you can see here in the Grand Total column the number of customers for 2012,
00:52and then again for each of the quarters, and the same for 2013.
00:55What I'd like to do is change how the data is summarized inside of the PivotTable,
01:00and then also how it's displayed.
01:02If I want to change the summary operation, all I need to do is click any data cell;
01:07in other words, one that contains, in this case, a numeric value in the body of a PivotTable.
01:12So, I click the cell that contains the number 399, and then from the shortcut menu
01:17that appears, I'll point to Summarize Values By, and then I can select any one of
01:23several other options: Sum, Count, Average, Maximum, Minimum, and also a Product.
01:29In this case, I'll find the average value,
01:31so I'll click that from the list, and you can see that the PivotTable summary changes.
01:35Now, note that the values in the body of the PivotTable didn't change.
01:39So, 399 is still 399; 156 is still 156.
01:43That's not surprising, because those are the base values.
01:46What changed were the summaries.
01:48So, you can see here for 2012, for the East region, which is here, you can see
01:53that the average number of customers per quarter was 545, for North it was 572;
01:59South, 426; West, 425.
02:03You can also look at the average for each quarter, or for the entire year, and you
02:07can see those summaries here.
02:09If you want to undo a change, then all you need to do is either click the Undo
02:13button on the quick access toolbar, or do as I'll do right now; press Ctrl+Z. Now
02:17let's say that you want to change how the data is displayed inside of a
02:21PivotTable, and I'm not talking about number formatting;
02:24that's a subject for another movie.
02:26But let's say that I wanted to find a running total, or I wanted to find a
02:31percentage running total for each individual value for a row or column.
02:35To display data in that manner, I right-click any data cell in the body of the
02:40PivotTable, point to Show Values As, and doing so displays a list of the ways
02:46that I can summarize or display the data.
02:49So, for example, I currently have no calculation check, but let's say that I want
02:53to display each quarter for each region as a percentage of the overall total;
02:59the grand total of all customers acquired.
03:02To do that, I would just click % of Grand Total, and when I do, the data inside of
03:08my PivotTable changes.
03:09So, I can see at a yearly level that I acquired 51.27% of my new customers in
03:152012, and 48.73% in the 2013, with the data breaking down by quarter in the
03:21body of the PivotTable.
03:23Again, if I want to undo my change, I can press Ctrl+Z, and go back to what I had before.
03:29I'll show you couple of the other ways that you can summarize your values in the
03:33body of a PivotTable, just so you get an idea of what's available to you.
03:37So, I'll right-click a data cell, point to Show Values As, and in this case, I'll
03:42make it a percentage of a column total.
03:45So, point to and click % of Column Total.
03:49When I do, you can see that the data is now summarized based on values in the column.
03:54So, I can see that for the East region in 2012, I had 62.91% of my new customers
04:00acquired, whereas in 2013, that year only accounted for 37.09% of new customers
04:08for the East region, and you can see similar breakdowns for each of the other
04:12three regions as well.
04:13Now, one last thing; let's see how it looks when we compare by row instead of by column.
04:18So, I'll right-click a data cell; Show Values As>% of Row Total.
04:23When I do, you can see that my summary has changed from being column based to
04:28being row based, and you can tell that because the grand total in the column
04:32summarizing all the rows is 100%.
04:34Now you can see that the East region was 27.8%, North was 32.96, and so on, all
04:42adding up to 100% of the values in this row.
04:45You can also display running totals, as opposed to individual totals.
04:49So, for example, if I right-click a data cell, point to Show Values As, and then
04:55click % Running Total In.
04:57I want my Base Field to be quarter.
04:59It can also be year or region, but in this case, I'll make it quarter; click OK,
05:04and you can see that my running totals for 2012, quarter number 1 accounts for
05:0922.24% for the East region; 1 and 2 together account for 47.41%, quarters 1
05:17through 3 80.83%, and so on.
05:20That's how you change the summary operation, and how your data is displayed
05:24inside of a PivotTable.
05:26You can make all of the changes very quickly, and if you want to go back to what
05:30you did before, click the Undo button, or press Ctrl+Z, and you'll be there.
Collapse this transcript
Summarizing more than one data field
00:00So far in this course, all of the PivotTables I have shown you have had a single
00:04data field in the values area of the PivotTable.
00:08In other words, the body of the PivotTable has only contained a single type of
00:12data, such as number of customers acquired, sales, and so on.
00:16In this movie, I will show you how to add a second data field to the Values area
00:21of your PivotTable.
00:22I'll use the MoreThanOne sample file, which you can find in the Chapter02
00:26folder of your Exercise Files archive.
00:28This PivotTable contains data about new customers acquired for each of four
00:33regions for the years 2012 and 2013, with the yearly data broken down by quarter.
00:39If you look over the PivotTable Fields pane, you can see that I have a fifth
00:43field, Sales, which is not currently displayed in the body of the PivotTable.
00:47Now, Sales data takes on the same role as customers,
00:51so I could pull out the Customers field, and put Sales in in its place,
00:56but instead of what I'd like to do is display both of them in the body of the PivotTable.
01:00To do that, all I need to do is drag the Sales field from the choose fields to
01:06add to report area, and put it in the Values field here in the bottom part of the task pane.
01:13So, I have it below the Customers field right now.
01:16I'll release the left mouse button, and you can see that the PivotTable expands
01:20to include the new data.
01:21So, I have Sum of Customers, and Sum of Sales for the East region, again,
01:25broken down by quarter.
01:26Then I have it for North, South, and then West is over to the right, and again,
01:32the data is broken down by quarter, and by year for 2012 and 2013.
01:37If I want, I can change the order of those two fields.
01:40So, I could drag Sales above Customers, and doing so would rearrange the data
01:45inside the body of the PivotTable.
01:47So, that's all there is to it.
01:49If you find that your PivotTable works well summarizing two data fields at
01:52once, then simply add a second numerical field to the Values area, and work
01:58with your data normally.
Collapse this transcript
Creating a calculated field
00:01PivotTables let you analyze the data in your original data source.
00:04They also let you add calculated fields that can create calculations based on that data.
00:10In this movie, I will show you how to create a calculated field using the
00:14Calculated sample file, which you can find in the Chapter02 folder of your
00:18Exercise Files archive.
00:20This PivotTable has four fields.
00:22They are Department, Quarter, Revenue, and Sales, and currently Department,
00:27Quarter, and Revenue are displayed within the body of the PivotTable.
00:30In this case, the PivotTable is based on data in the same workbook, but for the
00:34moment, let's assume that I don't have access to the original data;
00:39say it's stored in an external source, or it's a file that I'm not allowed to
00:43change for some reason.
00:44If I want to perform a separate calculation on the data, such as by combining
00:48values into fields produce another value, then I can do so by adding a calculated field.
00:54To do that, I go up to the Analyze contextual tab, and then in the
00:59Calculations group, click the Fields, Items, & Sets button, and from list that
01:05appears click Calculated Field.
01:07Doing so displays the Insert Calculated Field dialog box.
01:10Now I can type a name for the field.
01:12I'll call it average sale, and then I can click in the Formula box, and Backspace
01:19over the 0 to start creating my formula.
01:22In this case, I want to divide my total revenue by the number of sales.
01:26To add those fields to my formula, I click the first field, in this case, Revenue
01:31and then click the Insert Field button.
01:33Then I'll type a forward slash for divide, and then I want to divide by
01:39Sales. Click Insert Field again.
01:41So, my formula will divide my total Revenue by the number of Sales. I'll click
01:45Add to add the calculated field, and you can see that average sale now appears in
01:50the field list, and I'll click OK.
01:53When you click OK and create your calculated field, Excel automatically adds it
01:57to the body of the PivotTable.
01:59So, let me drag the Sum of Revenue field out of the Values area, so we can focus
02:04on just the calculated field that I just created.
02:07When I do, you can see that the data summary shows the average sales for each
02:12department in each of the four quarters that are covered.
02:16Most of the data is in the $30-$50 range, but you'll notice that there are some large values.
02:21For example, in the Play and Sport departments in the first quarter, the average
02:25sale is quite low, whereas for Work, the average sale is quite high.
02:29It's that type of insight that you can get from creating calculated fields.
02:33One thing I should point out is that the calculated field that I just created
02:38only exists in Excel's memory.
02:41It doesn't exist in the original data source.
02:43If I click Sheet1, which contains the original data source, you can see that
02:48there is no average sale column. Go back to Sheet2.
02:51However, Excel does store the new field that I just created inside of the pivot
02:56cache, which is the internal representation of the PivotTable.
03:00The ability to create calculated fields means that you can perform all sorts of
03:04terrific calculations, and gain insight into your business data.
Collapse this transcript
Grouping PivotTable fields
00:00When you create a PivotTable that contains multiple fields in the Rows area,
00:05you're able to show or hide details within the body of your PivotTable.
00:09In this movie, I'll show you how to extend that capability using grouping.
00:13As my sample file, I'll use of the Grouping workbook, which you can find in the
00:17Chapter02 folder of your Exercise Files archive.
00:20So, like I said, this PivotTable contains data that's arranged by Month, and then
00:26by Week for the row area, then by Department for the column area, and it contains
00:32sales data in the body of the PivotTable.
00:35Because I have a two level organization -- month and week -- in the row area, I can
00:40click this hide detail button beside month, and when I do, Excel hides the
00:46detail underneath January.
00:48So, instead of having to the weekly data, I just see the subtotal for January.
00:53I could do the same thing for February, and also for March. I'll click the
00:58show detail button now for those three months to bring back the data. But now
01:03let's say that I want to hide detail inside of a PivotTable.
01:07For example, let's say that I'm only really interested in weeks 1 and 2 for
01:12January, and I want to hide the data for weeks 3 through 4. And note that
01:17that data is displayed in spreadsheet rows 8, 9, and 10.
01:22To add hide detail and show detail buttons to those rows, all I need to do is
01:27select rows 8 through 10, and then on the Data tab, in the Outline group,
01:32click the Group button.
01:34Doing so adds a grouping level to the worksheet, and you can see to the left of
01:40rows 8, 9, and 10 I have an outline bar, and a hide detail button.
01:46If I click that button, then the rows 8, 9, and 10 are hidden.
01:50They're still in the worksheet;
01:51they're just not currently displayed.
01:53If I want to bring them back, I can click the show detail button, and they are there.
01:58Now, notice that the Grand Total for January is 550,258.
02:03If I hide the detail for rows 8 through 10, the Grand Total doesn't change.
02:08So, even though you're just seeing the data for weeks 1 and 2, the summary
02:11operation still encompasses all of the data that's contained in the PivotTable,
02:16even if it's not displayed.
02:17If you want to remove the grouping level from those rows, then you just select
02:21the row headers again, and on the Data tab, in the Outline group, click the
02:26Ungroup button, and the grouping level is removed.
02:29That is how you get more control over which rows are displayed within a PivotTable.
02:34You can use grouping to change which rows are displayed, without changing
02:38your summaries.
Collapse this transcript
Using PivotTable data in a formula
00:00PivotTables are extremely flexible and powerful tools inside of Excel.
00:05In fact, many times you'll probably find a summary value or calculation inside of
00:09a PivotTable that you'd like to use in a formula.
00:12In this movie, I will show you how to use a PivotTable values inside of a formula
00:17using the GetPivotData function.
00:20I'll use the Formula sample file, which you can find in the Chapter02 folder of
00:25your Exercise Files archive.
00:26So, again, my goal is to create a formula that uses a value from a PivotTable,
00:32and it's a values that I'll be able to use regardless of how I rearranged my PivotTable.
00:37In this case, what I'd like to do is display the grand total of all customers
00:43that have been acquired.
00:44So, my PivotTable data shows customer acquisition figures by region, and by
00:49quarter for the years 2012 and 2013, and in cell G1, I want to have the formula
00:55that displays the grand total.
00:57To do that, I start entering a formula the way that I would enter any formula: by
01:02typing equals sign, and then all I need to do is click the cell that contains
01:07the value that I want to use.
01:08That cell is currently cell F15,
01:11so I'll click it, and you can see that when I do, Excel inserts a
01:16GetPivotData function.
01:18It has two arguments, in this case.
01:20The first one is Customers, in quotes, and that is the name of the PivotTable, then a
01:25comma, and then A3.
01:27So, A3 refers to the cell at the top left corner of the PivotTable as it's
01:34currently displayed, and you can see that cell A3 is outlined.
01:38So, now what I need to do is press Enter, and the value 15,355 appears in that
01:44cell as a result of the formula that I entered, which I'll display on the formula
01:49bar by clicking cell G1 again.
01:52One thing I should point out is that the GetPivotData formula that I created
01:56relies on the value currently in cell F15: the grand total.
02:00Now, I can rearrange the PivotTable, for example, by removing Quarter and putting
02:07up in the field area.
02:08You can see that even though the grand total is now in a new cell, its value
02:12still appears in cell G1.
02:14I'll press Ctrl+Z to undo the change I made to the PivotTable.
02:18But let me show you what happens if I were to hide grand totals for this PivotTable.
02:23To do that, I would like the Design contextual tab on the ribbon, and then click
02:28the Grand Totals button, and click Off for Rows and Columns.
02:33Doing so hides the grand total.
02:34So, the cell that I was relying on for this formula no longer appears inside of
02:39the PivotTable, so that means that the formula returns a reference error.
02:43In other words, it can't find the cell that contains the data to which the
02:47formula is referring.
02:48If I were to bring back the grand totals, then the value is redisplayed inside
02:52the PivotTable, and the formula returns the value as expected. But there's
02:56nothing special about the grand total of a PivotTable.
02:59For example, if I wanted to display the 2012 Quarter 2 value for the West region,
03:05all I would need to do is create a new formula referencing that cell.
03:09So, clicking on cell G1, type equals, and then quarter 2 for 2012, click there,
03:16and you can see that I now have a much fuller reference.
03:19Again, I have the name of the PivotTable, the cell, and now we're referring to the
03:24year 2012, quarter 2, and the West region.
03:28So, in other words, the GetPivotData function has all of the arguments that it
03:32needs to identify the specific cell that you've clicked, and are adding to your
03:37formula, and it's great that Excel does all that work for you, because it would
03:41be a pain to try to get everything in the proper order, and get all of the
03:45references on your own.
03:47Just to complete the demonstration, when I press the Enter key, you will see that
03:51the data for quarter 2 of 2012 for the West region appears in cell G1 as a
03:57result of the formula.
Collapse this transcript
Drilling down to the underlying data
00:00PivotTables are extremely powerful tools.
00:02They let you summarize the datasets that contain tens of thousands, or even
00:06hundreds of thousands of rows of data.
00:09The problem is that you might not be able to see all of the detail that you want
00:13within the body of the PivotTable.
00:15In this movie, I will show you how to drill down to display the rows inside of
00:19the original data source that provide a value for a cell inside of a PivotTable.
00:23I will use the DrillDown sample file, which you can find in the Chapter02 folder
00:29of your Exercise Files archive.
00:31This data contains quarterly sales for five different departments of
00:35a particular company.
00:36Let's say that I want to see the row from the data source that provides the
00:39value for the Play department for quarter number 3.
00:43To do that, all I need to do is double-click the cell that contains the data for
00:48which I want to see the details.
00:49I'll double-click cell D7, and when I do, Excel creates a new worksheet inside
00:56of my workbook, and I'll go ahead and release the selection, and zoom in, so that
01:02you can see the data.
01:03It's displayed in an Excel table, and you can see that there's only a single row,
01:09and that is for the Play department, quarter number 3, and Sales.
01:13That's the table row that provides data for that PivotTable cell.
01:17Now I'll just go ahead and delete this worksheet by right-clicking the sheet tab,
01:21and clicking Delete, and click Delete again to confirm the operation.
01:26I can do the same thing for a grand total, or subtotal.
01:30So, for example, let's say that I wanted to see all the rows that contribute
01:34to the value, the grand total, for the Dance department for quarters 1 through 4.
01:40To do that, I'll double-click cell F6, and when I do, zooming in again, Excel creates
01:45a new worksheet that contains all of the rows from the original data source for
01:50the Dance department for quarters 1, 2, 3, and 4.
01:53Once again, if you're summarizing a large dataset inside of your PivotTable, and
01:57you want to see the original source rows that provide a value for an individual
02:01cell or summary, you can do so by double-clicking the cell, and drilling down
02:06into the original data source.
Collapse this transcript
3. Sorting and Filtering PivotTable Data
Sorting PivotTable data
00:00When you create a PivotTable, Excel sorts the data into an order that makes sense
00:05according to its internal rules.
00:07For example, if you have monthly data, then the program will sort the data in
00:11order of month; January, February, and so on, and text values tend to be
00:16sorted in alphabetical order.
00:19In this movie, I will show you how to change the sorting order, both for numerical
00:23fields in the body of the PivotTable, and also for the labels.
00:27In this movie, I'll use the Sorting sample file, which you can find in the
00:32Chapter03 folder of your Exercise Files archive.
00:35This is a fairly simple PivotTable, and it contains sales data for the
00:40months of January and February for a given year, and also the sales are
00:45divided out by department.
00:46You'll notice that the top level of organization is month, and months are sorted
00:51in sequential order: January, and then February; and the departments are sorted in
00:57alphabetical order; Balance, Dance, Play, Sport, and Work.
01:00But let's say that I want to sort the PivotTable, so the numerical data is in
01:05either ascending or descending order.
01:07To do that, I right-click any cell that contains data, and not a summary, but any
01:13cell that contains data in the body of the PivotTable.
01:16Then in the shortcut menu that appears, point to Sort, and then I can select Sort
01:22Smallest to Largest, Largest to Smallest, or more options.
01:26In this case, what I want to do is display the largest values on top,
01:29so I'll click Sort Largest to Smallest.
01:32Doing so causes Excel to sort the PivotTable data within the existing structure.
01:37So, in other words, I had a second level of January, and then the bottom level,
01:42the first level is the department, so Work, Dance, Sport, Play, and Balance, and
01:47you'll notice that the sorting only occurred within one of those major units; in this case month.
01:52So, I have the monthly data sorted in descending order for January by
01:57department, and I have a similar effect here under February, the data goes from
02:03largest to smallest.
02:05If you want to undo a sort that you've applied, you can either click the undo
02:08button, or do as I'll do now, which is pressing Ctrl+Z. Doing so undoes your last
02:15action. In this case, it was the sort.
02:17Now let's say that you want to sort based on label data instead of the data in
02:22the body of the PivotTable.
02:23For example, let's say that I wanted to have my departments listed in
02:27reverse alphabetical order.
02:29To do that, I can go over to the PivotTable Fields pane, and I want to sort by department,
02:35so I'll hover the mouse pointer over the Department field header.
02:38You can see that it turns green, and at the right edge, there is a downward
02:43pointing black triangle.
02:45I'll hover the mouse pointer over that triangle, and when it's in position, I'll
02:49click it, and doing so gives me a shortcut menu very like the one that I got when
02:54I right-clicked the data cell.
02:56I can Sort A to Z, Sort Z to A; that is either ascending or descending order, or
03:01I can use more options.
03:03In this case, I want to sort in reverse alphabetical order,
03:06so I'll click Sort Z to A, and my department names are now sorted in reverse
03:12alphabetical order: Work, Sport, Play, Dance, and Balance. And as before, I can
03:17click the Undo button to undo the sort that I just applied.
03:21Those are the basics of sorting data inside of a PivotTable.
03:24The only tricky part is remembering how to sort by the data in the value field,
03:29and again, that technique is to right-click any cell, point to Sort, and select
03:33your sorting option.
03:35Other than that, use the controls in the PivotTables Fields pane, and you can
03:38rearrange your data as you desire.
Collapse this transcript
Creating a custom sort order
00:00When you create a PivotTable, Excel sorts the data inside of each field in an
00:04order that makes sense for that type of data.
00:07For example, in this case we have a set of data for sales for the months of
00:12January, and February, and also for five departments.
00:16The months are sorted in sequential order; January, and then February, and the
00:20department names are sorted in alphabetical order.
00:24If you'd like to define a custom sort order, you can do so by creating a custom
00:28list, and in this movie I'll show you how to do that.
00:32I will use the Custom sample workbook, which you can find in the Chapter03 folder
00:37of your Exercise Files archive.
00:39So, once again, my goal is to create a custom list, so that instead of having
00:43departments sorted in alphabetical order, I would have them in an order of my choosing.
00:48So, I need a custom list of values to use as my sorting criteria.
00:53To create the list, I'll click the File tab, and then click Options to display
00:58the Excel Options dialog box.
01:01Click Advanced to show the Advanced Options page, and then I'll scroll down, and
01:06actually, if you drag the slider all the way down, about halfway down the screen,
01:10you'll see the Edit Custom List button. Go ahead and click it to display the
01:15Custom List dialog box.
01:17You can see that Excel comes with four predefined lists;
01:20there are two each for days of the week, with abbreviation, and the full names,
01:26and similarly for months you have abbreviations, and also the full names of the months.
01:31To create a new list, make sure that New List is highlighted inside the Custom
01:35List pane, and then click in the List Entries pane.
01:39Now you can type in the list in the order that you want to use as your sorting criteria.
01:44So, for example, let's say that I wanted my five departments to be sorted in
01:48this order: Play, then press Enter; then Balance Enter; Dance, and Enter; then
01:56Work, Enter; and Sport.
01:59I'll just take a moment to verify the spelling is correct, and it looks like it
02:03is, and I'll click Add to create the list.
02:07If for some reason you want to get rid of a custom list, you can do that
02:10by clicking the List over here in the Custom List pane, and then clicking the Delete button.
02:15I'm not done with this list yet, so I'll click OK, and OK again to close the
02:20Excel Options dialog box.
02:22Now I can sort by department using my custom list.
02:25To do that, I'll move the mouse pointer over into the PivotTable Fields pane,
02:29point to Department, and then when I highlight the Department Field header, I'll
02:34point to the downward pointing black arrow, and then I'll click it to display
02:37the shortcut menu, and the item I want is More Sort Options.
02:42Doing so displays the Sort dialog box.
02:46I want to sort using my custom list, and I want to sort in ascending order, so in
02:50other words, the order in which I entered the items.
02:53So, I'll click Ascending (A to Z) by Department, so that's correct, I don't need
02:58to change it, and now I'll click More Options.
03:01Now, in the More Sort Options dialog box, I'll clear the Sort automatically
03:06checkbox, which I need to do to activate the First key sort order list box.
03:11I want to click that list box's down arrow, and select the custom list that I
03:16just created, so Play, Balance, Dance, Work, and Sport.
03:20With that selected, I'll click OK, and click OK again to close the Sort
03:24dialog box, and when I do, the PivotTable is sorted based on the values in my custom list.
03:30So, within each month, the Departments Play, Balance, Dance, Work, and Sport
03:34define the order of the items in the PivotTable.
03:37Custom lists are an extremely valuable and powerful tool.
03:41If you find that a particular order of items within a field communicates a lot
03:45of information, then you can define that order as a custom list, and use it to
03:49rearrange your data in your PivotTable.
Collapse this transcript
Filtering a PivotTable field by selection
00:00PivotTables are extremely useful for summarizing large data sets. There will
00:05be times, however, when you want to limit the data that is displayed within a PivotTable.
00:10You can limit the data that appears by using a filter, and in this movie, I will
00:15show you how to create one type of filter, which is a selection filter.
00:18I will use the Selection sample workbook, which you can find in the Chapter03
00:23folder of your Exercise Files archive.
00:26This PivotTable contains quarterly sales data for five different departments:
00:31Balance, Dance, Play, Sport, and Work.
00:33Let's say that I that I want to filter the data, so that I only see values for
00:38the Balance and the Sport departments.
00:41To do that, I'll click any cell in the body of the PivotTable, and then in the
00:45PivotTables Fields pane, I'll hover the mouse pointer over the Department field
00:50header, and then move the mouse pointer over that header's downward pointing
00:54black triangle, and click it.
00:57And then in the shortcut menu that appears, I have a Filter option here at the
01:02bottom that allows me to select items.
01:04So, I can Select All items, and then I also have checkboxes for each of the five
01:10values, or departments within that field.
01:12If I want to remove all the selections, then I can clear the Select All box by
01:17clicking it. Doing so removes all of the checks from the checkboxes.
01:22I can now check the box of any department I want displayed.
01:24So, I'll check the Balance box, and the Sport box, and if I scroll back up, you can
01:31see that the Select All button now has a black square inside of it.
01:34The black square indicates that some items were checked, and some aren't. The
01:39Select All box has three states.
01:41The first is check, which indicates that all of the checkboxes are checked, so
01:46all values will be displayed.
01:48A black square indicates that some values are checked, but some aren't, so not
01:52every value will be displayed, and if the Select All checkbox is cleared, that
01:56means that nothing is selected.
01:58But in this case, I have Balance and Sport selected, so I'll click OK.
02:03Doing so filters the data inside the PivotTable, so I only see results
02:07for Balance and Sport.
02:09And you'll also notice that the Grand Total is changed to match the filter as well.
02:14You can also sort by values in more than one field.
02:17So, if I want to sort by quarter, I'll just click the Quarter field header's
02:21down arrow, clear Select All, and let's say that I only want to see results for quarter number 3.
02:26I'll check that box, click OK, and my PivotTable is filtered, so that it only
02:31displays quarter 3 results for the two departments I selected.
02:35To undo the filter, I can click the Undo button on the quick access toolbar,
02:40which reverses the last change that I made, or I can use the Filter interface, so
02:45I'll click Department again, and I can click the Select All box.
02:49Doing so checks the value; all the values now have checks next to their
02:53names, so I'll click OK.
02:55Doing so removes the filter, and all the values are now displayed within the
02:59body of the PivotTable.
03:00Filtering by selection is an extremely powerful tool, because it allows you to
03:04identify exactly the fields that you want.
03:07It's a technique that I'm sure you will use quite a bit when you get down to
03:11specific analysis for your business.
Collapse this transcript
Filtering a PivotTable by rule
00:00If you want to limit the data that appears in a PivotTable, you have many
00:03different ways to do it.
00:05For example, you can select which values you want to appear. If you have a lot
00:09of values, that can be kind of tedious.
00:11If possible, you should try to define a rule that allows you to tell Excel
00:15quickly which values to include, and which to exclude from the PivotTable in your filter.
00:20In this movie, I will show you how to create rule-based filters, so that you can
00:24effectively limit the data inside of your PivotTable.
00:27I will use the Rule sample file, which you can find in the Chapter03 folder of
00:32your Exercise Files archive.
00:34This table summarizes the number of new customers acquired for quarters 1, 2,
00:393, and 4, for the years 2012 and 2013, for four regions: North, East, South, and West.
00:45Let's say that I want to limit the data to only quarters 3 and 4, so in
00:51other words, what I want to do is define a rule that causes the PivotTable
00:56to only display quarters with numbers greater than 2, so I can define a rule to that effect.
01:02To do that, I'll click any cell in the PivotTable, as I've done here, and then
01:06over in the PivotTable Fields pane, I'll point to the Quarter field header, and
01:10then move the mouse pointer over its downward pointing black triangle, and when
01:15I click it, I get a shortcut menu, with the number of filtering tools.
01:19In this case, I want to filter by the label, and the Label is the value that
01:24appears here for 3, 2, and 1 at the edge of the PivotTable, defining its contents.
01:29So, I'll point to Label Filters, and then from the list that appears, I'll
01:34select Greater Than.
01:35And you can see that there are quite a few other rules that you could create,
01:39but in this case, I'll just use Greater Than as an example.
01:43So, when I click it, the Label Filter dialog box appears. The Show items for which
01:48the label box says is Greater Than, so that's my comparison operation, and now I
01:54can define the value that I want to use for the comparison.
01:57In this case, I want to show values for all quarters that are greater than 2, so
02:02I'll type 2, and click Ok.
02:05Doing so applies the filter to the body of the PivotTable, and now I only see
02:09results for quarters 3 and 4.
02:12And as always, if I want to remove that filter, I can click the Undo button on
02:16the quick access toolbar, and doing so takes away my last action, which was
02:21applying the filter.
02:22Rules are extremely powerful ways of filtering your PivotTable.
02:26If you can define one, you can save a lot of work.
Collapse this transcript
Filtering a PivotTable using a search filter
00:00Many companies use combinations of letters and numbers to identify customers,
00:05projects, and departments.
00:07In this movie, I will show you how to use search filters to filter your
00:11PivotTables based on characters that appear inside of those strings.
00:15I will use the SearchFilter sample file, which you can find in the Chapter03
00:20folder of your Exercise Files archive.
00:22This PivotTable contains data about a number of products, listed here by their
00:27product code, and also shows how many of those products have been ordered for
00:32three states: California, Oregon, and Washington.
00:34What I'd like to do is use filters that allow me to identify the products that
00:40I want to display inside of the PivotTable without having to create complicated rules.
00:45I can do that by creating what's called a search filter.
00:49I want to filter based on the values in the Product field,
00:52so I'll go over to the PivotTable Fields pane, position the mouse pointer over
00:57the Product field header, click the downward pointing black triangle that
01:01appears, and then click in the Search box.
01:05Now, inside the Search box, I can start typing characters that appear in sequence,
01:09and the values that I want to display.
01:11So, let's say, for example, that I only wanted to display products that are part of
01:16the Play department.
01:17Those products start with the letters PL, so I'll start typing P, and then L,
01:23when I do, you can see that the selection list has been narrowed down to only
01:27items that contain the letters PL, in that order.
01:31Two things to note; the first is that case doesn't matter, so in other words,
01:35even though I typed lowercase pl, I have uppercase PL here.
01:39And secondly, although it's not apparent from this selection, the characters PL
01:43could appear anywhere in these values; it doesn't have to be at the start.
01:47But in this case, I have the values for PL, 003, 004, 009, 12, and 30.
01:55If I want to apply this filter, I'll click OK, and now I only see items from
02:00the Play department.
02:01I'll go ahead and click Undo to remove that filter.
02:04Now let's say that I only want to display items that have the character
02:08string 001 in them.
02:11Again, I want to filter based on the values in the Product field, so I'll click
02:16the Product field header's down arrow in the PivotTable Fields pane, click in
02:20the search box, and now, just to show you what could happen, I'll type 1.
02:25So, now I see BA001, but also PL012.
02:31So, that's not what I want to do; I only want to display products that have 001 in them.
02:37So, I'll type Backspace, and type in 001, and now you can see that I have products
02:42BA001, SP001, and WK001, and when I click OK, Excel uses the search filter to
02:51limit the data that appears in the PivotTable, so now it is only products with a
02:55string 001 somewhere in their name.
02:59And again, to remove that filter, I'll just click the Undo button, and Excel
03:03restores the PivotTable to its full display.
03:06Search filters are extremely powerful tools; just remember that the characters
03:10you type into the search box can occur anywhere within the value, not just at the
03:14beginning. That's the most common mistake of using search filters.
Collapse this transcript
Filtering a PivotTable using slicers
00:00When you apply a filter to a PivotTable, Excel limits the data that appears in
00:05the body of your worksheet.
00:06The problem is that there is no clear indication of which values are included,
00:11and which values are excluded from the current state of the PivotTable.
00:15In this movie, I will show you how to use slicers, which do give a strong visual
00:19representation of values that are either in or out of the PivotTable.
00:24I will use the Slicer sample workbook, which you can find in the Chapter03
00:28folder of your Exercise Files archive.
00:31This PivotTable contains quarterly customer acquisition data for a company, and
00:36it's based on a year and region.
00:39Let's say that I just want to focus on the East region. I can create filters
00:43using the tools that I've shown in other movies that you can access form the
00:48PivotTable Fields pane.
00:49But let's say that I want to have a strong visual representation of which
00:53regions are displayed in the PivotTable.
00:56To do that, I can click any cell in the PivotTable, then click the Analyze
01:00contextual tab on the ribbon, and then in the Filter group, click Insert Slicer.
01:06Doing so displays the Insert Slicers dialog box.
01:10I want to filter based on Region, so I will check the Region box, and just a
01:15note; you can see that I could create a slicer for anyone of my fields, but in
01:20this case, I'll just do region. Click OK, and doing so inserts a slicer in the worksheet.
01:26I'll drag the slicer over to the side, so that you can see you can see all of the
01:31data inside of the PivotTable.
01:32Every region is currently displayed inside the PivotTable, so they're all
01:35highlighted here inside the slicer.
01:37If I only want to display data for the East region, then I can just click
01:41the East button here, and doing so removes the other regions from the body of the PivotTable.
01:47You can select Regions, or any other values that you want using the familiar
01:50techniques of either clicking, so for example, I can display West by clicking it.
01:55If I want to display multiple items, I can click the first one -- in this case,
01:59West -- then hold down the Ctrl key, and click the second one; I'll do North.
02:04When I do, both North and West are selected, and because I held down the Ctrl
02:09key, the individual items that I selected appear inside of the slicer, and
02:14therefore, in the PivotTable.
02:16If you want to display items that are next to each other inside of the slicer,
02:20then you can click the first item, and then click the last item in the sequence,
02:25holding down the Shift key.
02:26So, for example, if I want to show the regions East through South, I can click
02:30East, then hold down the Shift key, and click South.
02:34So, if I'd held down the Ctrl key, I would just have East and South, but because I
02:38held down the Shift key, when I click South, I now have East, North, and South,
02:43with only West excluded.
02:45If I want to clear a filter from the slicer, I can click the Clear Filter button,
02:50which is here at the top right corner, or I could Alt+C, but in this case, I'll
02:55just click that button.
02:56Doing so removes the filter, and displays all of the items inside the body of the PivotTable.
03:02When I'm done using the slicer, I can right-click its body, and then click
03:06Remove Region. Doing so gets rid of the slicer, and it would remove any
03:11filter that was applied.
03:12So, if you have room on your worksheet when you're working with your
03:15PivotTable, and you want to have a clear indication of which values are
03:19included, and which values are excluded from the current state of the
03:22PivotTable, slicers are the way to go.
Collapse this transcript
Formatting slicers
00:00In the previous movie, I showed you how to filter your PivotTable
00:03visually using a slicer.
00:06In this movie, I'll show you how to work with slicers to change their format, so
00:09that they fit more effectively in your worksheet.
00:12I will use the FormatSlicer sample file, which you can find in the Chapter_03
00:17folder of your Exercise Files archive.
00:19As a quick review, a slicer is a visual representation of a filter that's been
00:25applied to a PivotTable field.
00:27In this case, I'll just create a slicer for the Region field,
00:31so I'll check that box, and click OK.
00:33And just for demonstration purposes, I'll filter so that only the South
00:38region is displayed.
00:40When the slicer is selected, the Options contextual tab appears on the
00:44ribbon, and I have a number of tools that I can use to change the slicer, and its formatting.
00:49For example, over on the right side in the Size group, I can change its Height,
00:53and Width, so if I wanted to make it smaller, say, take it down to 1.5 inches, I
00:59can just type 1.5 in the Height box; type Enter.
01:02I can also resize the slicer by dragging its handles,
01:06so if I want to make it taller, I can just go to the bottom edge, and drag the
01:10middle handle. Drag that down.
01:11It will resize this.
01:12Same thing here; if I want to make it wider, I can do so.
01:16If I want to change its height and width at the same time, then I can drag one
01:20of the corner controls.
01:21You can also change the size of the buttons.
01:24To do that, just go up to the Buttons group, and let's say I want to make the
01:28buttons a little bit narrower.
01:29They are currently 0.26 of an inch, so just over a quarter.
01:33Let's say that I want to make it 0.15, so 15/100th of an inch.
01:38I will type that in the Height box, press Enter, and now the buttons are smaller.
01:42If I want to make them thinner, I can change the value in the Width box, say,
01:46from 1.79 inches to 1.4, press Enter, and the buttons are resized.
01:53If a field contains a lot of values, you can also increase the number of
01:56columns in the slicer.
01:58So, if I wanted to make the slicer two column, I can do that just by clicking the
02:03up arrow on the spin control next to the Columns field,
02:07and doing so adds a second column of buttons to the Region slicer.
02:12You can also change the appearance of the slicer using a style, and they appear
02:17here in the Slicer Styles gallery.
02:20You can display the entire gallery by clicking the More button,
02:23and that displays all the styles that are available to you, or if you want, you
02:27can also create a New Slicer Style.
02:29Let's say that I want my slicer to stand apart from this dark blue theme that I
02:34have here for the PivotTable.
02:36So, I'll use an orange and gray theme.
02:39So, I'll click that style, and doing so applies it to the slicer.
02:44And if I make the buttons larger, a quarter of an inch, then you can see the
02:50impact of the formatting much more clearly.
02:53Those are the basics of formatting Slicers.
02:55Change them any way you need to to get your message across effectively.
02:59Don't be afraid to use a little bit of color, so it's easy for your audience
03:02to see which values are in the PivotTable, and which are currently out
03:05because of a filter.
Collapse this transcript
Filtering with report filter fields
00:00So far in this chapter, all of the filtering techniques that I've shown you use
00:04fields that are included in the PivotTable's organization.
00:08In this movie, I will show you how to use report filter fields that allow you to
00:12limit the data displayed in a PivotTable without changing its organization.
00:16I will use the ReportFilter sample file, which you can find in the Chapter_03
00:20folder of your Exercise Files archive.
00:23This is a fairly simple PivotTable.
00:25It contains new customer data based on quarter 1, 2, 3, and 4, for four regions.
00:32If you look over in the PivotTable Fields pane, you can see that there are
00:35actually four fields available to me.
00:38The one that isn't currently displayed is Year.
00:41I'll just show you what happens when I add it to the PivotTable.
00:44So, I have Year, and I'll drag it down above Regions, in the Rows area, and you
00:50can see that my data is broken out by Year, in addition to being broken out by
00:55Region, and by Quarter.
00:56But let's say that I don't care about the year.
00:59I know that the data is from 2012 and 2013, and all I care about are the totals.
01:04Well, the first thing I can do is remove Year from the Rows area,
01:08but where do I put it?
01:09There are two options.
01:10The first is that I could drag it back up to the top to remove it from the
01:15PivotTable, or I can also drag the Year field header from the Rows area to the Filters area.
01:21Doing so changes the PivotTable back to its original organization, but it also
01:25adds the Year field here at the top left area of the PivotTable.
01:30This is called the report filter area, or just the filter area in Excel 2013.
01:35If I click this filter field's down arrow, Excel displays a filter interface.
01:41I can create a Search filter, or I can click individual items.
01:45So, let's say that I only want to see values for 2012.
01:47If I click 2012, and click OK, Excel changes the data inside of the PivotTable,
01:53and the value 2012 appears here in cell B1.
01:56I'll click the down arrow again, click 2013, click OK, and you can see that the values change.
02:03If you want to show multiple values, then click the filter arrow, check the
02:07Select Multiple Items box, and you get a selection interface like you would do
02:12if you're creating a filter for a regular field.
02:15In this case, I only have two items,
02:16so checking the 2012 box also checks the All box.
02:21So, I can just click OK, and now I have essentially no report field filter.
02:26So, that by itself is pretty neat.
02:28You can filter the items that appear inside the body of a PivotTable without
02:32changing its organization.
02:34There's one other thing you can do with filter fields, which you might not know
02:37about if you haven't worked with PivotTables extensively, and that is, you can
02:41create separate worksheets -- in fact, separate PivotTables, that summarize only
02:45the data for each item in your filter field.
02:48Let me show you how to do that.
02:49First thing you need to do is click any cell inside the PivotTable, and then
02:54click the Analyze contextual tab.
02:57Then, in the PivotTable group, which is all the way to the left, click the
03:01Options button's down arrow, and then click Show Report Filter Pages.
03:06Doing so opens the Show Report Filter Pages dialog box.
03:10Every field currently positioned in the Filters area appears here in the list,
03:15and you can then click any or all of the fields that you want to use to divide up
03:20the values in your PivotTable.
03:21So, for example, if I had both Year, and Region, then I can click one, or both.
03:27One thing to watch out for, though, is that Excel would create a new PivotTable,
03:32and a new worksheet for every combination.
03:35In this case, I have 2 years and 4 regions, so that would be 8 separate
03:39PivotTables, so be very careful when you're doing it, because the numbers
03:43can grow very, very quickly.
03:46But in this case, all I have is one field, which contains two values. That's Year;
03:50I'll make sure it's selected. Click OK.
03:52Now I have two new sheets with PivotTables; one for 2012, and if I click, one for 2013.
03:59And you can see that in fact they are normal PivotTables.
04:04The difference is that a filter has already been applied for the year 2013 here,
04:09and the year 2012 here.
04:11So, that's two useful ways to apply filters using the report filters field.
04:16You can limit the data that appears in your PivotTable without changing its
04:20organization, and you can create separate worksheets and PivotTables for
04:24subsets of your data.
Collapse this transcript
Clearing and reapplying PivotTable filters
00:00When you apply a filter to a PivotTable, you limit the data that's
00:03displayed within it.
00:05In this movie, I will show you how to remove filters, both individually, and
00:09removing all your filters at one time.
00:12I will use the Clear sample file, which you can find in the Chapter_03 folder of
00:16your Exercise Files archive.
00:18This workbook contains a single PivotTable with three fields;
00:23Department, Quarter, and Sales,
00:25and I currently have filters applied to both the Department and Quarter fields.
00:31You can tell that a filter is applied, because the Column Labels and Row Labels
00:36buttons within the body of the PivotTable have a filter icon next to the arrow,
00:41and also, you can see in the PivotTable Fields pane that the Department and
00:47Quarter field headers have filter icons next to them as well.
00:51If you want to remove a filter from a field within a PivotTable, then go over
00:56to the PivotTable Fields pane, and click the down arrow of the field that you
01:01want to remove the filter from, and then click Clear Filter from Department, and
01:06Department, in this case, is the name of the field.
01:09If I were removing the field from Quarter, it would say Clear Filter from Quarter.
01:13So, I will go ahead and click that,
01:15and when I do, all of the departments appear in the PivotTable.
01:18And I could do the same thing for Quarter.
01:20If I want to reapply the filter, I just need to undo my last action.
01:24So, to do that, I'll go up to the quick access toolbar, and click the Undo button.
01:29Doing so reapplies the filter.
01:31I could have also pressed Ctrl+Z. If you want to remove every filter from a
01:35PivotTable, you don't need to get rid of them individually.
01:39Instead, what you can do is click any cell in the Pivottable, then on the
01:43Analyze tab on the ribbon, click the Clear button, and then click Clear Filters.
01:50Doing so removes all the filters from the PivotTable, and displays all of the
01:54data contained within the fields, with the organization that you've set in the
01:58PivotTable Fields pane.
02:00And that is how you remove and reapply filters from PivotTables in Excel 2013.
Collapse this transcript
4. Formatting PivotTables
Applying a PivotTable style
00:00Excel PivotTables let you analyze your data effectively.
00:04They're also great for presentations,
00:06which means that you need to pay attention to formatting.
00:09In this movie, I will show you how to apply and manage existing PivotTable styles.
00:13I will use the ApplyStyle sample file, which you can find in the Chapter_04
00:19folder of your Exercise Files archive.
00:21This PivotTable has the bare minimum of formatting applied to it.
00:26The format doesn't use any color, and you can also see that there are only thin
00:30border lines between the labels and the data.
00:32If I want to change the style that's applied, all I need to do is click any cell
00:36in the PivotTable, and then click the Design contextual tab on the ribbon.
00:41The Design contextual tab has a gallery in the Pivot Table Styles group.
00:46You can see the first seven styles here in the ribbon.
00:49If you want to display the entire gallery, then click the More button, which is
00:53here at the bottom right corner of the in ribbon gallery, and you get a
00:56scrollable list, which contains all of the styles available to you.
01:01If I want to apply a style, all I need to do is click it, and in this case, I'll
01:06click Pivot Style Light 1.
01:08Doing so applies it to the body of the PivotTable.
01:11Now, you probably didn't see much of a difference, but what happened was that
01:15the labels are now formatted in bold.
01:19There is one other change that I can make, and that is to apply banding.
01:22Banding is when you have a different color for alternate rows.
01:25For example, the first row might be light, and the second row would be darker,
01:30say, perhaps with a gray.
01:31So, with my style selected, and again, on the Design contextual tab of the
01:35ribbon, I'll go to PivotTable Style Options group, and click Banded Rows.
01:41Doing so applies banding, which makes it easier to distinguish between the data
01:46in the odd and even rows within the body of the PivotTable.
01:49If your style also allows banded columns, then you can check that box.
01:53So, for example, I'll clear the Banded Rows checkbox, and click Banded Columns.
01:58And when I do that, all of the odd numbered columns are now colored with a
02:02darker color, and all of the even numbered columns are left blank.
02:06So, they just have no coloring whatsoever.
02:09If you select both of them at the same time, then you get a crosshatch pattern.
02:13I personally find this much formatting to be confusing,
02:16and if I'm going to use banding at all, I'll do either Banded Rows, or Banded
02:20Columns, and most of the time, I stay with Banded Rows, and read the columns as best as I can.
02:26And that is how you apply and manage existing PivotTable styles.
02:30Of course, if you don't find a style that's exactly what you want, you can
02:34always create your own.
Collapse this transcript
Creating a PivotTable style
00:00As with any spreadsheet object, you should pay careful attention to your
00:03PivotTable's formatting.
00:05The better your formatting, the more effectively your PivotTables will
00:08communicate your data.
00:09In this movie, I will show you how to create and apply your own custom PivotTable style.
00:14I'll use the DefineStyle sample file, which you can find in the Chapter_04 folder
00:19of your Exercise Files archive.
00:21You can apply an existing style by clicking any cell in the PivotTable, and
00:25then on the Design contextual tab, clicking any style in the PivotTable Styles gallery.
00:32If you want to create your own PivotTable style, you can go to the bottom of
00:35the gallery, and click New PivotTable Style.
00:38Doing so displays the New PivotTable Style dialog box.
00:42You can use the controls in this dialog box to define your style.
00:46And in this case, I'll type a name for it.
00:49And instead of PivotTable Style 1, I'll call it Corporate Comm, short for
00:54Communication, and now I need to decide which elements I want to change.
00:59In this case, I'll change the header row.
01:01So, I'll click Header Row,
01:03then I'll click the Format button.
01:05Doing so displays the Format dialog box.
01:08I can use the controls in the Format Cells dialog box to change the formatting
01:12of the header row cells.
01:13I am on the Font tab.
01:15So, I'll change aspects of the font or the type that appears in the cell.
01:20So, I'll change the font color, so that it's white.
01:23You can see the Preview here.
01:25It shows the white text on a white background, so it's invisible.
01:28I'll leave borders alone for the moment, but just to show you what's available,
01:32if you've worked with borders in the regular spreadsheet, then I am sure these
01:36controls would be familiar with you.
01:37You can select predefined border outlines, or inside, or change individual borders,
01:42and of course, the style.
01:44Let's say though that all I want to do is change the background fill.
01:47To do that, I'll click the Fill tab,
01:49and now I can select the fill color for the header row cells.
01:53And let's say that I want to make it a medium blue.
01:57So, I'll go down to the bottom row, just above the Fill Effects, and More Colors
02:01buttons, and I'll click the blue swatch here.
02:04So, I see the sample here, and when I click OK, the Format Cells dialog box
02:09closes, and I go back to the New PivotTable Style box.
02:13And you can see over here in the Preview pane that the header row is now that
02:18medium blue with white text.
02:20Now, let's say that I want to apply banding.
02:22So, I want either the first row or the second row to have formatting applied.
02:26I'd like to have the first row be white; in other words, have no background color,
02:30so I'll work with the second row.
02:32So, for that, I need to use the Second Row Stripe.
02:36So, I'll click that element inside of the table element list, and click Format again.
02:42The last tab I worked with was the Fill tab, so it appears when I open the dialog box.
02:47Now I can select a color for the banding.
02:50I don't want to change the color of the type; I want it to be black,
02:54so I'll go for very light blue.
02:57So, I'll click the fifth color swatch.
02:59I've got my sample here, and I'll click OK.
03:03When I click OK, the Format Cells dialog box disappears, and I go back to the
03:08New PivotTable Style dialog box.
03:09And you can see that my Preview has been updated here on the right to show that
03:14I now have a light blue background, with dark text for every second row.
03:19Those are all the changes I want to make for now.
03:22So, to save it, I can click OK.
03:24But if I wanted to make the style the default for every new PivotTable that
03:28I created, I could check the Set as default PivotTable style for this
03:31document checkbox here.
03:33I do want to make that change for this document only, so I'll check the box, and click OK.
03:38Excel doesn't apply the PivotTable style immediately, but I can see it here on
03:44the top row of the PivotTable Styles gallery.
03:46And when I hover the mouse pointer over it, it displays a tooltip showing the
03:51name of the style, which is Corporate Comm.
03:53When I click the style, Excel applies it.
03:56If I want to apply the banding, or the second row stripe that I defined in the
04:01style, then I'll just go over to the PivotTable Style Options group, and check
04:05the Banded Rows box.
04:07When I do, the style alternates between a white background, and a light blue
04:11background for odd and even rows.
04:14That's how you create a PivotTable style inside of Excel 2013.
04:18You can affect many different PivotTable elements, so I encourage you to
04:22experiment, and create exactly the format that's right for your work.
Collapse this transcript
Changing the PivotTable layout
00:00When you work with PivotTables in Excel 2013, you can select from a number
00:05of different layouts.
00:06Each layout handles data and labels slightly differently, and you can pick the
00:09one that works best for your particular presentation.
00:12For this movie, I will use the Layout sample file, which you can find in the
00:17Chapter_04 folder of your Exercise Files archive.
00:20In this movie, I will show you how to find the different layouts available to
00:24you in Excel 2013, and demonstrate how they affect the presentation of your
00:30PivotTable within the workbook.
00:31To apply a layout to a PivotTable, click any cell in the PivotTable, and
00:36then on the Design contextual tab, in the Layout group, click the Report Layout button.
00:42Doing so displays the layouts that are available to you.
00:45This PivotTable is currently displayed in compact form, which means that the
00:49layout is as compact or as small as possible.
00:53You can see that there are no blank rows within the body of the PivotTable, and
00:57also Sum of Customers is on the same level as Column Labels.
01:02If I want to apply a different layout, I'll just click the Report Layout button,
01:06and I'll click the next one, which is Show in Outline Form.
01:09The Outline Form layout has a slightly different set of characteristics.
01:14You can see, for example, that we now have blank lines underneath 2012, and 2013.
01:21That's because Quarter has been moved over one level; instead of being in the
01:26same column as the Year, it's been moved over.
01:29One interesting aspect of Outline Form is that now the columns, East, North,
01:35South, and West, in this case, are all the same width.
01:38If I were to click the Undo button to go back, you can see that because East is
01:43in the same column as Column Labels, that the East cells and values are much
01:49larger, much wider than are the cells for North, South, and West.
01:54The width doesn't really matter if you're just looking at numbers, but if you
01:58apply conditional formatting, such as data bars, the length of which depend on the
02:02width of a cell, then it can make a difference.
02:05So, if you're applying conditional formatting, especially data bars, then I
02:10recommend clicking the Report Layout button, and clicking Show in Outline Form.
02:14That way, the width of the cells in your columns that contain the data in the
02:18body of the PivotTable will all be the same width.
02:21The other layout that's available to you if you click the Report Layout button
02:24again is called Tabular Form.
02:27So, if you click Show in Tabular Form, you get a slightly different layout.
02:32Tabular Form is almost the same as Outline Form.
02:35The difference is that instead of having the subtotals at the top of a group,
02:39you have them at the bottom of a group.
02:41So, previously, the subtotal was here on the top row with 2012; now it's at the
02:46bottom in a separate row marked 2012 Total.
02:48And while I am in Tabular Form, I'll show you some other aspects of the
02:52layout you can affect.
02:53So, clicking the Report Layout button again, you'll see that there are two
02:57options at the bottom, and those are Repeat All Item Labels, and Do Not
03:02Repeat Item Labels.
03:04If I click Repeat All Item Labels, you'll see that now instead of having 2012
03:09only at the top level of the PivotTable, I have 2012, 2012, 2012, all the way
03:15down, so I have that value for each quarter.
03:18If you're wondering why that's important, let me rearrange the PivotTable
03:21slightly by taking Region, and putting it underneath Quarter in the Rows area.
03:27Now I have data by Year, by Quarter, by Region, and I have the sum of my customers.
03:32I also have the subtotals here for 2012, quarter number 1, quarter number 2, and so on.
03:38If I turn off subtotals by clicking the Subtotals button, and clicking 'Do not
03:43show subtotals, then I have my original data list.
03:47So, if I were to click Sheet 1, which has the source data for this PivotTable,
03:51see that I have 2012 Quarter 1, North Region, Customers.
03:55If I click back on Sheet 2, I have 2012, Quarter 1, East Region, and so on.
04:02You can use this technique to reconstruct the original data source, in case
04:05someone wants to see it, and you don't have access to it.
04:09So, for example, if the source file were on another computer, perhaps over a
04:13network, and you can't open it directly, you can reconstruct the list by
04:17arranging the data inside your PivotTable, so that you have everything in the
04:22Rows area, and you can do your best to approximate the order of the fields.
04:26In this case, Year, Quarter, and Region seems like a good way to go, so that's
04:30how I rearranged them.
04:32And with all changes to a PivotTable, if you want to undo what you've done
04:36before, just click the Undo button, or press Ctrl+Z, and Excel will reverse your changes.
04:42That's a brief overview of the different layouts available to you. Each one has
04:46its own strengths and weaknesses,
04:48so feel free to experiment, and look for the best way to present your data.
Collapse this transcript
Changing the data field number format
00:00Most PivotTables summarize numerical data. The problem is that when you create a
00:05PivotTable in Excel 2013, as you can see here, Excel doesn't apply any number
00:10formatting to the contents of the value field.
00:13In this movie, I will show you an efficient way to apply number formatting to
00:17the body of your PivotTable.
00:19I'll use of the number formatting sample file, which you can find in the
00:23Chapter04 folder of your Exercise Files archive.
00:26Unformatted numbers are hard to read, and you can see that this first value,
00:3198677, isn't that difficult to read, because it's different length than the
00:37surrounding numbers,
00:38but when you're trying to read 138920, and 137099, unless you're intimately
00:44familiar with the data, seeing all those numbers of the same length, and with the
00:48same starting number together can make it confusing.
00:51It would be much easier to read those numbers with some formatting applied.
00:55Here's how you do it.
00:57Right-click any data cell from the body of the PivotTable. So, in other words, not
01:01a summary, and certainly not one of the labels; you want one of the data cells
01:06from within the body of the PivotTable.
01:09So, go ahead and right-click that cell, and then from the shortcut menu that
01:13appears, click NumberFormat.
01:14Doing so displays the Number tab of the Format Cells dialog box,
01:19and you can use these controls, which are probably familiar to you, if you have
01:23used Excel for any length of time, to change the formatting of the values inside
01:27of the Values field in your PivotTable.
01:30So, let's say that I want to apply Currency formatting, so I'll click Currency.
01:34Doing so displays a sample of what the data will look like.
01:38In this case, I know all the values are whole dollar values.
01:41I don't have any cents.
01:43So, I'll click the down arrow on the Decimal places spin control twice to
01:46move the value from two decimal places to zero, and you can see the sample has
01:51changed, so that now there are no values to the right of the decimal point.
01:55The negative number settings look good, and I am dealing with US dollars,
01:59so I'll leave the Currency Symbol as the dollar sign, but if I were working
02:03in Euros, Pounds, Yen; any other currency, then I could click the down arrow,
02:09and I have a wide range of currencies to choose from.
02:13But now everything looks good,
02:14so I'll click OK, and when I click OK, Excel applies that style to the body of the PivotTable.
02:20That's all there is to it.
02:21My PivotTable is much easier to read, I know that the values are currency
02:26values, and I have saved space by not having any values to the right of the decimal point.
02:31The values were all in whole dollars, so I was able to adjust my
02:34format appropriately.
Collapse this transcript
5. Applying Conditional Formats to PivotTables
Highlighting cells by applying a rule
00:00PivotTables are flexible tools that you can use to present and analyze your data.
00:05There might be times where you want to apply a format if a value within the
00:09PivotTable takes on a certain value, or follows a certain rule.
00:13In this movie, I will show you how to apply rule-based conditional formats, so
00:17that you can change the appearance of cells within the PivotTable, based on the
00:21values that the cell contains.
00:23I will use the FormatRule sample file, which you can find in the Chapter05
00:27folder of your Exercise Files archive.
00:30This PivotTable contains a selection of data; it's monthly sales for five
00:34different departments within this company, and what I want to do is highlight
00:39cells that contain monthly sales values of at least $75,000,
00:44so $75,000 or greater.
00:47To create that rule, I'll click any cell in the body of the PivotTable, and
00:52then on the Home tab of the ribbon, in the Styles group, I'll click Conditional Formatting.
00:57In the Conditional Formatting list, I'll point to Highlight Cells Rules.
01:02Doing so displays a list of all the rules that are available for this type of data.
01:06This PivotTable contains numerical data, so I have rules available, including
01:10Greater Than, Less Than, Between, and Equal To.
01:14If I had text or date values, then I could have Text that Contains, A Date
01:18Occurring -- that gives you a date range -- or Duplicate Values.
01:22But in this case, because it's a number, I have the top four options available to me.
01:26I want to identify cells that contain $75,000 or more,
01:29so I'll click Greater Than.
01:31Doing so displays the Greater Than dialog box.
01:34I can now type in my comparison value in the Format cells that are GREATER
01:38THAN: box here, where $11,730 is currently highlighted.
01:42I'll make that number $75,000, and then I can click in the With box, which
01:47describes the format.
01:49The default format is light red fill with dark red text.
01:53If I click the box's down arrow, I see a list of other pre-made formats, or I
01:57can click Custom Format, the bottom item, to display the Format Cells dialog box.
02:02I can now use the controls in the dialog box to change the formatting for the cell.
02:06I can use the controls on the Font tab to change the font, such as applying Bold
02:11formatting to any text that meets my rule that I am creating. I can also change
02:17the number format by clicking the Number tab, border by clicking the Border tab,
02:22and fill by clicking the Fill tab.
02:23In this case, I will change the fill color for cells that meet my rule by
02:27clicking the orange swatch here on the bottom row.
02:30See the sample here.
02:32I've created all of the rule elements that I want, so I'll click OK.
02:36Doing so redisplays the Greater Than dialog box, with my custom format selected.
02:40I'll click OK, and Excel applies the rule to the selected cell.
02:44Now, you notice that to the right of the cell, there is an action button, and
02:49that is the formatting options button. I will click that.
02:52I can use the controls here to apply the rule in one of three ways;
02:56to only the Aelected cells, to All cells showing "Sum of Sales" values, or to All
03:01cells showing 'Sum of Sales" values for "Department" and "Month".
03:05So, let me show you what those three different applications look like.
03:09First, I'll click All cells showing "Sum of Sales" values.
03:12Doing so applies the format to any cell that contains a value greater than
03:15$75,000, but that includes the Grand Total cells here in this column, and also in this row.
03:21Because those values are going to be significantly larger in most cases, that's
03:25usually not the best way to apply that rule.
03:27If I click the button again, you can see that I have All cells showing "Sum of
03:31Sales" values for "Department" and "Month".
03:35Doing so limits the application of the conditional formatting rule to only cells
03:39within the body of the PivotTable, excluding the Grand Total rows, and any
03:43subtotals, which aren't present in this PivotTable.
03:46That's the basics of creating a rule-based conditional format.
03:49You can create pretty much any format that you'd like, and you have a wide variety
03:53of rules available to you within the Conditional Formatting menu.
Collapse this transcript
Highlighting the top or bottom values in a PivotTable
00:00When you summarize values using a PivotTable, you might want to identify the
00:04largest and smallest values it contains.
00:07In this movie, I will show you how to identify sets of top, or largest, and bottom,
00:12or smallest, values by creating top and bottom 10 rules.
00:16I'll use the TopValues sample file, which you can find in the Chapter05 folder of
00:21your Exercise Files archive.
00:23This PivotTable contains monthly sales data, and what I want to do is identify,
00:28say, the top five values in the body of the PivotTable.
00:33To do that, I click any data cell, and then on the Home tab of the ribbon, in the
00:37Styles group, click the Conditional Formatting button, and point to Top/Bottom
00:42Rules, which is the second item in the list.
00:45Doing so displays a list of top and bottom rules that I can create. So, I can
00:49identify the Top 10 Items, the Top 10% Items, same for the Bottom 10, or Bottom
00:5410%, and also Above Average, or Below Average values.
00:58I'll show you how to create a Top 10 Item conditional format, a Bottom 10%
01:03conditional format, and also an Above Average conditional format, so you'll get
01:08one of each type in this movie.
01:09Let's start out by looking at the Top 10 Items, so I'll click that in the list,
01:14and doing so displays the Top 10 Items dialog box.
01:18This dialog box contains two fields.
01:21The first is the number of items, so it's called a Top 10 conditional format,
01:26but you can actually change the number of items.
01:28So, in this case, let's changed from 10 to 6, so I'll click in the box, backspace
01:33over 10, type the number 6, and the second box the one to the right lets you
01:38select or create a format.
01:40If you click the formats down arrow, you can select from a list of predefined
01:45formats, or you can click Custom Format.
01:47The Format Cells dialog box appears, and because the last tab that I used in this
01:52dialog box was Fill that is the tab that appears.
01:55So, if doesn't show up in your copy of Excel, please go ahead and click the
01:59Fill tab to display it.
02:01Let's say that I want to fill a cell that meets my criteria for this rule with yellow.
02:06So, the top six values in the body of the PivotTable will be formatted with a yellow fill.
02:12So, I'll click the yellow swatch here, and my sample appears below. I'll click OK
02:17to close this dialog box, and then I'll click OK to apply the format.
02:22Now, note that this cell is highlighted in yellow even though the number 11,730
02:29is nowhere near being in the top six values inside this PivotTable. That's
02:33because when you create a conditional format, it only applies the format to the
02:37selected cells, so if I'd wanted, I could have selected cells B5 to D9, but
02:44instead, I just applied the format to a single cell, and now I can determine which
02:48cells I want to apply the format to.
02:51To do that, I'll click the Formatting Options action button, which appears to the
02:55right of the selected cell.
02:56I have three options: Selected cells, which is the default, and is what Excel used
03:01when I created this conditional format; all cells containing Sum of Sales
03:06values, which applies the rule to all cells within the PivotTable, including
03:10grand totals and subtotals.
03:12Those values will always be larger than individual values within the body of the
03:17PivotTable, so we don't want to use them.
03:19The last one, All cells showing "Sum of Sales" values for "Department" and
03:23"Month" is what we want to use, because it limits the conditional formats to
03:27cells within the body of the PivotTable.
03:29So, I'll go ahead and click that option, and Excel identifies the six cells with
03:35the largest values; in other words, the top six values in the PivotTable, and as
03:39per the rule, those cells are highlighted in yellow.
03:42I'll go ahead and remove the rule by clicking the Undo button on the quick
03:47access toolbar. You could also press Ctrl+Z. Now let's say that I want to
03:52identify the bottom 25% of the values in the PivotTable.
03:55I know I want to apply that format to the values in cells B5 through D9, so
04:01I'll go ahead and select those cells. That will save me a step later. And then
04:04on the Home tab, click Conditional Formatting, point to Top/Bottom Rules, and
04:10I'll click Bottom 10%.
04:12And just like I had before, I can identify the percentage of values that I
04:16want to apply the format to, and instead of 10%, I'll edit the value in the
04:21left-hand box, so it's 20.
04:23And because I have already shown you how to create a format earlier in this
04:27movie, I'll just stay with the default, which is light red fill with dark
04:31red text, and click OK.
04:32Doing so displays the bottom 20% of values, which in this case is three, and just
04:37by coincidence, they all happen to be in the Dance department.
04:42So, sales from the Dance department are definitely lower than sales for all
04:46the other departments.
04:47I have one more format to apply, so I'll just click the Undo button to get rid of this one.
04:52I'll leave the same cell selected, and again on the Home tab, click Conditional
04:56Formatting, point to Top/Bottom Rules, and I'll click Above Average.
05:00Doing so identifies cells that are above average within the body of the PivotTable.
05:05Because I'm identifying above average values, I don't need to create any sort of
05:09rule to do that. Selecting this type of conditional format does that for me.
05:14Just for variety, I will select a different format from one of the prepared
05:18formats, so I'll click the Format box's down arrow, and I'll do Red Text.
05:24I'll just click the Red Text format, click OK, and when I click away from
05:29the selection, you can see that the cells that contain above average values
05:33now contain red text.
05:35Those are the basics of creating top and bottom rules. You can go by a number of
05:39items, you can go by percentage, or you can also identify items that are above or
05:44below average within the body of the PivotTable.
Collapse this transcript
Formatting cells using data bars
00:00PivotTables let you summarize and analyze large data collections, and in
00:04this movie, I will show you how to supplement that analysis by adding
00:07conditional formats that show the relative magnitude of different values
00:11within your PivotTable.
00:13The conditional formats I'll cover are called data bars.
00:15As my sample file, I'll use the DataBars workbook, which you can find in the
00:20Chapter05 folder of your Exercise Files archive.
00:23This PivotTable contains monthly sales data for five different departments, and
00:27three months; January, February, and March, and what I like to do is add data bars
00:33to these cells here, B5 through D9, so that I can tell the relative magnitude of
00:39the values without focusing on the individual numbers.
00:42To do that, I select the cells, and then on the Home tab of the ribbon, click the
00:47Conditional Formatting button, and then point to Data Bars.
00:50When you point to Data Bars, you see two different categories of data bars
00:54that you can create.
00:55The first one is called Gradient Fill, and the second is called Solid Fill.
00:58I'll show you what a gradient fill data bar looks like. I'll click the Red Data
01:03Bar here on the side.
01:05As you can see, gradient fill data bars start with a solid color at the left side
01:09of the cell, and continue on, fading to the right as they move through the cell,
01:14with a border around the bar to indicate where it begins and ends.
01:18Data Bars were first introduced in Excel 2007, and at that time, the only type
01:23available to you were gradient data bars, so they're included here for
01:27backward compatibility.
01:29In most cases, however, what you want to do is use solid fill data bars.
01:34You want to do that, because there's no falloff in the color, so the length of
01:38the data bar is easier to discern.
01:40So, I'll click Undo to undo the data bars there, and then with the cells still
01:46selected, go Conditional Formatting > Data Bars, and this time, in the Solid Fill
01:52group, I'll click blue.
01:53Doing so applies the data bar conditional formatting, and as you can see, there is
01:58no gradient, and no dropoff. The length of the lines is much easier to tell in
02:02relation to other lines, or other data bars within the PivotTable.
02:07Now, one element that you probably noticed is that the January column is much
02:13wider than the other two columns, February, and March, and the reason for that is
02:17the PivotTable's layout.
02:19I can change the layout so my three January, February, and March columns are
02:23all the same by clicking any cell on the PivotTable, then clicking the Design
02:27contextual tab, and then clicking Report Layout; that button is over here in the Layout group.
02:33At present the PivotTable is shown in compact form. What I want to do is
02:38display it in outline form,
02:40so I'll click the Show in Outline Form item, and when I do, Excel rearranges the PivotTable.
02:47It takes away the Row Labels and Column Labels markers, and instead, I now have
02:53three columns, January, February, and March, that are all the same width.
02:57When you add a data bar conditional format to the body of a PivotTable, make
03:01sure you only select cells that contain individual data units.
03:06In other words, you want to avoid grand totals and subtotals, because those
03:10values will generally be much larger than what is in the body of the
03:13PivotTable, and it could skew the lengths of the data bars by comparing them to
03:17much larger values.
03:18Those are the basics of using data bars in Excel 2013 PivotTables.
03:23They help you see the relative magnitude of data, without getting in the way of
03:25the numbers in the PivotTable.
Collapse this transcript
Formatting cells using color scales
00:00PivotTables let you display and analyze large data collections.
00:04In this movie, I will show you how to use conditional formatting, so that you can
00:08use color to indicate the relative magnitude of values within your PivotTable.
00:12I will use the ColorScales sample file, which you can find in the Chapter05
00:17folder of your Exercise Files archive.
00:20This PivotTable contains monthly sales data for five different departments, and
00:24what I'd like to do is use color to indicate how large values in the PivotTable
00:29are in comparison to other values.
00:32Specifically, the values that I want to work with are in cells B5 through D9.
00:37Those are the individual data elements within the PivotTable.
00:41I'm avoiding the grand totals here in column E, and also in row 10. That means
00:49all the values that are being compared to each other are monthly sales values, as
00:53opposed to summaries, which will usually be much larger.
00:56To create the color scale conditional format, I'll select the cells, and then
01:00on the Home tab of the ribbon in the Styles group, I'll click Conditional Formatting.
01:05From the menu that appears, I'll point to Color Scales, and now I can click the
01:09color scale that I want to use.
01:11The first six color scales are three-color color scales, and the last three are
01:16two-color color scales.
01:17So, let's start out simple, and work with one of the two-color scales, and down at
01:22the bottom, I'll start with green and white.
01:26So, I'll click that from the palette, and click outside of the selection, so that
01:29you can see it without any highlighting.
01:32This two-color color scale displays the largest values with a green background,
01:37or a green fill color for those cells, and you can see the largest value -- 130,415 --
01:43has a dark green background.
01:45By contrast, the cell with the smallest value -- 11,730 -- has a white fill, or white
01:51background, and various cells in between, those two values, show various
01:56saturations of green.
01:58Basically, the darker the green, the larger the value. That's what a two-color
02:01color scale looks like.
02:03If you want to create a three-color color scale, you can do so.
02:06I'll remove this one by clicking the Undo button, and then with the cells
02:10selected again, click Conditional Formatting, point to Color Scales, and now I'll
02:15select a three-color color scale, and I'll click the green, white, and red.
02:21So again, the largest values will be green, but this time middle values will be
02:25white, and low values will be red.
02:28So, I'll click that button, and you can see how the conditional format has been applied.
02:32This time the largest value -- 130,415 -- has a green fill, the smallest value -- 11,730 --
02:41instead of being white as it was before now has a dark red background, and middle
02:46values -- 65,561 -- is one about in the middle of this range is in white.
02:52Values on the lower side of average but not quite at the bottom are tinted in
02:56red and various shades of pink, whereas values that are slightly higher than
03:01average have various tints of green.
03:05And that's how you add a color scale conditional format to your PivotTables.
03:08They are a great way to indicate the relative magnitude of different values
03:12using color, and you can use either two colors, or three color scales; whichever
03:17best suits your purpose.
Collapse this transcript
Formatting cells using icon sets
00:00If you've ever worked with a business dashboard, or a scorecarding application, you
00:05might have seen icons, such as traffic lights in red, yellow, and green, used to
00:09indicate levels of performance.
00:11In this movie, I will show you how to add those indicators to your Excel 2013
00:16PivotTables using icon sets.
00:17I'll use the IconSets sample workbook, which you can find in the Charter05 folder
00:23of your Exercise Files archive.
00:25I have this PivotTable set up, so that it shows summary sales data for five departments;
00:30Balance, Dance, Play, Sport, and Work.
00:33What I would like to do is add an icon to cells B4 through B8 to indicate the
00:41level of performance based on some criteria that I'll define in a moment.
00:45To do that, I select the cells, and then on the Home tab of the ribbon, in the
00:50Styles group, I'll click Conditional Formatting, point to Icon Sets, and then
00:54select the shapes that I want to use.
00:56You have different types of sets that you can use. Some of them have three
01:00items, some of them have four, and some of them have five.
01:05In this case, I'll go with what I consider to be one of the more useful icon
01:09sets, which is the three icon bordered traffic lights.
01:14So, I'll go ahead and click that icon set inside to the palette, and doing so
01:20adds it to the PivotTable.
01:22And you can see, based on the default icon set that Excel created, I only have
01:27two different colors; I have green for three of the cells, and red for the other two.
01:32If I want, I can redefine the criteria that decides which of the three red,
01:37yellow, and green icons to display.
01:40To do that, I'll select the cells, then on the Home tab, click Conditional
01:44Formatting, and click Manage Rules.
01:47Doing so displays the Conditional Formatting Rules Manager, and I can click
01:51the rule that I want to edit; in this case, it's the only one in the dialog
01:55box, and click Edit Rule.
01:57In the Edit Formatting Rule dialog box, you can see the details of the rule that you created.
02:03In this case, you have two separate rules;
02:05the first one tells Excel when it should display a green traffic light.
02:10The rule type is Percent, you can see that here in the Type box, and any value
02:15that is greater than or equal to 67% of the highest value gets a green icon,
02:21anything less than 67% but greater than or equal to 33% of the largest value
02:28gets yellow, and anything below 33% gets red.
02:32Let's say that I want to use an absolute number instead of a percentage.
02:36To do that, I can change the Type from Percent to Number, so I'll click the down
02:42arrow next to the first Type box, and click Number.
02:44When I do, the number in the Value box resets to 0, and in this case, I want to
02:50assign green to any sales value that is greater than 275,000.
02:57So, I'll select the value in the green icon's rule, and type 275000.
03:04Now I can do the same thing for yellow, so I'll click the second criterion's
03:09Type box's down arrow, click Number, and then in the second row's Value box,
03:14I'll type in 100000.
03:16So, now with the rule set up the way it is, any cell that contains a value
03:20greater than 275,000 will get a green icon, any cell with a value below
03:25275,000, but greater than or equal to 100,000 will get yellow, and everything else will get red.
03:31I can apply the rule by clicking OK. That gets me out of the editing dialog box.
03:35Click OK again, and when I do, Excel applies the rule to the PivotTable.
03:40Now I have two cells those over 275,000 that get a green icon, anything between
03:47275,000 and 100,000 gets yellow, and anything below 100,000 gets red.
03:51Icon Sets are a terrific conditional format for summarizing data.
03:56You can use them for PivotTables, but you'll also find that they're extremely
03:59useful for dashboarding and scorecarding worksheets, even outside of PivotTables.
04:04I encourage you to learn as much as you can about them, and to work with
04:08them whenever possible.
Collapse this transcript
Editing a conditional formatting rule
00:00After you create a PivotTable conditional format, you're not stuck with it.
00:05You can change any aspect of it that you want by editing the rule.
00:08In this movie, I will show you how to add as a conditional format that you've
00:13applied to a PivotTable.
00:14As my sample file, I'll use the EditingRules workbook that you can find in the
00:20Chapter05 folder of your Exercise Files archive.
00:23In this workbook, my PivotTable contains a conditional format in cells B4 to B8.
00:30If I want to change the rules that I've applied, I can select the cells,
00:34and then on the Home tab of the ribbon in the Styles group, click the
00:38Conditional Formatting button, and then at the bottom of list that appears,
00:42click Manage Rules.
00:44Doing so applies all the rules that have been applied to the selected cells.
00:48In this case, is there's only one;
00:50that is the Graded Color Scale.
00:53So, I click it highlight it in blue, and then click the Edit Rule button.
00:58Doing so displays the rules in the Edit Formatting Rule dialog box.
01:02Here you can change any aspect of the rule that you want.
01:04For example, you could change the cells to which the rule is applied out of the
01:09Selected Cells, All cells showing "Sum of Sales" values, which would include any
01:15grand totals or subtotals, or just All cells showing "Sum of Sales" values for
01:20"Department", which in this case is exactly the same as the selected cells.
01:25Those would just be the values in the body of the PivotTable; namely, cells B4 through B8.
01:31You can also change the rule Type.
01:33In this case, the type is to Format all cells based on their values.
01:36You could also Format only cells that contain certain types of values.
01:40These are the rule-based formats that I spoke about in another movie.
01:44So, you can find values that are greater than a certain value, less than a
01:48certain value, and so on.
01:50You can also create top and bottom rules, format cells that are above or
01:54below average, and so on.
01:56In this case we'll stay with the format based on value.
01:58Then, in the bottom section, the Edit the Rule Description section, you can
02:03select what type of format you want to apply.
02:06These cells currently have a 3-Color Scale applied.
02:09As you can see, the controls in this section allow me to affect what colors are
02:14applied, and when to apply them.
02:16So, for example, for the lowest value, we can have red.
02:20For the midpoint, in other words, its 50th percentile, would apply yellow, and a
02:24maximum, which is a highest value, would be green.
02:27Just this is an example of how I can change it, I'll change the maximum color
02:32from green to a medium blue, and I'll click OK, just to show you what it looks
02:37like in the body of the PivotTable.
02:39Click OK there, click OK to close the Rules Manager, and that's how it would
02:44look if I applied that particular 3-Color Scale to this PivotTable.
02:48Now I'll click Undo to undo my change, and then, with the cells still selected,
02:54click Conditional Formatting, and Manage Rules, Graded Color Scale, and Edit.
02:59I can also change the type of format that's supplied.
03:02To do that, I'll click the Format Styles button's down arrow, and you see that I
03:07can select a 2-Color Scale, 3-Color Scale, Data Bar, or Icon Sets.
03:12In this case, I'll switch to 2-Color Scale, and the scale takes the lowest and
03:18highest value colors.
03:19So, in this case, red and green. And let's say that I want to change it from
03:23yellow, and go up to green.
03:25To do that, I'll click the Color field's down arrow on the left side for the
03:29minimum value, and click the yellow swatch here in the Standard Colors area of
03:33the pane that appears, and click OK, and click OK again to apply the change.
03:39That's how the change of the conditional format would look in this PivotTable.
03:43Editing a conditional format is very much like creating a new
03:46conditional format.
03:47All you need to do is select the rule that you want change, apply the settings
03:51that you want, click OK twice, and you're done.
Collapse this transcript
Controlling how multiple rules are applied
00:00Applying a conditional format to your PivotTable lets you emphasize certain
00:04aspects of your data using visual elements.
00:07If you want to format your PivotTable with multiple conditional formats, you
00:10can, and you can control how and when they're applied.
00:14In this movie, I will show you techniques to manage how and when you're
00:17conditional formats are applied. I will use the Multiple sample file, which you
00:22can find in the Chapter05 folder of your Exercise Files archive.
00:26The first thing you need to do is select the cells that contain the formats
00:31you want to work with.
00:32So, I'll select cells B4 through B8, and then on the Home tab of the ribbon, click
00:38the Conditional Formatting button, and click Manage Rules.
00:42Doing so opens the Conditional Formatting Rules Manager dialog box.
00:46The first rule is the Color Scale that goes from white to yellow;
00:50lowest value to highest value, and the second rule is one that displays any cells
00:55value below 175,000 in red text.
00:59As you can see from cells B5, and B6, both rules are applied.
01:05If you're upgrading from Excel 2003 or an earlier version, then you've
01:09worked with a system that only allowed one conditional format to be applied at the time.
01:13Starting with 2007, and moving up to Excel 2013, you can have multiple conditional
01:18formats applied to specific cells.
01:21Now, let's say that I want to change the order in which these rules are applied.
01:26To do that, I can click the rule that I want to move up or down.
01:30In this case, I'll move the Cell Value less than 175,000 rule.
01:35So, I'll click it, and then along the button bar here, or the toolbar inside the
01:40Conditional Formatting Rules Manager dialog box,
01:43I can click Move Up, or Move Down.
01:47In this case, the Move Down button is grayed out, because there's no rule below
01:50the Cell Value less than 175,000 rule.
01:54But with that rules selected like that, I can click the Move Up button, and doing so
01:58moves it up in the order,
01:59so Excel will apply that rule first.
02:02When I click OK, you can see that there's no change.
02:05That's because the rules aren't in conflict.
02:07Excel applies the color scale to all of the cells that were selected, and it also
02:12applies red formatting to cells B5 and B6.
02:15Now, if I select all the cells again, and reopen the Conditional Formatting
02:20Rules Manager, I can choose to have Excel stop looking to see if conditional
02:25formats apply by checking the rules Stop If True checkbox, which is over here on the right.
02:31So, I'll do that for the first row, which is the red text formatting rule.
02:35So, what will happen now is that Excel will check to see if the cell value
02:40is less than 175,000.
02:42If it is, it will format that cells text in red, and then it will stop.
02:47So, if I did this correctly, it will not apply the Graded Color Scale from white
02:52to yellow to cells B5 and B6.
02:54I'll go ahead and click OK, and click to the side,
02:57and you can see that cells B5 and B6 do not contain any yellow at all.
03:04Before, there was almost none in B5, and a little bit in B6, and this time there
03:09is absolutely none.
03:11That's how use the tools in the Conditional Formatting Rules Manager dialog box
03:15to affect how and when individual rules are applied your PivotTable.
Collapse this transcript
Deleting a conditional formatting rule
00:00Conditional formats help make your PivotTable data easier to understand,
00:04but there will probably be times when you want to delete one or more
00:07conditional formats.
00:09In this movie, I will show you how to do that.
00:11I will use the Delete sample file, which you can find in the Chapter05 folder of
00:16your Exercise Files archive.
00:18This PivotTable contains two conditional formats, which you can see by selecting
00:22the cells in the body of the PivotTable,
00:25those are cells B4 through B8, and then on the Home tab of the ribbon, in the
00:30Conditional Formatting group, clicking Manage Rules.
00:34Doing so displays the Conditional Formatting Rules Manager dialog box, and you
00:38can see the two rules: a color scale, and also conditional format that displays
00:44in red any the cell value that's less than 175,000.
00:48If you want to delete a rule, all you need to do is select it, like I'll do here
00:53by clicking the less than 175,000 rule, and then on the toolbar in the dialog
01:00box, click the Delete Rule button.
01:02When you do, Excel removes the rule, and then you can either keep the change by
01:06clicking OK, close the dialog box without deleting the rule by clicking Cancel,
01:12or click Apply to leave the dialog box open, and delete the rule.
01:16In this case, we don't have anything else to do in the dialog box,
01:19so I'll go ahead and click OK.
01:20When I do Excel, removes the rule.
01:23Now let's say that you want to remove every conditional format applied to
01:27the current PivotTable.
01:28To do that, click any cell in the PivotTable, and then on the Home tab of the
01:33ribbon, click the Conditional Formatting button, and then point to Clear Rules.
01:38It's the next to last item.
01:39Then in the flyout list that appears, click Clear Rules from this PivotTable.
01:45So, clicking this item, Clear Rules form this PivotTable, would remove every rule
01:49that was applied; not just one.
01:52So, I will go ahead and click it, and you can see that Excel removed the remaining
01:56conditional format from the PivotTable.
01:58So, just to recap, if you want to remove a single conditional format for a
02:02PivotTable, select the cells in the PivotTable, and then use the Conditional
02:06Formatting Rules Manager dialog box to select the rule you want to delete, or if
02:11you want remove every conditional formatting rule form a PivotTable, go to the
02:15Home tab, click Conditional Formatting, point to Clear Rules, and then select
02:19all rules from this PivotTable.
Collapse this transcript
6. Creating and Manipulating PivotCharts
Creating a PivotChart
00:00So far in this course, I have covered PivotTables, which arrange numerical data
00:05inside of a flexible analytical tool,
00:08but you can also create PivotCharts, which, as the name implies, are dynamic
00:12charts that you can use to summarize your data visually.
00:15In this movie, I'll show you how to create a PivotChart to summarize your data visually.
00:20I'll use the CreatePivot sample file, which you can find in the Chapter06 folder
00:25of your Exercise Files archive.
00:27To create a PivotChart, your data should be laid out in a list, or ideally, in an
00:32Excel table, exactly as you would do for a PivotTable.
00:37You can see that the data here is laid out in an Excel table.
00:40I have columns with labels, and then also rows of data.
00:45If I scroll down using my mouse's scroll wheel, you can see that there are no blank rows.
00:50That means all of the data in this Excel table will be included in the
00:54PivotChart when I create it.
00:56To create the PivotChart, just click any cell in the body of your data source, and
01:01then on the Insert tab, click the PivotChart button.
01:05Doing so displays the Create PivotChart dialog box.
01:09You can make sure that Excel has identified the proper range.
01:13In this case, it's Table2, which is the name of the table that I have here on the
01:17left, and I want to create it on a new worksheet,
01:20so I will leave the New Worksheet button selected.
01:23With all that in place, I can click OK, and Excel creates a new worksheet with a
01:28PivotTable, and an associated PivotChart.
01:31Now I can us the techniques that I used before for a PivotTable to add fields to the PivotChart.
01:36To do that, I'll use the controls in the PivotChart Fields pane, which you see on
01:41the right side of the screen.
01:43I have three fields: Department, Quarter, and Sales.
01:46I will add Department to the Legend or Series area; that corresponds to the columns.
01:52I'll add Quarter to the Axis or Categories area; that corresponds to the rows.
01:59Then I'll add Sales to the Values area.
02:02Doing so adds the Sales data to the body of the PivotChart, and you could see
02:06that the chart, by default, is a bar chart, and each of the five departments,
02:11because they're in the Legend (Series), is identified by a vertical bar or column
02:16within each quarter.
02:18So, we have quarters 1, 2, 3, and 4, and then the Departments are identified
02:22here in Legend by color.
02:24That's how you create a PivotChart.
02:26It's a very similar process to creating a PivotTable.
02:29You just make sure that you click the PivotChart button, as opposed to
02:32the PivotTable button.
Collapse this transcript
Pivoting a PivotChart
00:01PivotCharts, like a PivotTables, let you dynamically rearrange your data.
00:05In this movie, I will show you how to pivot a PivotChart, so that you can change
00:09how the chart summarizes your data.
00:12I will use the Pivoting sample workbook, which you can find in the Chapter06
00:16folder of your Exercise Files archive.
00:19When you're first open the file, you'll probably see that cell A1 in the
00:24PivotTable is selected.
00:26That means that instead of seeing the PivotChart controls, you'll see the
00:30PivotTable Fields pane over on the right side of the program window.
00:34If you pivot the PivotTable that supplies the values for PivotChart, then the
00:40PivotChart changes as well.
00:41For example, if you drag the Quarter field from the Columns area to the Rows
00:46below Department, then the PivotChart changes. I'll press Ctrl+Z to undo the change.
00:53In this case, because I'm focusing on PivotCharts, I'll click the PivotChart, so
00:58that I get the PivotChart tools contextual tabs on the ribbon, and also the
01:02PivotChart Fields pane on the right side of the program window.
01:07Let's say that I want to rearrange the PivotChart, so that it displays Department
01:12as the Series; in other words, where the Quarters currently are, and to with the
01:17Quarters along the horizontal Axis.
01:19To do that, all need to do is drag the Quarter field to the Axis area, and drag
01:25the Department field to the Legend or Series area.
01:30Doing so displays the departments as bars within each of the four quarters.
01:34Of course, I can remove a field.
01:36For example, if all I cared about was total sales by quarter, then I could remove
01:41the Department field by dragging it from the Legend area, up to the PivotChart
01:49Fields area, and Excel rearranges the PivotChart, so that it only displays sales
01:56data in total for each of the quarters.
01:59If I want to put the Department field back in the Legend area, all I need to
02:04do is drag it down, and Excel re-creates the PivotChart, based on the new arrangement.
02:09Pivoting a PivotChart lets you rearrange your data visually, and it can make for
02:13some very striking comparisons.
02:15As with every aspect of PivotTables and PivotCharts, take the time to experiment
02:20for the look that explains you data as best it can.
Collapse this transcript
Filtering a PivotChart
00:00PivotCharts let you summarize large data collections visually.
00:03That's great, because it gives you a way to look at the numbers, without focusing
00:08on individual values.
00:09But the problem is that your charts can be very busy.
00:12That means that there will be times when you want to filter or limit the
00:16values that appear inside of a PivotChart, and in this movie, I will show you how to do that.
00:21As my sample file I'll use the Filtering workbook, which you can find in
00:25Chapter06 folder of your Exercise Files archive.
00:27So, this PivotChart, which I'll click, summarizes quarterly sales data for five
00:33different departments.
00:34Lets say that I only want to display values for the Balance and Dance
00:39departments for quarters 2 and 3.
00:41If I want to filter PivotChart, I have two different options.
00:45The first is that if I have the PivotChart Fields pane displayed at the
00:49right side of the program window, I can move the mouse pointer over one of the headers;
00:55in this case, the Department field.
00:57Click the downward pointing black arrow, and then use the filter interface to
01:01limit the values that appear.
01:03So, let's say that I want to display the Balance and Dance fields.
01:08To do that, I'll clear the Select All checkbox; that removes the checks from all
01:14five of the fields, and then I'll check the boxes next to Balance, and Dance. Then click OK.
01:20Doing so filters the values in the charts,
01:22so I only see sales for all quarters for those two departments.
01:27You can also see that a filter indicator appears here next to the name of the
01:32Department field in the PivotChart Fields task pane.
01:36The other way that you can filter values inside of a PivotChart is by using the
01:40controls on the PivotChart itself.
01:42So, for example, if you're PivotChart takes up your entire screen, and
01:46you've had to hide the PivotChart Fields pane, then you can filter using this technique.
01:51All you need to do is click the control on the PivotChart with the label of the
01:55field you want to filter.
01:56In this case, it's Quarter.
01:58So, click it, and I got exactly the same filter interface that I did in the
02:02PivotChart Fields pane.
02:03I want to display the values for quarters 2 and 3,
02:07so as before, I'll clear Select All, check the box next to quarter 2, the box
02:12next to quarter 3, and click OK.
02:14Now I have filters applied to both the Department and Quarter fields.
02:18All of the data is still there; it's just I have limited what's displayed.
02:21If I want to remove the filter, I can click the control that I used to create it.
02:25In this case, I'll remove the filter from the Quarter field.
02:28To do that, just click the control, and then click Clear Filter from Quarter, or
02:33whatever the field is.
02:34I can also remove the filter from Department,
02:37so I click the Department control, and click Clear Filter from Department.
02:41When I do, Excel restores the PivotTable, displaying all of this data, and
02:45removing both filters.
Collapse this transcript
Formatting a PivotChart
00:00PivotCharts let you summarize your data visually,
00:03so that means that color and layout are extremely important.
00:06In this movie, I will show you how to change the formatting of your PivotChart
00:11elements, so that you can best communicate your data.
00:14I will use the Formatting sample file, which you can find in the Chapter06 folder
00:19of your Exercise Files archive.
00:21The first thing you need to do is click your PivotChart if it isn't already selected.
00:25Doing so in Excel 2013 displays two new items, and those are action buttons here
00:32at the top right corner of the PivotChart.
00:34The first one is the Chart Elements button, which I'll cover in another movie, and
00:38the second is the Chart Styles button.
00:41That's the one we will work with here.
00:43Clicking the Chart Styles button displays a pane with two different tabs.
00:48The first one is Style.
00:49The second is Color.
00:50On the Style tab, you can see that there are different styles that you can
00:55apply to your PivotTable.
00:56For example, you can scroll down through the list, or the gallery, and see if
01:00there is a style you'd like to apply to your PivotChart.
01:03Just for contrast, I'll click the Sstyle that has a black background.
01:07So, I will click that.
01:09Doing so it applies that new style to the PivotChart.
01:11If I want, I can also select a different color scheme.
01:15To do that, I'll click Color, and I can select any one of these palettes.
01:19So, I have Colorful, I have Monochromatic, and so on.
01:23If I want to see what it would look like to apply one of those new color schemes,
01:27all I have to do is hover the mouse pointer over one of them, and if I were to go
01:32down here, I would have Color 3, and hover down here Color 4.
01:35I can also go down to the Monochromatic area, and I can see what it would look
01:40like with various shades of gray, various shades of yellowish orange, blue, and so on.
01:46In this case, I won't apply any of the new color schemes, and that means that I
01:50can click the Chart Styles button to close the panes.
01:53You can also format individual chart elements.
01:56To do that, click any element, say, for example, the legend area, and then on the
02:03PivotChart Tools contextual tabs, click Format.
02:05Now you can use the tools here to change the formatting of that
02:09particular element.
02:10So, let's say, for example, that I want to apply a different fill to the legend.
02:15To do that, with the Legend selected, and I am on the Format tab, I click Shape
02:19Fill, and in this case, I'll give it a slightly different color of gray, just to
02:25make sure it stands out.
02:26If you want to select a chart element, but you're not sure what it is, or what
02:30you need todo to click it, then you can click the Format tab, and then in the Current
02:35Selection group, click the Chart Elements list box's down arrow.
02:39Doing so displays a list of all the items that you can select.
02:43For example, if you want to change the formatting only of series 1, you can click that.
02:49Doing so causes Excel to select all of the items in series 1, which is quarter 1
02:56for the Balance, Dance, Play, Sports, and Work departments.
03:02Now you can use the tools on the Format contextual tab to change the formatting
03:06for this data series.
03:07So, for example, if you wanted to select a different color of blue, or different
03:11shade of blue, you could click the Shape Fill button, and then select a slightly
03:16different color of blue.
03:18Like I said, you can do that for any element in your PivotChart.
03:22Formatting PivotCharts is very much like formatting regular chart.
03:25You can format the entire chart at once using the Chart Styles control, or you
03:30can select an individual chart element, and you can use the controls on the Format
03:34contextual tab of the ribbon to make any changes you want.
Collapse this transcript
Changing a PivotChart's layout
00:00When you create a PivotChart in Excel 2013, Excel creates a column chart, and
00:05also applies a standard layout.
00:08In this movie, I will show you how to change that chart's layout, both for the
00:12entire chart as a whole, and also for individual elements.
00:16I'll use the Layout sample file, which you can find in the Chapter06 folder of
00:21your Exercise Files archive.
00:23This workbook contains a PivotChart, which I'll click now to activate, and also
00:28an associated in PivotTable.
00:30This chart has a particular layout, meaning that it has a legend over here on
00:35the right, and it also has labels on the horizontal and vertical axes.
00:40If you want, you can change the overall layout for the PivotChart by clicking the
00:44chart, and then clicking the Design contextual tab on the ribbon.
00:48Then over in the Chart Layouts area, clicking the Quick Layout button.
00:54Doing so displays a list of predefined layouts that you can use for this style of chart.
00:59Any time that you hover your mouse pointer over one of the layouts, it displays
01:04a live preview for what it would look like if you were to apply that particular
01:09layout to your chart.
01:11I particularly like Layout number 7.
01:13It has the minor axes within the background, and it also displays axis titles
01:18that you can modify.
01:20So, I'll go ahead and click Layout 7 in the dropdown menu that appears.
01:25Doing so it closes the menu, and applies that layout to the chart.
01:29Now I can edit various chart elements.
01:31For example, if I want to edit the Axis Title, all I have to do is click it,
01:37and then select it.
01:38I'm working here in the horizontal axis.
01:41These are departments,
01:42so I'll just go ahead and type in Department, and click outside of the Axis Title box.
01:51I can do the same thing for the vertical axis.
01:53So, I'll just click the box here, and select the text within it, and those are sales,
01:59ao I'll just type in Sales, and click outside of the Axis Title box to release
02:05the selection, and to finalize my change.
02:07I can also display or hide various chart elements.
02:11To do that, with the PivotChart selected, I point to the Chart Elements button,
02:17which is new in Excel 2013, and click it to display a list of chart elements
02:22that are available for me.
02:23Any element that has a check in the box next to its name is displayed.
02:28Any that is blank is not displayed.
02:30So, let's say, for example, that I wanted to display a chart title.
02:34For that, I can check the Chart Title box, and then click the right pointing arrow
02:40that appears next to its name.
02:42I can select where I want to chart title to appear; above the chart, centered on
02:46the overlay, or open the associated task pane by clicking more options.
02:51In this case, I'll stay with having the chart title above the chart title above the chart,
02:56so I'll just click it, and then click the Chart Elements button again to release
03:00the selection to hide the elements list.
03:02Now I can edit the chart title the same way that I edit the axis title, and for
03:06this, I'll just call it Departmental Sales, and click outside to stop editing.
03:11Changing a PivotChart's layout lets you optimize the chart to display and
03:15summarize the data within it.
03:17In most cases, the default layout will be fine, and you can always add any
03:21individual elements that you want using the chart elements tool at the top right
03:25corner of the PivotChart itself.
Collapse this transcript
Changing a PivotChart's chart type
00:00When you create a PivotChart in Excel 2013, Excel creates a column chart
00:04like the one shown here.
00:06In this movie, I will show you how to change the type of a PivotChart in
00:10your Excel workbook.
00:11I'll use the ChartType sample file, which you can find in the Chapter06 folder of
00:17your Exercise Files archive.
00:19This PivotChart summarizes data based on quarterly sales for five
00:23different departments.
00:24A column chart summarizes this data perfectly well, but it's time series data.
00:28In other words, it does quarter by quarter along the horizontal axis,
00:33so a line chart, which works well for time series data ,could also be used.
00:38Let's say that I do want to change the PivotChart's type from a column chart to line chart.
00:43To do that, I click any part of the PivotChart, and then on the Design contextual
00:48tab, in the Type group, click the Change ChartType button.
00:53Doing so displays the Change Chart Type dialog box.
00:58Now I can select the type of chart that I want to use.
01:01In this case, I will make it a Line chart, and I can select the chart subtype.
01:05For example, I can have a centered line chart, I can have a stacked line chart,
01:09which shows how the data adds up to a total, and
01:13I can also add markers to any one of the other types.
01:16Let's say that I want to create a line chart with markers.
01:20I'll click that in the subtype list at top, and I see my preview here.
01:25If I hover the mouse pointer over the preview, I see that in a larger size.
01:29Everything looks good,
01:30so I'll go ahead and click OK.
01:33Doing so displays my data in a line chart.
01:37Just like in the column chart, each one of these colors here in the legend refers
01:40to a different line, in this case, within the chart.
01:43So, I can see that the Balance department, which has the blue circles, goes along this line.
01:49Dance, which is dark orange here, Sport, is yellow here, and so on.
01:55If your line chart's a little bit too busy, you can filter it.
01:58For example, if I want to filter down to just show the Play department, I can
02:02click the Department control's down arrow, clear Select All, click Play, click
02:07OK, and my data is displayed within the body of the PivotChart.
02:10If I want to remove the filter, I can add a press Ctrl+Z, or click the Department
02:15Control, and click Clear Filter from Department.
02:18That's how you change the chart type of a PivotChart in Excel 2013.
02:22It's very easy to do,
02:24so feel free to switch among various chart types to see which one works best
02:27for your data.
Collapse this transcript
Adding a trendline to a PivotChart
00:00When you summarize time series data in the PivotChart, you might want to add a
00:04trend line to see what your data would look like in the future if current trends continue.
00:08In this movie, I will show you how to add a trend line to your PivotChart, so
00:12that you can make that type of forecast.
00:14I'll use the Trendline sample file, which you can find in the Chapter06 folder of
00:18your Exercise Files archive.
00:20This PivotChart summarizes quarterly sales data for a number of departments in
00:24the company, but I have filtered the PivotChart, so that it only displays data
00:28for one department; in this case, the Sports department, just to simplify the
00:32chart that we will create.
00:34To add a Trendline to the PivotChart, first you click the PivotChart, and then
00:38click the Chart Elements button.
00:40Doing so displays the Chart Elements list, and you can go down to the Trendline
00:45item, and check this box to display the Trendline in the body of the PivotChart.
00:50This Trendline shows what sales would have looked like, if they continued
00:53according to the average.
00:55So, in other words, sales would have increased, but you wouldn't have the
00:58fluctuations between the quarters.
01:00If you want to hide a Trendline, then just clear the check box.
01:03Now let's say that you want to forecast into the future.
01:06To do that, again, click Chart Elements to show the list, go in the TrendLine, and
01:11then click the arrow that appears to the side of it.
01:14Then in the flyout list that appears, click More options.
01:18Doing so displays the Format Trendline dialog box, and you can see it adds a
01:22Trendline to the body of the PivotChart.
01:25The first thing we need to do is to set the Trendline Options, and that means
01:29choosing the data type.
01:31Unless you're working with scientific data, and you know that your data follows
01:35one of the other distributions, such as exponential, or power distribution, you
01:39should leave linear selected.
01:41It's by far the most common, and pretty much all business data will follow a
01:45linear distribution.
01:47Then you can add forecast elements to the Trendline.
01:51To do that, scroll down, and in the Forecast group, you can select how many periods
01:56you want to look forward.
01:57Remember that in this PivotChart, each period is a quarter,
02:00so let's forecast two quarters into the future.
02:03To do that, you edit the value in the Forward box from 0.0 to 2, and press Enter.
02:11You can see the change in the PivotChart on the left side of the screen.
02:15Now you can change the Trendline's formatting.
02:17To do that, move up and click the Fill and Line icon just below Trendline Options.
02:23Now you can make all sorts of changes to the Trendline that you've added.
02:27In this case, I'll just change the color.
02:29So, I'll click the Color control, and I'll change it to a bright red.
02:34You can see that change in the body of the PivotChart, and when I click the
02:37Format Trendline pane's close button, you can see the entire Trendline
02:42extending out two quarters, and showing what sales would look like if current
02:45trends were to continue.
02:46Like most forecasting tools, Trendlines are best to give you a rough idea of
02:51what your data might look like if current trends continue.
02:54There are no guarantees, of course, but it's one way to look at your data, and it
02:58might give you some useful insights.
Collapse this transcript
7. Printing PivotTables
Printing a PivotTable
00:00PivotTables let you reorganize your data dynamically,
00:03so they are most useful when you're displaying the data inside of a workbook, and
00:08changing it around to emphasize certain points.
00:11That said, if you find a particular arrangement that you like, you can print it
00:15out, so that you have that arrangement with you, even if you don't have the file.
00:19In this movie, I will show you how to print a PivotTable, both using the
00:23standard printing method, and also to define a print area, so all you print is the PivotTable.
00:29I'll use the PrintPivot sample file, which you can find in the Chapter07 folder
00:34of your Exercise Files archive.
00:36Printing a PivotTable, especially if it's the only thing on the worksheet, is a very
00:40straightforward process.
00:41All you need to do is press Ctrl+P to display the print page of the backstage view.
00:48You can see the preview on the right side of the screen over here.
00:52You can change your various settings, the printer you want to use, the number of
00:56sheets, and so on, the number of copies, and then click the Print button.
01:00But let's say that there is something else on the worksheet, and all you want
01:04to print it is the PivotTable itself.
01:05I'll show you how to do that now.
01:07To go back to the worksheet, I'll click the Go Back button at the top corner
01:12of the backstage view, and now I'll just add some text below the PivotTable in
01:16cell B10, and say updated 31, 2013, and press Tab.
01:22Now if I were to press Ctrl+P, Excel would also try to print that note in cell B10.
01:28If all I want to do is print the PivotTable, I can define a print area.
01:32To do that, I'll click any cell in the body of the PivotTable to activate it, and
01:37now to select the entire PivotTable -- remember, there is a cell in the body of the
01:42PivotTable currently selected --
01:43I'll go up to the Analyze contextual tab, and then in the Actions group, click
01:48Select, and click select Entire PivotTable.
01:52Now I can go up to the Page Layout tab of the ribbon, click the Print Area
01:56button, and click Set Print Area,
01:59and when I click away from this selection, Excel has identified a print area
02:04that consists of only the PivotTable
02:07The marking doesn't stand out very much, because the PivotTable has its own
02:10border, but you'll see it in the moment when I go to the backstage view again.
02:13I'll do that by pressing Ctrl+P, and you can see that, once again, Excel has
02:19identified only the PivotTable as the item to be printed.
02:23If I click Go Back, and click Print Area, and then click Clear Print Area,
02:28undoing what I did before,
02:30now when I press Ctrl+P, you can see the Excel will print the text that was
02:35underneath the PivotTable, even though I didn't intend to print it, in this case.
02:39That's the basics of printing a PivotTable.
02:41If it's the only thing on the worksheet, you can print the worksheet.
02:44If there are other worksheet elements you don't want to print, just select the
02:47entire PivotTable, set a print area based on that selection, and you're good
02:52to go.
Collapse this transcript
Printing headers at the top of each printed page
00:00PivotTables let you analyze and summarize large data collections.
00:04That's great, it's makes your job much easier, but it also means that if you
00:08print a PivotTable, you might need to use more than one page.
00:11In this movie, I will show you how to repeat headers at the top and left of a
00:15PivotTable, so that your printout is easier to understand.
00:18I will use the PrintHeaders sample file, which you can find in the Chapter07
00:23folder of your Exercise Files archive.
00:26This PivotTable is fairly large, and I would have to print it on more than one page.
00:30To show you what that looks like, I'll press Ctrl+P to go to the print page of
00:36the backstage view, and you can see that I have my first page here, and if I use
00:41my control at the bottom, I can go to the next page, which is Page 2, and you can
00:46see that the data continues, but I don't have any headers.
00:49So, if I didn't have the department order memorized, I wouldn't know that the
00:53first column was Balance, the second was Dance, and so on. I'll click the Previous
00:57Page button to go back.
00:59What I'd like to do is to repeat the header row here -- Balance, Dance, Play,
01:04Sport, and Work -- on the second page as well.
01:07To do that, I'll click the Go Back button, go back to the workbook, and then on the Page
01:12Layout tab, I'll click the Print Titles button.
01:16Doing so displays the Sheet tab of the Page Setup dialog box.
01:20What I want to do is identify rows to repeat at the top of each page, and in
01:26those cases, as you can see in the background, those would be rows 3, and 4.
01:30To do that, I'll click in the Rows to repeat at top box, and then click the
01:35collapse dialog button here on the right side of that box, and then I'll select
01:40the rows 3 and 4 by clicking their row headers, and dragging down, and you can see
01:45that I have $3:$4 in the Page Setup box, and I'll click the expand the dialog control,
01:53and you can see that rows 3 and 4 appear in the Rows to repeat at top box.
01:58In this case, I don't have any columns that I need to repeat, so I can just
02:02go ahead and click OK.
02:04There's no obvious change in the body of the worksheet, but if I press Ctrl+P to
02:08go back to the Print page or the backstage view, you can see that page 1 looks
02:13as it did before, but now when I use the next page control to go forward, you
02:17can see that my print titles have been repeated on the second page.
02:21That means that my PivotTable data will be much easier to understand when I print it out.
02:26I don't have to remember the order of the columns, because the labels are right there.
02:30Repeating titles at the top or the left of any printed page makes your data much
02:35easier to understand.
02:37If you need to print your PivotTable on more than one page, I highly recommend
02:40you add titles to make PivotTable easier to read.
Collapse this transcript
Printing each item on its own page
00:00Most of the data that you summarize in a PivotTable can be divided into easy categories.
00:06For example, it can be months, it can be weeks within a month, or it can be departments.
00:10In this movie, I'll show you how to print individual items or categories on their own page.
00:16I will use the PrintEachItem sample file, which you can find in the Chapter07
00:21folder of your Exercise Files archive.
00:24This PivotTable contains weekly sales data for a number of months for five
00:29different departments.
00:30What I'd like to do is print each month's data on a separate page.
00:34So, in other words, on the first printed page, I want January, second printed
00:38page, February, and so on.
00:40Let's take a look at what the worksheet would look like if I were to print it
00:44out as it is right now.
00:46To go the Print page, or the backstage view, I'll press Ctrl+P, and you can
00:50see the first page here, and when I click the next page control, you can see the second page.
00:56I should note that I used the technique that I thought in the previous movie,
01:00which was adding print titles, so that the labels here -- Balance, Dance, Play,
01:05Sport, and Work -- appear at the top of each page.
01:08So, if you're not sure how to do that, I recommend you watch the preceding
01:11movie in this chapter.
01:13Now to go back to the task at hand, which is to print each month on a separate
01:17page, I'll click the Go Back button, and now I'll right-click any one of the
01:22values that I want to print on a separate page.
01:25For example, I want to print by month; in this case, have each month's weeks on
01:29its own printed page, so I'll right-click the January value, which is a month, and
01:34then from the shortcut menu that appears, click Field Settings.
01:38In the Field Settings dialog box , there is the Layout & Print tab, which I'll
01:43click, and at the bottom of this tab, you can see that there is an insert page
01:49break after each item checkbox, which I will select, and click OK.
01:53You can probably see that there is a slightly thicker line underneath week 5 for
01:59January, slightly darker line underneath week 4 for February, and so on.
02:04And when I press Ctrl+P to go to the backstage view, you can see that my first
02:08printed page displays the weeks for January. Click the next page control, which
02:13will take me to pages 1 through 6.
02:15Next page is February, March, April, May, and June, and at the bottom of page 6 is
02:22the grand total for all sales.
02:25Using the Field Settings dialog box is a terrific way to separate out your data.
02:29You can print one element at a time, so you can focus on exactly the data
02:33you want to work with.
Collapse this transcript
Printing a PivotChart
00:00PivotCharts summarize your data visually, and once you find an arrangement that
00:04you think communicates your meaning clearly, you can feel free to print it out,
00:08perhaps for use in an annual report, or just to show if you don't have the file
00:12with you when you're on the road.
00:14In this movie, I will show you how to print the PivotChart by itself, without
00:18anything coming in from the surrounding worksheet.
00:20I will use the PrintChart sample file, which you can find in Chapter07 folder of
00:25your Exercise Files archive.
00:27Printing a PivotChart is a very straightforward process.
00:30All you need to do is click the chart, and then press Ctrl+P to go to the Print
00:36page of the backstage view.
00:38When you go to the Print page of the backstage view, you will see that the chart
00:42is by itself in Print Preview.
00:44That's because over in the Settings area, you can see the Print Selected
00:47Chart is highlighted.
00:50That means, as I said here, that Excel will only print the selected chart.
00:54And in fact, if you click this particular settings item, you can see that you
00:59can only print the selected chart.
01:01You can't print the entire workbook, and you can't print the selection; you are
01:05only able to print the selected chart.
01:07And when you're ready to do that, all you need to do is click the Print button,
01:11and you'll get your print out on your selected printer.
Collapse this transcript
8. Manipulating PivotTables Using Macros
Recording and reviewing an Excel macro
00:00When you find a PivotTable configuration you like, you should find a way to reconstruct it.
00:05There are a number of ways to do that. The most straightforward is to write down
00:09the field order that you can see in the PivotTable Fields pane,
00:12but you can also record the actions of creating that configuration using a macro,
00:18and I'll show you how to do that in this movie.
00:20I'll use the RecordMacro sample file, which you can find in the Chapter08 folder
00:25of your Exercise Files archive.
00:28So, let's say that I want to record this position.
00:32I have the Department field in the Columns area, Month in the Rows area, and the
00:37sales column in the Values area. So, Department, Columns; Months, Rows; Values, Sales.
00:44To record a macro in Excel 2013, click the View tab, and then click the Macros
00:51button's down arrow, and click Record Macro.
00:54Doing so displays the Record Macro dialog box.
00:58You can then type in a name for your macro;
00:59I'll call it MonthRows, and then D-e-p-t for department, C-o-l-s.
01:06So, what I've done is I've created a position called Month Rows Department
01:10Columns, and because there is only one data field, I'll just assume that sales
01:14would go in the values area.
01:15I am ready to begin recording my macro, so I'll click OK.
01:19From now on, everything that I do will be recorded as steps in Visual Basic for Applications.
01:25The first thing I need to do with the PivotTable selected is to click the
01:30Analyze contextual tab, click Clear, and then click Clear All.
01:35Doing so clears everything from inside the PivotTable, and I can now reconstruct
01:40it from the ground up.
01:41My configuration was the Month field in the Rows areas, the Department field in
01:47the Columns area, and Sales in the Values area.
01:50I've created the configuration I want, so I can stop recording the macro.
01:54To do that, I'll click the View tab, click the Macros button's down arrow, and
01:58click Stop Recording.
02:00Now that I've recorded the macro, I can take a look at it.
02:03To do that, I click the Macros button, and I see my macro's name; it's highlighted
02:09here in blue, and I can click Edit.
02:11PivotTable macros are complicated, and that's to be understood; a PivotTable is
02:15a complicated object, so to create a specific configuration, especially if you go
02:21beyond simply arranging fields, takes a lot of steps.
02:24What I recommend doing is reading over the macro.
02:26For example, remember that I put Month in the Rows area, and it's in the first
02:31position, and then I put the Department column in the Column field area, and it's
02:38also in the first position.
02:39What's more, the PivotTable is summarizing using the sum operation data from the
02:45sales column of the source table.
02:48Now that I'm done examining my macro, I can press Alt+F11 to return to the
02:52main Excel workbook.
02:53Recording a macro that recreates a PivotTable position is a terrific way to recall
02:59a particularly informative or useful configuration quickly.
03:02Always remember, though, that the first step after you start recording should
03:06be to clear everything from the existing PivotTable, so you can build it from
03:09the ground up.
Collapse this transcript
Running an Excel macro
00:00After you record a macro that reproduces a PivotTable position, you can run that
00:05macro, and in this movie, I will show you several different ways of doing that.
00:09I'll use of the RunMacro sample file, which you can find in the Chapter 08
00:13folder of your Exercise Files archive.
00:16Once again, my goal is to run a macro that I've previously recorded, so that I
00:20can re-create the PivotTable positions that I want.
00:24The first way to run a macro is to do so from the Macros dialog box.
00:28So, I'll click the View tab, and then in the Macros group, click the Macros
00:33button, and then all I need to do is click the Macro I want to run, so it's
00:38highlighted in blue, and then click Run.
00:40Doing so runs the macro, which re-creates the PivotTable positions that I want.
00:44Now I will drag the PivotTable Fields out, so I am back to my
00:49original configuration.
00:50Opening the Macro dialog box, and running a macro from within it is perfectly
00:54fine, but it takes a fair number of steps.
00:57If you anticipate running the macro multiple times, you can add a button to the
01:01quick access toolbar that you can click to run it.
01:04I'll show you how to do that now.
01:06First thing you need to do is hover your mouse pointer over the button at the
01:10right edge of the quick access toolbar -- the name of a button is Customize
01:14Quick Access Toolbar --
01:16and from list that appears, click More Commands.
01:18Doing so displays the Quick Access Toolbar page of the Excel Options dialog box.
01:23Now you need to display the macros that are available in your workbook.
01:27To do that click the Choose commands from box's down arrow, and then click Macros.
01:33Doing so lists all the macros that are available in your workbook.
01:36In this case, there is only one, so I'll click it, and then click Add to add it
01:41to the quick access toolbar.
01:42This is a custom button, so if I want I can change the button that actually
01:47appears on the quick access toolbar.
01:49So, I'll click my macro, and then click Modify. When I do, the Modify Button dialog
01:55box appears, and I can select the button that I want, and for this one, I'll make
02:00it a forest green square, and click OK.
02:03The button icon changes, and I can click OK to make the change, and you see the
02:07button here on the quick access toolbar.
02:10When I hover the mouse pointer over it, the name of the macro appears beneath it as a tooltip.
02:14Now to run the macro, all I need to do is click that button, and Excel runs
02:20it, and I'll just remove the fields to reset the PivotTable back to its
02:24original configuration.
02:25One final way to run a macro in Excel 2013 is to assign the macro to a shape or an image.
02:31To add a shape to your worksheet, click the Insert tab, and then in the
02:35Illustrations group, click the Shapes button, and click the shape that you want.
02:40In this case, I'll make it a rectangle with rounded edges.
02:44Then, in the body of the worksheet, click and drag to create the shape you want,
02:48and with the shape still selected, start typing text that will indicate what the
02:54button's function will be, and in this case, I'll just call it PivotRecall, and
02:59I'll resize the shape, so all the text fits, and there we are.
03:02Now, to assign a Macro to a shape, right-click the shape, and from the shortcut menu
03:07that appears, click Assign Macro.
03:10In the Assign Macro dialog box, click the name of the macro you want to assign to
03:13it; in this case, this is the only one, and then click OK.
03:17Now click away from the shape, and when you want to run your macro, all you need
03:20to do is move the mouse pointer over the shape, and you can tell that it's
03:24active -- in other words, that it has a macro assigned to it -- because the mouse pointer
03:29changes to a pointing hand.
03:30When you click the button, Excel runs the macro for you.
03:34Just as a final note, if you want to edit a button that has a macro assigned to
03:38it, instead of clicking it, right-click it.
03:41When you do, you get the shortcut menu with all of your editing options.
03:45To release the selection, just press the Escape key. Those are the ways that
03:49you can run amMacro inside of Excel 2013.
03:53You can run the macro from the Macros dialog box, add a button to the quick
03:57access toolbar, or assign the macro to a shape.
04:00Use the method that works best for your particular situation.
Collapse this transcript
Creating a simple PivotTable presentation kit
00:00After you've recorded one or more macros that re-create desired PivotTable
00:04positions, you can add elements to your workbook that let you run those macros
00:09quickly, and in the desired order.
00:11In this movie, I will show you how to create a very simple presentation kit,
00:15so you can use your PivotTables as a story telling device, and not just for data analysis.
00:20I will use the PresentationKit sample file, which you can find in the Chapter 08
00:26folder of your Exercise Files archive.
00:28I have recorded three separate macros for this workbook, and I'll show them to
00:33you by clicking the View tab, and opening the Macros dialog box, and clicking
00:38View Macros, and you can see that I have three different macros here: Department
00:44Totals, Month and Department, and Month Totals.
00:47I want to run them in the order Department Totals, Month Totals, and Month and Department.
00:53So, I'll click Cancel to close the Macro dialog box.
00:57I could run the macros from within the Macro dialog box, although that takes
01:01a quite a few clicks.
01:02I can add shapes that I can click in the body of the worksheet, or, the method
01:07that I'll use here is that I could use a series of buttons on the quick access toolbar.
01:13To do that, I click the Customize Quick Access Toolbar button, which is at the
01:17right edge of the quick access toolbar, and then click More Commands. That
01:22displays the Quick Access Toolbar page of the Excel Options dialog box.
01:25Now I can click the Choose commands from the down arrow, and click Macros to
01:31display the three macros available in this Workbook.
01:34The first one I want to add is Department Totals, so I'll click it, and click the
01:39Add button, so it appears in the Quick Access Toolbar list, then I'll do the
01:43same for Month Totals, and Month and Department.
01:46Elsewhere in this chapter, I showed you how to change the icons that are
01:50associated with those macros on the quick access toolbar, so I won't do it here;
01:55I'll just leave them with the default image.
01:57We see I have Department Totals, Month Totals, and Months and Department.
02:00Great; that looks good.
02:01So, I can click OK, and when I do, my three macros are represented on the quick
02:07access toolbar with buttons.
02:10You can see that when I hover the mouse pointer over a particular button on the
02:13quick access toolbar, it displays the command behind it; in this case, it is a
02:18macro named Month and Department.
02:21To start the presentation, I might say something like, welcome, I want to briefly
02:25go over sales data for our departments, broken down by Month.
02:30First, the departmental totals, which you can see here. They're pretty even
02:33across the entire company, and our five different departments.
02:37If you look at monthly sales, you see that, once again, there is a pretty good
02:40spread. There is a bit of a letdown in January, because it's right after the
02:44holiday season, but February and March were consistently good.
02:47When you break the amounts down by month and department, you'll see that, once
02:52again, January lagged a bit, except in the Work category, where I guess people were
02:56getting ready for a new year of work, and their New Year's resolutions of trying
03:00to get promoted, and dressing for the job they want.
03:02That's one way you can use macros to re-create PivotTable positions, and use your
03:07workbook as a storytelling device.
03:08It's s a very powerful tool, and once you've tried it a few times, I think you'll
03:13like it.
Collapse this transcript
9. Starting with PowerPivot and the Data Model
Enabling PowerPivot in Office 2013 Professional Plus
00:00If you run Office 2013 Professional Plus, then as part of Excel 2013, you're
00:06able to use PowerPivot and PowerView.
00:09In this movie, I will show you how to enable PowerPivot in Excel 2013.
00:13I'm using the Import sample file,
00:15but we'll just be working in the Excel Options dialog box,
00:18so no sample file is necessary;
00:20you just need to have Excel 2013 open on your Desktop.
00:24To enable the PowerPivot add-in, click the File tab.
00:27Doing so displays the backstage view, and then click Options to open the
00:33Excel Options dialog box.
00:35Then click the Add-Ins category,
00:37and at the bottom of that page of the Excel Options dialog box, click the
00:42Manage Lists down arrow, click COM Add-ins -- that's COM for Common Object
00:47Model -- and click Go.
00:50Doing so displays the COM add-ins that are available to you.
00:53Depending on your installation of Office 2013, you might not see all of these
00:58add-ins, but the one you should see, and the box you need to check, is by what is
01:03the second option in this list: Microsoft Office PowerPivot for Excel 2013.
01:08And with that box checked, click OK, and you'll see a PowerPivot tab on the ribbon.
01:15If PowerPivot doesn't appear when you follow this procedure, then open the
01:18dialog box, and click the Add button.
01:21Doing so displays another dialog box, within which you can click the PowerPivot file.
01:27Click OK, and then click OK again to add the file to the dialog box, and also to the ribbon.
01:33When you click that tab, you can see the controls that are available to you,
01:37and I'll spend the rest of this chapter telling you how to use it.
Collapse this transcript
Introducing PowerPivot
00:00I wanted to take a few moments to introduce PowerPivot, and the data model,
00:05just by showing you some of the things that you can do with PowerPivot inside of Excel 2013.
00:11This demonstration will not be exhaustive.
00:13I just want to give you a flavor for what you can do.
00:16I will use the Introducing sample file, which you can find in the Chapter 9
00:20folder of your Exercise Files archive.
00:22First, I'll get into PowerPivot by clicking the PowerPivot tab on the ribbon,
00:26and then click Manage.
00:28Doing so displays Powerpivot, which contains two tables;
00:32the first is SalesSummary, and the second is MonthNames.
00:36So, SalesSummary is currently displayed, and I can click the MonthNames
00:40table's tab to display it.
00:42I'll go back to SalesSummary.
00:44One of the great things about PowerPivot is that it uses something called
00:48vertical database technology to manage extremely large datasets.
00:52If you look at the bottom left corner of the program window, you can see that
00:55this collection only contains 100 rows.
00:58So, it's not large, even by Excel standards.
01:01I've kept my sample file's small, so that you can download them more easily.
01:06But, unlike Excel, which has a limit of 1,048,576 rows per worksheet,
01:12PowerPivot can handle millions, or even tens of millions of rows, and it does so pretty quickly.
01:18Just like in an Excel worksheet, especially an Excel table, you can filter the
01:21values that appear in PowerPivot.
01:23So, for example, if I wanted to only display values for 2013, I could click the
01:28Year column's down arrow, and select 2013, and click OK.
01:33And if I want to clear the filter, I can click Clear All Filters.
01:36I can also sort, create formulas, and change the formatting of any of
01:41these table columns.
01:42The two tables that I've added to this workbook's data model are related.
01:47So, for example, in SalesSummary, I have a Month column, and the month is
01:52displayed as a number instead of a month name.
01:56And then in the MonthNames table, I have MonthNumbers in the first column, and
02:01MonthName in the second column.
02:03The MonthID column here in MonthNames matches up to the Month column in
02:09the SalesSummary table.
02:11That means that I can create a relationship between those two table columns, so
02:15that I can relate the tables.
02:17To show you what I mean, I will switch from Data View to Diagram View.
02:22And these controls are in the Home tab of the PowerPivot ribbon.
02:26So, when I click Diagram View, I see my layout, and my two tables:
02:31SalesSummary, and MonthNames,
02:34and I also see that there is a relationship between SalesSummary and MonthNames.
02:40That's what this line indicates.
02:41And if I switch back to Data View, I'll show you one way that this relationship
02:47helps when you have multiple tables that are related inside of PowerPivot.
02:51Specifically, I will create a PivotTable based on these two tables, instead of just one.
02:56To do that, I'll click the PivotTable button, and again, this is on the Home tab in PowerPivot.
03:01I will insert the PivotTable on the New worksheet, clicking OK,
03:05and when I do, I get my PivotTable Fields task pane that contains two items;
03:10MonthNames, and Table1, which is my SalesSummary data.
03:14So, let me show you what happens if I just add values from Table1.
03:17I'll put Month in the Rows area, and I'll put Department in the Columns area,
03:24and Sales in the Values area.
03:26And note that my row labels, which are the months, are listed by number, as
03:30opposed to month name.
03:32Now, I'll pull Month out of the Rows area, and scroll up in the PivotTable
03:37Fields task pane, display the MonthNames table's fields, and then drag MonthName
03:43down to the Rows area.
03:44Doing so displays the months in alphabetical order, but I want them in
03:48chronological order,
03:49and because month names are a custom list in Excel, I can right-click any cell
03:55that contains a month name, point to Sort, like Sort A to Z, and Excel sorts the
04:00names into chronological order.
04:02If I want to go back to PowerPivot, from Excel, I can just click the Manage
04:06button, and when I'm ready to go back to the Excel workbook from PowerPivot, I
04:10can go up to the title bar, and click the Switch to Workbook button,
04:14and that takes me back into Excel.
04:16That's just a quick overview of just a few of the features that you can use with PowerPivot.
04:22The ability to work with large data collections makes PowerPivot worth its
04:25weight in gold, and for anyone lucky enough to have access to Office 2013
04:29Professional Plus, I think you'll agree.
Collapse this transcript
Importing PowerPivot data
00:00There are two main ways to bring data into the PowerPivot data model in Excel 2013.
00:05The first is to include Excel tables from the current workbook in that
00:09workbook's data model, and the second is to import data from an external source.
00:15In this movie, I will show you how to bring an outside data,
00:18and I'll start with the Import sample workbook, which you can find in the
00:22Chapter09 folder of your Exercise Files archive.
00:25To bring in the data into PowerPivot, I need to click the PowerPivot tab on the
00:29ribbon, and then click Manage to display PowerPivot.
00:33The screen here at the bottom is blank because there's no data currently in the data model.
00:38I will bring in my data from an Access database, but the skills that I show you
00:43here will transfer to pretty much every other type of file.
00:46You might need to enter a password, and perhaps a username for some SQL server
00:50databases, or other sources, but it should be pretty obvious what you need to do
00:55from within the dialog box.
00:57To bring in data from an Access database with no password, I click the From
01:02Database button on the Home tab of the PowerPivot ribbon, and then click From Access.
01:07Doing so displays the Table Import wizard.
01:10I need to look for the file, so I'll click the Browse button.
01:14That displays the Open dialog box, and I can navigate to the folder that
01:18contains the file I want to connect to.
01:20In this case, I went right to it; it's the DataSource file in the Chapter09
01:25folder of the Exercise Files archive. You'll get a copy as well, and I've
01:29selected it, and I'll click Open.
01:31Now, I'm back in the Table Import Wizard dialog box, and if I had to log on
01:35to the database, I could enter my username and password, and save my password if I wanted to.
01:41If your file is over a network, then you can test the connection.
01:45I'll click Test Connection, just to show you what happens, and it succeeded. I
01:49click OK, and now I'll click Next.
01:51The next screen lets me choose how to import the data.
01:54If I want, I could write a custom SQL query to specify a subset of the data to import.
02:00In this case, I just want to look at the list of tables and views that are in
02:04the Access workbook.
02:06So, with that option selected, I'll click Next, and I see the table that's in the workbook.
02:11There's only one.
02:12Its name is Orders, and it is the one I want to use,
02:16so I will click Finish.
02:18Doing so brings the data in, and I see that the operation was successful, and
02:22that 100 rows were transferred.
02:24That's how many I expected, so I will click Close.
02:27When I do, the dialog box disappears, and my data is inside of the data model.
02:32One thing I do want to point out is that I've created an external data
02:36connection, which can have security implications.
02:38So, when I switch back to the Excel workbook by clicking the Switch to Workbook
02:43button on the title bar, I see a message bar with a security warning, indicating
02:48that external data connections have been disabled.
02:50The data that I've already added to the data model is there,
02:54but unless I have an external connection, then any updates to that data source
02:58will not be reflected inside of my collection.
03:01If I want to enable it, all I need to do is click the Enable Content button.
03:06If for some reason I didn't want to, I can dismiss the message bar by clicking
03:09the Close button here on the right edge of the message bar.
03:13But in this case, I do want to enable the content, so I will click the Enable
03:18Content button, and now any changes to the original data source will be
03:21reflected in the data model.
Collapse this transcript
Adding tables to the data model
00:00PowerPivot lets you work with extremely large data collections,
00:03so it's likely that you will import data from other sources, such as SQL server
00:08databases, for use in Excel 2013.
00:12That said, if your workbook contains an Excel table that you would like to add
00:16to the data model, then you can do so, and in this movie, I will show you how.
00:21I will use the AddToModel sample file, which you can find in the Chapter09 folder
00:26of your Exercise Files archive.
00:28To add an Excel table to the data model, which enables you to work with that data
00:33inside of PowerPivot, all you need to do is click any cell inside the Excel
00:37table, and then on the PowerPivot tab, click the Add To Data Model button.
00:44Doing so adds that table to the data model, and you can now work with it
00:48using timelines, slicers, and all of the other tools that are available to you in PowerPivot.
00:53It's a very straightforward process, and one that you'll have no trouble
00:56doing immediately.
Collapse this transcript
Managing table columns
00:00When you import data into PowerPivot in Excel 2013, or include an existing Excel
00:05table in PowerPivot, you can manage that data inside of PowerPivot, just like you
00:09would any other Excel worksheet,
00:11and in this movie, I will show you how to use the ManageColumns sample file to
00:16show you some of the techniques that you can use.
00:19The first thing I need to do is open PowerPivot,
00:21so I will click the PowerPivot ribbon tab, and then at the left edge of the tab, click Manage.
00:27Doing so opens PowerPivot, and displays the existing data.
00:31The first thing you notice just looking at the data is that the Date field is very narrow;
00:37the Date column here.
00:38To resize it, I will hover the mouse pointer over the left edge of the header.
00:43So, you can see here that the mouse pointer has changed to a two-way
00:47pointing horizontal arrow,
00:49and all I need to do is drag that column edge to the side, dragging it to the
00:55right, and when I release it, you can see that the entire value inside the
00:59field is displayed.
01:00The second thing you notice, I'm sure, is that the date is followed by a time, and
01:05that time is midnight; 12 a.m.
01:08Because the times are all the same, they don't add any information, so we can
01:12reformat the field, so that it displays only the date.
01:15To do that, I'll click any cell inside of the Date column, and then on the Home
01:21tab of PowerPivot, I'll click the Format control.
01:25You can see it highlighted here.
01:26And I'll select the format that I want,
01:29and in case, it's the second one down; the one that says 3/14/2001. That's the
01:34pattern we're looking for,
01:36so I'll click that,
01:37and you can see that the date is now just the date, and the time has been eliminated.
01:42And I can also resize the column by dragging its right edge, so that it's no
01:48wider than it needs to be.
01:49The final thing I'd like to show you is how to freeze a column.
01:53If you've worked with Excel, you know that sometimes it can be handy to freeze
01:57either rows or columns, so that they stay either at the top, or at the left edge
02:01of the screen when you scroll.
02:03That's a very handy technique for working with either very long or very wide worksheets.
02:08In PowerPivot, if you want to freeze a column, all you need to do is click any
02:13cell in that column, and then on the Design tab, click Freeze.
02:18Doing so adds a black line to the column or columns that you selected, and
02:23now, regardless of how far you scroll to the right, the OrderID column will stay visible.
02:28So, if I resize the PowerPivot window by dragging its right edge, so that not
02:33everything is displayed, and I click the horizontal scrollbar, so that we get to
02:37the right, you'll see that the OrderID column remains, even though I've scrolled
02:42beyond it, if I hadn't frozen it.
02:45So, just keep going over to Total, and so on, and when I scroll back, it remains in place.
02:50And let's just resize the window again.
02:52If you want to unfreeze a column, click any cell in the column, then click the
02:57Freeze button's down arrow, and click Unfreeze.
03:00Now if I were to scroll to the right, the OrderID column would disappear
03:05instead of staying put.
03:06Those are the basics of managing columns inside of PowerPivot in Excel 2013.
03:11These techniques are very similar to managing columns inside of an Excel worksheet,
03:15but there are just enough differences that I wanted to show, so you know
03:19what to do immediately.
Collapse this transcript
Creating relationships between tables
00:00When you add columns to your PowerPivot data model, you can create a
00:05relationship or link between those tables if they have a column in common.
00:09In this movie, I will show you how to create those relationships using the
00:13CreateRelationship workbook, which you can find in the Chapter09 folder of your
00:18Exercise Files archive.
00:20This workbook contains two separate tables, both of which I've added to the data model.
00:25The first table is sales data, and you can see that it has a number of columns.
00:30The one that I'm interested in is Month.
00:33The reason I'm interested in it, at least for the purposes of this exercise, will
00:37be apparent when I show you Sheet2 with the second table, and that has MonthID,
00:42and the associated MonthName.
00:44Month 1 is January, 2 is February, and so on, down to number 12, which is December.
00:49So, even though my original table on Sheet1 only displays months with the
00:55number, not the name, I can create a relationship between these two tables, so
00:59that I have access to the month name, in addition to the number.
01:03To do that in PowerPivot, I'll click the PowerPivot tab on the ribbon, and then
01:08at the left edge of the ribbon, click Manage.
01:10Doing so opens my data in PowerPivot,
01:13and you can see that I have two tabs in this PowerPivot book; I have
01:17SalesSummary, and MonthNames, and they correspond to the data that I showed you earlier.
01:23If I want to define a relationship between these two tables, then I just click
01:28Design, and then click Create Relationship.
01:30Doing so displays the Create Relationship dialog box,
01:35and I can now define a relationship based on the fields that the two tables have in common.
01:40In the SalesSummary field, which is the one that has the order data, and that is
01:44the top table displayed here, I need to select the month column.
01:48So, I'll click the top Column control, and from the list of fields, and click Month.
01:54Now I need to identify the Related Lookup Table, and that is MonthNames.
01:59So, I'll click the Related Lookup Table control's down arrow, click MonthNames,
02:03it's the only option,
02:04and now I need to identify the lookup column, and that column is the column that
02:09contains exactly the same data as the Month column.
02:12So, if I drag the Create Relationship dialog box down, you can see that the Month
02:17field contains numbers, not names;
02:19that means I need to select the Month ID field from the lookup table instead of Month name.
02:25Now my two columns, Month, and MonthID, share values, and we can use one to look up
02:30to the other, and that's what makes for a successful relationship.
02:33I'll click Create to define the relationship, and PowerPivot adds it to the data model.
02:38After you define a relationship, you can manage or delete it.
02:42To do that, again, on the Design tab of the ribbon in PowerPivot, click Manage
02:47Relationships, and you see here that you can either create a relationship, which
02:52opens the Create Relationship dialog box, or you can edit an existing relationship.
02:56To do that, click the relationship you want to work with, click Edit, and you get
03:00that relationship inside of the Edit Relationship dialog box, which is familiar.
03:05It's just a new name on the interface that you use for other tasks.
03:08I'll click Cancel, and if you want to delete the relationship, just click the
03:13relationship, click Delete, and if you're sure you want to get rid of it, click OK.
03:18If not, click Cancel, which is what I'll do here.
03:20When you're done managing the relationships in PowerPivot, click Close to
03:25close the dialog box.
03:26And that is how you create and manage relationships in PowerPivot for
03:30Excel 2013.
Collapse this transcript
Creating a PowerPivot PivotTable
00:00After you've brought data into PowerPivot for Excel 2013, you can summarize that
00:05data in the PivotTable.
00:07To demonstrate the process, I will use the CreatePivot sample file, which you
00:11can find in the Chapter09 folder of your Exercise Files archive.
00:15To create a PivotTable in PowerPivot, you need to open up PowerPivot,
00:20so I'll click the PowerPivot tab on the ribbon, and then click Manage.
00:26My PowerPivot data model contains two tables, and you can see their names here:
00:30SalesSummary, and MonthNames.
00:33So, what I want to do is to summarize all of that data in a PivotTable.
00:37One benefit of working in PowerPivot is that I have created a relationship
00:42between the SalesSummary and MonthName tables,
00:45and if I click the Design tab on the ribbon, and click Manage Relationships, you
00:50can see in the dialog box that there is a relationship between the Month field
00:54of the SalesSummary table, and the MonthID field of the MonthNames table.
01:00That will come in handy when I show you how to work with the PivotTable
01:04inside of PowerPivot.
01:05So, I'll click Close to close dialog box, and then on the Home tab of the
01:10PowerPivot ribbon, I'll click the PivotTable button.
01:14Doing so displays the Insert Pivot dialog box, and I want to create my PivotTable
01:20on the new worksheet,
01:21so I'll leave that option selected, and click OK.
01:24When the PivotTable appears, you can see a blank PivotTable here on a new
01:28worksheet, which in my workbook is named Sheet4. It might be named
01:32something different in yours.
01:34And you'll also see over in the PivotTable Fields pane that there are two tables
01:39instead of just one, or rather, a list of fields like you would see in a single
01:44table, if you created a PivotTable inside of the regular Excel program.
01:49When you create the file, you'll see the files area show MonthNames, and Table1.
01:55Table name is the name of the table in the original Excel file from which the
01:59values are derived, and that's why that name appears there.
02:03See, here we have MonthNames, which if I click it, you can see that there's
02:06MonthID, and MonthName, and there's also a second table name SalesSummary, which
02:11has OrderID, Date, Year, and so on.
02:14And those table names and list of fields reflect the two source data tables that
02:19I used from PowerPivot to create this PivotTable.
02:22Now I can add fields to the body of the PivotTable to display and manipulate its data.
02:27So, I'll add Department to the Columns area, and then I'll scroll down, and add
02:33Total to the Values area.
02:35Doing so displays sales totals for the five different departments.
02:39If you want to format this field, you can do so using the techniques that I have
02:43shown elsewhere in the course.
02:44But now let me show you what happens if I add the Month field, from the
02:48SalesSummary table to the Rows area.
02:51Doing so displays all the months that have sales, and those are 1, 2, 3, and 11 to
02:5612; January, February, March, and November, and December.
03:00But let's say that I want to display the month names instead of the month numbers.
03:05I can do that by dragging Month back to the Fields area to remove it from the PivotTable.
03:11Then I'll scroll up, and from the MonthNames table, I'll drag the MonthName
03:16field to the Rows area.
03:18Doing so displays the months, but you'll notice that instead of being in
03:22chronological order, the months are in alphabetical order.
03:26To fix that, I need to sort the data inside of that field.
03:30So, I'll hover the mouse pointer over the MonthName field, over in the
03:33PivotTable Fields pane, click the downward pointing black triangle that
03:37appears, and click Sort A to Z. Now, because MonthNames are a known custom list
03:44inside of Excel, when I click Sort A to Z, instead of staying in alphabetical
03:48order like they are now, the months are sorted January, February, March,
03:52November, and December, into the known order, and once you have your data inside
03:56of your PowerPivot PivotTable, you can work with it just as you would any normal PivotTable.
04:02If you are data collection is less than a few thousand rows, then you probably
04:06won't need to use PowerPivot,
04:07but if your data collection is quite large, perhaps numbering in the hundreds of
04:11thousands, or even millions of rows, then the technique that I showed you allows
04:15you to create a PivotTable that you can manipulate using the skills that you've
04:19learned elsewhere in this course.
Collapse this transcript
Filtering data using a timeline
00:00When you create a PivotTable using tables that have been added to the Excel data
00:04model, you can then filter that PivotTable using what's called a timeline.
00:09Timeline is a new feature that's available for PivotTables in Excel 2013, and
00:14I'll demonstrate how to create them and use them by using the Timeline sample
00:19file, which you can find in the Chapter09 folder of your Exercise Files archive.
00:24I created this PivotTable in PowerPivot, so the tables that provide its data are
00:29part of Excel's data model.
00:31To filter a PivotTable using a timeline, you have to have a field that is
00:35formatted as a date, and if I scroll up in the PivotTable Fields pane, you can
00:41see that there is a Date field.
00:43So, even though the Date field isn't currently displayed in the PivotTable, I
00:47can use its contents as the basis for my timeline.
00:50To add the timeline filter, click any cell in the PivotTable, and then on the
00:54Insert tab, click Timeline.
00:57When I do, the Insert Timelines dialog box appears, and on the Active tab, I can
01:03see the name of the table providing the data that I'll use as my sort value, and
01:09then within that table, there is the Date field.
01:12So, I'll go ahead and check that field's box, and click OK.
01:16Doing so hides the PivotTable Fields pane, and adds a timeline.
01:21If a timeline looks a lot like a slicer, that's not a coincidence; they are related tools.
01:26Now I can use the timelines controls to filter my data.
01:29So, let's say I only want to display data for January 2013.
01:33To do that, I need to scroll back in the timeline, and you can see that I'm
01:37currently in the year 2013; January, February, March, going to the right, and
01:41then for 2012, you've got December, November, and so on.
01:45So, let's say I want to see the data for January 2013. I'll just click the
01:49timeline segment below January, and doing so filters the PivotTable.
01:54If I want to include another month, then I can drag the handle at the edge of a
02:00particular line segment, or whatever the current filter is, and drag it to the
02:04left, so that I include December 2012 in with January 2013.
02:09If I want to reduce the time displayed, then I can just drag it to the left,
02:14such as here for January, and now I only see December 2012.
02:18Unfortunately, one thing you can't do is select multiple segments using the Ctrl key.
02:24So, for example, here I have December selected; if I wanted to also select
02:28February 2013, if I hold down the Ctrl key, and click the February segment, all
02:33I do is change the filter, so it displays February.
02:37You can also change the time period by which you filter.
02:40So, for example, right now the timeline is based on individual months.
02:44If I want, I can click this time element or a segment control here, and you can
02:50see that I can filter by Years, Quarters, Months, or Days.
02:53I'll go ahead and click Quarters, and you can see that I have Q1 through Q4 of
02:58the years 2013 and 2012.
03:00So, if I click Q4 of 2012, I'll see the data for November and December. There is
03:06no data in the source table for October of 2012.
03:10And as before, if I want to extend the selection, I can drag the right edge of
03:15the timeline indicator, so it covers Q1 of 2013, and I get my sales for January
03:21through March of that Year.
03:23If I want to clear the filter that I've applied using timeline, I can just
03:27click the Clear Filter button, and again, that's exactly like you do when you
03:31work with a slicer, and if I want to remove the timeline, I just right-click it,
03:36and click Remove Timeline.
03:38Timelines let you filter your table based on time data.
03:42So, if you have a field in one of your source tables used in the PivotTable
03:46that is formatted as a date, you can create a timeline, and filter your data
03:49visually, so you can see exactly which time segments are included, and which
03:54aren't.
Collapse this transcript
10. Introducing Data Analysis Expressions (DAX)
Introducing the DAX language
00:00When you create formulas to summarize values in PowerPivot for Excel 2013, you
00:05use the Data Analysis Expressions language, which is called DAX.
00:09In this movie, I will give you a quick look at how the DAX language operates.
00:13I will use the Introducing sample file, which you can find in the Chapter10
00:18folder of your Exercise Files archive.
00:21To go over to PowerPivot, I'll click the PowerPivot tab on the ribbon, and then
00:26over on the left side of the tab, I'll click the Manage button.
00:30Doing so opens my data in PowerPivot, and you can see that I have a number of columns.
00:35There are two columns that I'll use here on the right edge of the sheet.
00:39I have Sales, which is the number of sales in a day, and Total, which is the total
00:44value of those sales.
00:45So, in the Add Column area, I'll click the top cell, and then to start
00:50creating my formula, I'll type an equal sign, and you can see the formula
00:54on the formula bar, but not in the body of the cell, so that's a little
00:56different from Excel.
00:58Now I need to type in the first field, providing a value, and I want to find the
01:02average of those sales for a given day, for a given department.
01:05So, I need the total value first, and divide it by the number of sales.
01:09So, I have already typed the equal sign; type a left square bracket, and from
01:14the IntelliSense list that appears, I will use the down arrow to highlight
01:20Total, and press Tab, and you can see that Total is enclosed in square brackets
01:25up on the formula bar.
01:27Now to divide, I'll type a forward slash, then a left square bracket, and I
01:32want the number of sales, which is in the Sales field,
01:36so I'll press Tab again to select it when I've highlighted it, and I now have
01:40the formula =Total/Sales, and that formula will calculate the value for each
01:46row, and when I press the Enter key, PowerPivot adds that calculated column to my dataset.
01:52Now, I can reformat the column by clicking any cell in the column, and then on
01:56the Home tab in PowerPivot, clicking the Apply Currency Format button, and then
02:01clicking English (United States), which is the top entry, and it will give me a
02:06dollar sign, with two values to the right of the decimal point.
02:09I can also rename the calculated column by double-clicking its header cell,
02:14and typing in a new name, and in this case, I'll call it Average Sale, and press Enter.
02:20Those are the basics of creating DAX expressions in PowerPivot for Excel 2013.
02:25I'll go into a lot more detail elsewhere in the chapter.
Collapse this transcript
Using DAX operators
00:00When you create a calculated column in PowerPivot for Excel 2013, you combine
00:05two different elements;
00:06the first are column names, which provide the values for the calculation, and the
00:10second is one or more operators that tells PowerPivot how to combine the values.
00:14So, for example, you can use the plus sign to add values together, minus
00:19to subtract them, and so on.
00:21And in this movie, I will give you an overview of the operators that you can use
00:25in PowerPivot for Excel 2013.
00:27The operators you can use are divided into a number of categories.
00:31The first is the arithmetic operators, and these are probably familiar to you,
00:35if you've worked in Excel for any length of time.
00:38The plus sign is addition, minus sign is either subtraction or a minus
00:42sign, the asterisk is used for multiplication, the forward slash
00:47for division, and the caret, which you type by typing Shift+6, indicates exponentiation.
00:54So, for example, if you want to indicate two to the third power, you would type
00:582, then a caret, and then the number 3.
01:00Next are the comparison operators.
01:02These are most likely also familiar to you.
01:05You have equal, greater than, less than, greater than or equal,
01:09less than or equal, or not equal to.
01:11Some languages use an exclamation point
01:14followed by an equal sign to indicate not equal to, but in DAX, which
01:18you use in PowerPivot for Excel 2013, you use the less than sign, followed by
01:22greater than sign.
01:24The final group is the text and logical operators.
01:27The first operator is the ampersand, which combines two arguments into
01:31a single text string.
01:33The logical operators allow you to define a condition with more than one part.
01:37For example, you can use the double ampersand, which returns true, if both
01:42conditions are true, so it's an and condition.
01:45And the statement here, if the date is greater than -- that is, after -- 3/14/2013, and
01:51the department equal dance, then that statement would evaluate to true.
01:56The double vertical bar, which is sometimes called the double pipe symbol,
02:00because of its use in the UNIX operating system, is the or operator, so that
02:05means it returns true, if at least one condition is true.
02:09So, that means the statement Date > 3/14/2013 or if the Department = "Dance"
02:16would return true, if the date were after March 14, 2013, if the department equaled dance, or both.
02:23Now I'll switch back over to PowerPivot to show you a quick example of how to
02:27use the text operators, which you might not be as familiar with.
02:30I'm working in a PowerPivot data model that is saved within the Operators.xlsx
02:36sample file, which you can find in the Chapter10 folder.
02:40Let's say that I want to create a column that displays the text two sales
02:45accounted for $370, or whatever the number of sales is for a particular row, and
02:51the total dollars accumulated by those sales.
02:54To do that, I click in the top cell of the Add Column column, and then I can
02:59start typing my formula.
03:00So, like in Excel I type an equal sign, and you can see the equal sign
03:04on the formula bar; it doesn't actually appear in the cell in the sheet. And now
03:09I type a left square bracket, which displays the columns in the table, and in
03:14this case I want to use sales.
03:16So, I'll just type in S, and then press Tab to accept Sales, and PowerPivot
03:21extends the value for me.
03:23Then type Space and Ampersand, which again is the text concatenation
03:27operator, and now I want to put in a literal string, that is a text string.
03:32So, I'll type a double quote, then a space, and then the word Sales
03:37accounted for, then a space, and a dollar sign, then double quotes, a
03:43space, an Ampersand, followed by a left square bracket, and I want to use
03:49the Total column, so I'll type a T, and the IntelliSense list highlights Total,
03:54so I'll press Tab, and I'll just verify my formula.
03:58I have the number from the Sales column, followed by a space, then sales
04:02accounted for, and a dollar sign, and then the number from the Total column. That looks good.
04:08So, I'll press Enter, and you can see that in my new CalculatedColumn1, I have
04:14items such as 2 sales accounted for $370, 3 sales accounted for $219, and so on.
04:20And if I want to rename the column, I can just double-click its header cell,
04:24and I'll type in a name, such as Summary, and press Enter. Those are the basics
04:29of using operators to create DAX expressions in PowerPivot for Excel 2013.
Collapse this transcript
Surveying DAX functions
00:00Many of the DAX functions that you'll use in PowerPivot for Excel 2013 are
00:05similar to those from the Excel spreadsheet. That said,
00:08many of them are different,
00:09so I wanted to show you how to look inside of the PowerPivot help system to find
00:14information on the functions that are available to you.
00:16As my base, I will use the Survey sample file, which you can find in the
00:21Chapter10 folder of your Exercise Files archive, but you can use any Excel
00:25workbook that has a PowerPivot data model already engaged.
00:28To get into the PowerPivot help system, I'll switch to PowerPivot by clicking
00:33the PowerPivot tab on the ribbon, and then clicking Manage.
00:37Doing so displays the PowerPivot data model.
00:40Now, to get help on functions, I'll click the Help button, which is a small blue
00:44circle with a question mark
00:46in it at the top right corner of the program window.
00:49So, it's right here, hover over it, and click to display the Excel Help dialog box,
00:54with information on working with PowerPivot in Excel 2013.
00:57I'll search the Help system by clicking in the search box and typing Function
01:04reference, function, space, reference, and press Enter.
01:10I'll look through the series of articles, and the third one down DAX function
01:14reference, is the one that I want, so I'll click it to display it.
01:18This article has a number of sections that I can display by clicking
01:22the appropriate header.
01:23The first thing I'll take a look at are these statistical functions, which is
01:27here at the bottom of the window, and doing so displays all of the functions that
01:31are available to me in the statistical category.
01:34And like I said before, many of these will be familiar to you from the Excel workbook.
01:39Now just scroll down, and as an example, I'll click the MAX Function.
01:44Here you can see a summary of the article, the statement syntax, and any
01:49parameters, as well as what the function returns.
01:52I can go back to my previous page by clicking the Back button, and I'll click it
01:56again to go back to the article homepage.
01:59Now, just to give you a look at one more section, I'll click Filter Functions,
02:03and you can see the functions that are available here, and I'll click ALLEXCEPT
02:09to display that article, and its contents, again, explaining how to use the
02:14function in PowerPivot.
02:16I'll click the Close box to close the Excel Help system.
02:19If you want to look up how to use specific functions in PowerPivot for Excel
02:232013, just go into the Help system, and type function reference.
02:28Within the results, you should see an article titled DAX function reference.
02:33That's the one you want.
Collapse this transcript
Adding calculated columns
00:00When you bring data into PowerPivot for Excel 2013, you might not have all the
00:05summary columns that you want in the original data source.
00:08You can add a new summary by creating a calculated column;
00:12I'll show you how to do that in this movie.
00:14I will use the CalculatedColumn sample file, which you can find in the Chapter
00:1810 folder of your Exercise Files archive.
00:21So, I'll click the PowerPivot tab on the ribbon, and click Manage to open the data model.
00:28This table in the data model contains sales data, and I am specifically
00:32interested in the number of sales, and the average sale for a given department
00:37on a particular day.
00:38What I want to do is add a column that finds the total of all sales made on a day.
00:44To do that, I click the top cell in the Add Column area, then type an equal
00:49sign to start the formula, and you'll see the formula on the formula bar, as
00:54opposed to within the body of the cell.
00:57Now I'll type a left square bracket, and I want to multiply the average sale by
01:02the number of sales.
01:03So, AverageSale is selected in the formula auto complete list,
01:08so I'll press the Tab key to accept it, and I see that AverageSale appears. Type
01:13an asterisk, which is the multiplication operator, and then a left square
01:18bracket, and from the list that appears, I want Sales, which is the number of
01:24sales on a given day.
01:25So, I'll use the down arrow key to highlight Sales, press Tab, and I'll check my
01:31formula; make sure it's right.
01:32AverageSale times Sales; looks good, so I'll press Enter, and doing so creates a
01:37calculated column, which displays the total of the sales.
01:41I can format that column by clicking any cell in the column, and then on the
01:46Home tab of the ribbon inside PowerPivot, click the Apply Currency Format
01:50button, select my format which is United States dollars, and if I want, I can
01:56also rename the column by double-clicking its header, and typing a new name, such
02:02as Total, and pressing Enter.
02:04And that's how you add a new summary using a calculated column in PowerPivot
02:09for Excel 2013.
Collapse this transcript
Adding calculated fields
00:00There are two basic ways that you can summarize a column of data in
00:04PowerPivot for Excel 2013.
00:07The first is to create a calculated column, which does a row by row calculation.
00:12The second is to create a calculated field, which works with all of the values in
00:17a particular column of data.
00:19In this movie, I will show you how to work with calculated fields, and I will use
00:23the CalculatedField sample file, which you can find in the Chapter10 folder of
00:27your Exercise Files archive.
00:29If you worked with PowerPivot in Excel 2010, you might remember something called measures.
00:34Calculated fields are measures; they changed the name in Excel 2013.
00:39To create a calculated field, you need to go into PowerPivot, so click the
00:43PowerPivot tab on the ribbon, and then click Manage to open the data model.
00:48To create a calculated field, you need a PivotTable, so I'll click the PivotTable
00:53button, and then in the Insert Pivot dialog box, I'll ensure that New Worksheet is
00:58selected, and click OK.
01:00Doing so displays a new worksheet that contains a PivotTable.
01:03Now, on the PowerPivot tab, I can click the Calculated Fields button, and click
01:09New Calculated Field.
01:11When I do, the Calculated Field dialog box opens, and again, if you used
01:15PowerPivot in Excel 2010, you'll see that it's exactly the same as the
01:19Measures dialog box.
01:20Now I can create my calculated field. I just need to verify that the proper
01:25Table name appears; Table1 is correct, and then I need to type a name for the
01:29calculated field, so I'll select the value in the Calculated field name box, and
01:34I'll call it SummaryTotal.
01:37Now I can click in the Formula pane, and start entering the formula.
01:41The first thing I want to do is type in my summary function, and that is sum, so
01:47s-u-m, then a left parenthesis, and now I can type in the column name.
01:51I'll type a left square bracket, and from the IntelliSense list that appears, I'll
01:56use the down arrow key to highlight Total, and press tab to accept it, then type
02:01a right parenthesis to finish the formula.
02:04I know that the value in the Total field is a currency value, so from the
02:07Category list, I'll click Currency, and I'll verify that the symbol is a dollar
02:12sign, and I'll leave the two decimal places there.
02:15And with everything in place, I'll click OK, and when I do,
02:19PowerPivot creates my new calculated field, and adds it to the Values area of the PivotTable.
02:25So, I can see that my summary total, the total of all sales, is $26,601.
02:31Now I can change the organization of the PivotTable using the controls in the
02:35PivotTable fields pane.
02:37So, let's say that I want to see sales by department.
02:40I'll display the fields in Table1 by clicking Table1 in the field list, and then
02:46I'll drag the Department field down to the Rows area, and when I release it, the
02:52body of my PivotTable shows me sales for Balance, Dance, Play, Sport, and Work.
02:56I could add further divisions either to the Columns area or to the Rows area.
03:00Regardless, the PivotTable would summarize my data using the summary found in
03:05my calculated field.
Collapse this transcript
Creating aggregate calculations
00:00There are two major ways to create custom summaries of data in PowerPivot for Excel 2013.
00:06The first is to create a calculated column, which calculates row by row results.
00:11The second is to create a calculated field, which was called a measure in
00:15PowerPivot for Excel 2010; that summarizes the values in one or more columns.
00:20It looks at those values as a whole, instead of row by row.
00:24In this movie, I will show you how to create aggregate functions, which allow you
00:28to combine the values from two fields in your data model instead of just one.
00:33I will use the Aggregate sample file, which you can find in the Chapter10 folder
00:38of your Exercise Files archive.
00:40This Excel table, which I've already added to the data model, contains two columns
00:45that will give me my total sales data.
00:47The first is the AverageSale; that's in column D in the worksheet. And then the
00:53number of customers that made purchases; that's in column E.
00:56So, what I want to do is multiply the values in column D by column E to get my total sales.
01:02Rather than go row by row, I want to work with it in an aggregate by creating
01:07a calculated field.
01:08I've already added this table to the PowerPivot data model.
01:12To create the calculated field I want, I'll click the PowerPivot tab on the
01:16ribbon, click the Calculated Fields button and click New Calculated Field.
01:21In the Calculated Field dialog box, the Table name SalesSummary appears in the
01:25Table name box, That's correct, and I want to edit the Calculated field name from
01:30Calculated field 1 to TotalSales.
01:34So, I'll do that, I'll leave out the Description for now, and I'll drag the
01:37Calculated Field box over to the side, so you can see the entire Excel table.
01:42So, I want this calculated field to find the total of all sales by multiplying
01:47average sale by customers.
01:49First I'll show you the wrong way to do it; I will generate an error on purpose.
01:53Then I'll show you the right way to go.
01:56So, let's say that I want to find the sum, s-u-m, of all values in AverageSale
02:01multiplied by all values in Customers.
02:04To do that, I'll type sum, then a left parenthesis, then a left square bracket,
02:09and AverageSale is the first item; it was highlighted, so I could press Tab to
02:14accept it. Then an asterisk for multiply, then a left square bracket, and
02:19Customers is the second item, I'll press the down arrow key to select it.
02:24So, I have AverageSale times Customers, and I am taking the sum, and I've just
02:28typed a right parenthesis.
02:30That closes out my formula, and to make sure it's working properly, I'll click the
02:34Check formula button.
02:36Doing so indicates that there is an error, and the error is that the sum function
02:40only accepts a column reference as an argument.
02:43So, in other words, you can't combine values for multiple columns; you can
02:46only use a single column.
02:47There is a version of the sum function that lets you combine values from
02:51multiple fields, and that is sumx.
02:54So, I'll just click in my formula, and to the right of the m, I'll type an x, so I
03:00have the sumx function.
03:02After I type the x, the tooltip for the sumx function appears at the bottom, and
03:07it says that I need two things: the name of the table, followed by the expression.
03:11I already have the expression in the formula, so what I need to do is position
03:16the cursor so that it is between the left parenthesis and the first left square
03:21bracket, and I need to type in the name of the table, which is SalesSummary.
03:26It appears in the formula auto complete list, so I'll press Tab to accept it,
03:31and then type a Comma.
03:33Now when I click Check formula, PowerPivot indicates that no errors were found.
03:37I'll click OK, and my calculated field is ready for me to use in a PivotTable, or
03:43some other calculation.
03:45That's how you create an aggregate function in PowerPivot for Excel 2013.
03:50Aggregate functions are used any time you want to combine values for multiple
03:53fields into a single calculated field.
03:56The aggregate functions have an x at the end of their name,
03:59so sum becomes sumx, average becomes averagex ,and count becomes countx,
04:05and so on.
Collapse this transcript
Creating filtered calculations
00:00When you summarize data using PowerPivot for Excel 2013, you can create
00:05calculated fields that find the aggregate value of an entire column.
00:09In this movie, I will show you how to summarize a subset of data by adding a
00:13filter to your calculated field.
00:15I will use the Filtered sample workbook, which you can find in the Chapter10
00:20folder of your Exercise Files archive.
00:22I've already added this table to the PowerPivot data model, so I'll click any
00:27cell inside the table, and then click the PowerPivot tab on the ribbon, click the
00:32Calculated Fields button, and click New Calculated Field, and I'll drag the
00:37Calculated Field to the right, so that you can see the entire table.
00:40My goal for this calculated field is to create a filtered field that only
00:44summarizes values for weeks where there were more than 250 customers who placed orders.
00:50So, in other words, I only care about rows where the Customers value is greater than 250.
00:56The name of the table that contains my data is SalesSummary, so that's correct,
01:00and for the Calculated name field I'll name it Over250Sales. I'll leave the
01:06Description blank, and now I can start creating my formula in the Formula pane.
01:11I am creating an aggregate function; in other words, one that combines values
01:16for more than one column, so I need to use an aggregate function that has an x
01:20on the end of it's name, and in this case, I'll use sumx, then I'll type a left parenthesis.
01:26Now I need to nest another function within it, and that function is FILTER,
01:31F-I-L-T-E-R, and when I select it from the auto complete list, and press tab,
01:37PowerPivot includes the name FILTER, and a left parenthesis.
01:41Now I need to type in the name of the table, which is SalesSummary, and then a comma.
01:46Now I need to create my filter rule, and that is using the SalesSummary table's
01:51Customers field, which I will use the down arrow key to highlight, and press tab,
01:56and I want greater than 250.
01:59So, in other words, I only care about rows where the Customers number is greater than 250.
02:05Type a right parenthesis to close out the filter arguments, then a comma,
02:10and now I can type the expression that I want to evaluate in my aggregate
02:14function. That is SalesSummary AverageSale multiplied using the asterisk by
02:21SalesSummary Customers, and press tab again,
02:25and type a right parenthesis to close the sumx function.
02:28I'll click the Check formula button to ensure I didn't make any mistakes.
02:33Everything looks right, so I'll click OK.
02:35Now I can use this filtered calculated field in a PivotTable, or other
02:39summaries within PowerPivot.
Collapse this transcript
11. Visualizing Power View Data Using Matrices, Cards, and Tiles
Starting out with Power View
00:00If you're running Office 2013 Professional Plus, and you have Microsoft
00:04Silverlight installed on your system then, you can use Power View.
00:08In this movie, I will show you how to enable the Power View add-in, which also
00:13enables PowerPivot, because Power View runs on top of PowerPivot.
00:16I will use the Enable sample workbook, which you can find in the Chapter11
00:21folder of your Exercise Files archive.
00:23Creating a Power View sheet from within a workbook is very straightforward.
00:27All you need to do is click the Insert tab, and then in the Reports group, click
00:33the Power View button.
00:34Doing so displays Microsoft Excel Add-ins dialog box, and it tells you that
00:39when you enable Power View, you also enable PowerPivot> That is the goal of this exercise,
00:45so I'll click Enable.
00:46Doing so opens Power View, and adds the data from the Excel table that was active
00:52when I created my Power View sheet.
00:54You can see on the ribbon that there are three new tabs; the one that's
00:57currently displayed, it's called Design, and then you also have the Power View
01:01tab, which lets us you interact with Power View at a larger level, and then you
01:06have PowerPivot, which allows you to work with data in the data model.
01:10If for any reason you want to disable PowerPivot and Power View, you can do so
01:15by going to the Excel Options dialog box.
01:18To do that, you need to click a regular worksheet, and just to demonstrate why
01:22that's the case, if you click the File tab now with a Power View sheet
01:26displayed, then the Excel Options dialog box is not available.
01:30So, I'll go back to the workbook, and click the Sheet1 tab, and now I can click the
01:36File tab, and click Options.
01:39In the Excel Options dialog box, I'll click Add-ins, and I can see in the list of
01:43Active add-ins that I have both PowerPivot and Power View.
01:47To turn them off, I'll click the Manage Lists down arrow, and click COM
01:52Add-ins, and then click Go.
01:55Doing so displays the COM Add-ins dialog box, and in this case, I want to
01:59disable both Power View, and PowerPivot, and when I click OK, those tabs
02:05disappear from the ribbon
02:07That's how you turn on Power View in Excel 2013. Just remember you need
02:11Microsoft Silverlight and Office 2013 Professional Plus to use it.
Collapse this transcript
Installing Microsoft Silverlight
00:00When you're ready to start working with Power View in Excel 2013 as part of the
00:06Office 2013 Professional Plus program suite, you need to make sure that you have
00:11Silverlight installed on your system.
00:13In this movie, I will show you how to run Power View from within Excel 2013, and
00:18also to install Silverlight from within the program if you need to.
00:22I will use the BaseData sample file, which you can find in the Chapter11 folder
00:27of your Exercise Files archive,
00:30but you can use any file that you want. All that matters is that you're
00:33running Excel 2013, and that it is part of the Office 2013 Professional Plus program suite.
00:39To start Power View, click the Insert tab on the ribbon, and then click the Power View button.
00:47Doing so starts Power View, and opens a Power View report sheet.
00:51If you don't have Silverlight installed on your system, you'll see a message bar
00:55indicating that you need to install Silverlight, and then click Reload.
01:00To do this from within the program, just click Install Silverlight.
01:04When you do, Windows displays your downloads that are available to you.
01:08Look for these silverlight.exe file that's specific to your operating system.
01:12I am running 64-bit Windows, so I see x64.exe, and I want to run the program, so
01:18I'll go ahead and click Run.
01:20I get my user account control dialog box asking me to confirm that I do want to install it.
01:25So, I'll click Yes.
01:26I'll click Install Now to accept the License Agreement, because otherwise I
01:29don't make progress, and Windows installs Silverlight on my computer.
01:33I get the Installation successful message.
01:35I have to restart my browser for the changes to take effect.
01:38From within Excel, that means I need to click Reload, so I'll click Close, close
01:43the installation box, click Close again to close my download list, and then from
01:47within Excel, I'll click Reload.
01:49After a moment, Excel 2013 displays a blank Power View sheet, which I can now
01:55populate using the data that I added to the data model earlier.
Collapse this transcript
Creating a table or matrix
00:00After you've enabled the Power View in Excel 2013, you can create a Power View sheet.
00:05Once you create the sheet, you can add tables and matrices to store and display
00:10your data, and in this movie, I will show you how to create those items; both
00:14tables, and matrices.
00:15I will use the Table sample file, which you can find in the Chapter11 folder of
00:20your Exercise Files archive.
00:22One thing I want to point out about this data is that the month names are a
00:27little bit different than you might expect. Rather than just saying January,
00:30February, and March, I've said 01_January, 02_February, and 03_March.
00:37The reason I did that is because there's no such thing as a custom list for
00:41sorting in Power View,
00:43so rather than sort month names in alphabetical order, which makes no sense, or
00:48reverse alphabetical order, which also makes no sense,
00:51if you want to sort the month names in order, you need to add a number to the
00:55front, and that's the reason that I have 01_January, 02_February, and 03_March.
01:01With that explained, I can create a Power View sheet.
01:04To do that, I'll click the Insert tab on the ribbon, and click Power View.
01:09Doing so creates a Power View sheet, and also adds the table that I had selected.
01:14You can resize your table inside of your Power View sheet by hovering over one
01:19of the handles, and you can see here that I have a vertical two-way arrow, so
01:23I'll just drag it down, and when I do, all of the data in the table appears.
01:28If I were to resize it again, you can see that there is a vertical scrollbar,
01:33so I can move up and down, but in this case, I want to have all of my data, and
01:37the total row, displayed.
01:39If I want to turn off the total row, I can go to the Design contextual tab on
01:43the ribbon, click Totals, and then click None.
01:46When you bring data into a Power View table, you'll notice that it works as a sum.
01:51So, for example, we have the sum of the week numbers for January for the balance
01:55department, which is 15 weeks.
01:58In other words, it counts week1 as one, week2 as two, and so on and 1+2+3+4+5 is
02:0515, and you can see that for February , which only has four weeks, 1+2+3+4 is 10,
02:11and if you look over in the Fields area, you'll see that week is treated as a
02:15sum, because it's a numerical field.
02:18For that reason, I'll go ahead and hide the Week column by clearing its checkbox.
02:23Also, just to keep the display a little bit simpler, I will clear the
02:27checkbox next to AverageSale, so that my table now just has Month,
02:32Department, and Customers.
02:33If I want to turn this table into a matrix, all I need to do is ensure it is
02:38selected, and anytime it's outlined, it has the grab handles around the side, then it
02:42is selected. Then on the Design tab, click Table, and then click Matrix.
02:47Doing so changes the objects, so that you can have columns and row headers.
02:52So, it's a little bit like a PivotTable, instead of an Excel table, which is
02:56column based; you can have both row and column headers, as in a PivotTable,
03:01versus an Excel table.
03:03You also notice that the interface over in the Power View Fields area changed.
03:08Now I have Tile By, which I won't talk about here;
03:10Values, which provides the values for the interior of the matrix, then I have
03:15row headers, Month and Department,
03:17and now I have a Columns area.
03:19So, I can add a field to the Columns area, so that I have a matrix, or what used
03:25to be called a crosstab in older versions of Excel.
03:28So, I'll drag down the Week field to the Columns area, and then resize the matrix,
03:35so that you can see all of the data.
03:37Now you can see that rather than using the week numbers as a sum, it's instead
03:42using the values, so you can see sales for week 1, week 2, week 3, week 4, and
03:47week 5 for January and March.
03:49So, that's how you add data to the body of a Power View sheet.
03:53You can arrange it as a table, which is strictly a column, or you can work with it
03:58in a matrix, which allows you to have both column and row headers.
Collapse this transcript
Creating a card
00:00You have several different options for how to display data in Power View, and in
00:04this movie I will show you how to create cards.
00:07I will use the Card sample file, which you can find in the Chapter11 folder of
00:12your Exercise Files archive.
00:14This workbook already has a Power View sheet inside of it,
00:17so I'll click its tab, Power View2, to display the sheet, and I'll just type
00:22a quick title for the sheet; I'll call it Sales Cards, and click outside of the title box.
00:30On the right side of the program window, I have the Power View Fields pane, and
00:34just in case the SalesSummary tables fields weren't displayed, I'll collapse the
00:39list by clicking the black downward pointing arrow, and then if I want to expand
00:44the list, I can click the right pointing white triangle or arrow, and that's what
00:49displays the fields in the SalesSummary table.
00:51Now I can start adding fields to the Fields area down here in the bottom half of the pane.
00:57So, for example, if I want to add Department as my first level, I can add it, and
01:02doing so creates a table inside of the Power View sheet.
01:06I can change that to a card by ensuring the table is selected, and then on the
01:11Design contextual tab, click the Table button, and then click Card.
01:16Doing so changes the table to a card, and I'll resize the card control here to
01:22display its entire contents.
01:24So, basically I have a display area for each of my five departments.
01:28If I want, I can change the card style by making sure the card is selected, and
01:32again, on the Design tab, clicking the Card Style button, and then changing the
01:37Style from Card to Callout.
01:39Doing so changes the formatting of the card, so it's all a matter of preference
01:43which one you prefer.
01:45In my case, I prefer the previous style, the Card Style, so I'll click the Card
01:49Style button, and click Card.
01:51Now I can add additional fields to the cards.
01:53So, let's say that I want to display the total number of customers added to those departments.
01:58For that, I'll just drag the Customers field below Department in the Fields box
02:02at the bottom, and I'll resize the card control.
02:06Now you can see that I have the number of customers for each of my fields.
02:11So, I have one for Balance, Dance, Play, Sport, and Work.
02:14If I want to format the text, such as by making it larger, I can click any text
02:20box that I want, and you can see that the customers number is selected, and then
02:26in the Text group, click the Increase Font Size button.
02:29Then if I want, I can resize the card control by dragging any of its grab handles,
02:35or I can make it smaller.
02:37So, for example, if I wanted to make it very short, and only display one card at a
02:41time, I can do that.
02:43If you're building a dashboard out of Power View, then you'll probably want to
02:47get as many items as you can on to the page, at least reasonably, and that means
02:52that resizing a control, such as I've done here with the card control, wouldn't be unreasonable.
02:57When there are more items in a control than can be displayed, you'll get a
03:01vertical or horizontal scrollbar. So, here I have a vertical scrollbar, and if I
03:05click the down arrow, I can scroll down, and each click takes me down to another
03:11department, and clicking the up arrow does the same thing, going up.
03:15That's how you add a card to a Power View sheet in Excel 2013.
03:20Cards show values in a small space, and allow you to focus on exactly the
03:24data that you want.
03:26If you want to display more than one value at a time, you can always resize
03:29the control.
Collapse this transcript
Creating a tile
00:00When you're ready to summarize your data in Power View, you can use a number
00:04of different controls.
00:05In this movie, I will show you how to use tiles.
00:08There are two separate types: a tab strip, and a flow tile. I will use the
00:13Tiles sample workbook, which you can find in the Chapter11 folder of your
00:17Exercise Files archive.
00:19To move over to Power View, I'll click the Power View2 sheet at the bottom of the workbook.
00:24Doing so switches us over to Power View.
00:27Now in the Power View Fields pane, I can add fields from the SaleSummary
00:32table to the Fields area.
00:34To do that, I'll click the expand control next to the SaleSummary table name,
00:39and now I can add a field to the Fields area, and I'll start with Department.
00:44Adding that field creates a table in the body of the Power View sheet.
00:47If for some reason you can't drag the field header to the Fields area, then
00:52check the box next to its field to add it.
00:54Now, with the Table selected -- I can tell it's selected, because I can see its outline --
00:58on the Design tab, I'll click the Tiles button.
01:01Doing so displays this data as a series of tiles, and when I hover the mouse
01:07pointer over the edge of the control, its edges and grab handles appear.
01:11So, I'll just go ahead and resize it, so that I can see Balance, Dance, and Play.
01:18Now I can add more fields to the control by adding those fields to the Fields area.
01:23So, I'll drop down Month by dragging it from the Fields area to the Fields box,
01:29and then I'll drag down Customers.
01:32And as before, if you can't drag the Field header down to the Fields area, check
01:36the box next to its name to add it to the Fields area.
01:39Doing so creates a tab strip that displays the department, also shown here, and
01:46the month, and the number of customers.
01:48If I resize the control vertically by grabbing the center handle for the entire
01:54tab strip, I can drag it down, and see all of my data, so now I can see the
02:00department, the individual months, and the number of customers, plus the total.
02:03I can display a different department by clicking its name.
02:06So, if I click Dance, I switch to the Dance department, Play to the Play
02:11department; I can also scroll within the tab by clicking these scroll buttons, so
02:15that displays Sport, and one more time to display Work, and going to the left, it's
02:20just a matter of clicking the triangle at the other end of the tab strip.
02:24I can change the tile's type by clicking the tab control, and then again on the
02:29Diesgn tab, clicking the Tile Type button, and instead of Tab Strip, click Tile
02:35Flow, and again, I'll resize the control, just so I can see its entire contents.
02:40You'll see that instead of having the navigation controls around the top, I now
02:45have my department names at the bottom. So, I am currently on the Play tab; if I
02:49click Sport, it changes the display. If I click Work, it changes there, and go
02:54back to Play, and if I want, I can also drag using the slider on the bottom, so I
03:00can move from Balance, to Dance, to Play, to Sport, and to Work.
03:04Using tiles to summarize and display your data allows you to shift from
03:08department to department quickly, and it also adds an interesting visual element.
03:12Whether you use a Tab Strip tile or a Tile Flow tile is up to you, and is a
03:17matter of aesthetics.
Collapse this transcript
Filtering Power View objects
00:00When you summarize data visually using Power View, you might want to limit the
00:04data that appears on your Power View sheet.
00:07In this movie, I will show you how to limit the data that appears by creating filters.
00:12I will use the Filter sample workbook, which you can find in the Chapter11 folder
00:16of your Exercise Files archive.
00:19This workbook already has a Power View sheet in it, so I'll click the Power
00:23View2 sheet tab on the Tab bar, and doing so displays the Power View sheet.
00:30This sheet contains a table, and it shows three fields;
00:34Department, Month, and the number of Customers for that month.
00:37If I want to limit the data that appears in Power View, then I can drag a field
00:41from the Power View Fields pane to the Filters area.
00:45So, let's say that I want to filter by month.
00:47Then I would just drag the Month field to the Filters area, and doing so displays
00:53the Filters interface for that field.
00:55I have a series of checkboxes, which are like a selection filter in
00:58normal PivotTables.
01:00So, if I want to display only values for January, I can check that box.
01:04If I want to show for both January and March, I can also check the 03_March box.
01:10If I want to remove the filter, and display all values, then I can uncheck the
01:16All box, so that all of the checkboxes are clear.
01:20I can also create an advanced filter.
01:22To do that, I click the Advanced Filter button, which is here, and doing so
01:27displays the Filters interface, so that I have a little bit more control.
01:31It's a lot like the advanced filter dialog box that you find in the normal Excel interface.
01:36So, for example, I can create my comparison rule, so I can show items for
01:40which the value contains a certain string, doesn't contain, starts with,
01:44doesn't start with, and so on.
01:46So, let's say, for example, that I want to stay with contains, so I'll check it, and
01:50I only want to display months that end in a-r-y, so January and February.
01:55I have contains as my rule, so I'll type a-r-y, and then at the bottom, click Apply Filter.
02:02Now, through what, I admit, is a fairly contrived example, I only see results for
02:06January and February.
02:08I can also create compound filters that have two conditions.
02:11So, for example, if I want two things to be true, then I can use an And condition,
02:16or create an And rule.
02:18On the other hand, if I want only one or both rules to be met, then I can click
02:24Or. In this case, I'll stay with And,
02:27and I'll create another contains rule.
02:29So, let's say that I'm only interested in months that contain a-r-y, and also
02:34contain the letter f. When I click Apply Filter, Power View limits the data in
02:39my table, so it only displays the month of February, which is the only month with
02:44a name that contains both the letter f, and the letters a-r-y.
02:49If I were to change this to an Or rule by clicking Or, and then clicking Apply
02:53Filter, I'd see the months of January and February, because January contains
02:58a-r-y, and even though it doesn't contain the letter f, the rule still holds.
03:03If you want to clear a filter without removing it, then you can click the Clear
03:08Filter button, and you retain the controls here.
03:12If you want to switch from the advanced filter mode to the regular filter mode,
03:16what I call selection mode, then you can click the List Filter mode button, and
03:21if you want to remove the filter field entirely, you can click the Delete Filter button.
03:26And that's how you limit the data that appears inside of your controls in
03:29Power View.
Collapse this transcript
Formatting Power View objects
00:00When you add items to a Power View sheet, Excel applies default formatting.
00:05In this movie, I will show you how to change the formatting of the elements that
00:09you add to your Power View sheets.
00:11I will use the Format sample file, which you can find in the Chapter11 folder of
00:16your Exercise Files archive.
00:18This workbook already contains a Power View sheet, so I'll click the Power View
00:23sheet tab to display it.
00:25This is a fairly simple sheet. It only displays a card control, and a title, and I
00:31haven't added any text to the title yet, so I'll go ahead and click to add the
00:36title, and in this case, I'll make it Data Formatting, and click to the side.
00:42I can format the text in the text control by selecting it, and then on the Text
00:47tab, I can change Alignment, and I can also change the Font, and Font Size, plus
00:53Bold face, Italic, and Underline.
00:55So, to change the Alignment, I can align it to the center by clicking the
01:00Align Text Center button.
01:01I can also change the font, for example, changing from Segoe UI Light to Arial
01:07Black, and if I want, I can underline the text.
01:10I could do similar things for the card control.
01:12If I click the card control, now I can use the controls on the Power View tab of
01:17the ribbon to change its theme; that is, this color scheme.
01:21So, for example, if I scroll down to the bottom, or near the bottom, and click the
01:25Elemental theme, doing so changes the font, the color, and also any effects
01:30that are applied to it.
01:31I can also use controls here. For example, if I want to change the font of the
01:36Department field, then I can click it, click the Font, and then I'll change it to Calibri.
01:43If I want to resize a control, I can do that by grabbing and dragging one of its
01:48handles, like I do here for the card.
01:50And if I make the card smaller, then it needs to be to display all of its
01:55contents, then you'll see a scrollbar here on the side.
01:58You can size it horizontally as well.
02:01You can also add other visual elements; for example, a text box.
02:05For that, you just click Text Box, and one appears, and now you can add
02:09any additional text.
02:10So say, for example, Data current as of 3/14/2013, and like any other control, you
02:19can use the handles to resize it.
02:21And clicking outside of the control returns you to the main Power View tab on the ribbon.
02:26You can also add pictures to a Power View sheet by clicking the Picture button
02:30here; that allows you to add an individual photo.
02:33It's very similar to what you do in any of the other Office programs, including
02:37Excel, so I won't go into detail here.
02:39Those are the basics of changing the formatting of your items within a Power View sheet.
02:45You don't have all of the flexibility that you have in the main Excel program,
02:49but you can make things look the way you want them to.
Collapse this transcript
12. Visualizing Power View Data Using Charts and Maps
Creating a column or bar chart
00:00After you add a table to a Power View sheet, you can summarize that table's data
00:05by creating a chart,
00:06and in this movie, I will show you how to create and work with both column and bar charts.
00:12I will use as my sample file the ColumnAndBar workbook, which you can find in the
00:17Chapter12 folder of your Exercise Files archive.
00:20I've displayed the Power View2 sheet, which contains a Power View sheet and a table.
00:27To create a chart based on this table, I'll click anywhere in the body of the
00:30table, and then click the Design tab, and in the Switch Visualization area, I
00:36can select the type of chart that I want to create, and in this case, I will
00:40click a Column Chart.
00:41I have three options: Clustered Column, Stacked Column, and 100% Stacked Column.
00:47The most common version is the Clustered Column, so I'll go ahead and click that
00:51to show you what the chart looks like, and I'll resize it, so it's more visible.
00:55You can see that Power View created the chart with the department along the
01:00bottom, sales levels along the top, and each one of the bars represents a month;
01:05blue for January, red for February, and orange for March.
01:09The order of the fields in the Power View Fields pane also changed. So, for
01:12example, you can see that the Values area stayed the same, but we now have an
01:18Axis, which is Department, and Legend, which is Month.
01:21If I drag the Month field to the Axis area, doing so creates a dual axis.
01:26I have Month and Department together, and what I'll do now is drag Department
01:30down to Legend, and doing so gives me three horizontal divisions, one for each
01:36of the three months, and now each of the vertical bars or columns represents a department.
01:41I can resize a chart, like any other object in Power View.
01:44I can just grab one of the handles; in this case, I'll grab the bottom right
01:47corner, and I can resize it, and you see that the contents of the chart object
01:52are resized. If I go vertically, it looks like that,;if I go horizontally, it looks like that.
01:58As I get to the horizontal limit, in other words, where Power View doesn't display
02:02everything within the body of the object, then you can see that first thing it
02:07get scrunched up on the horizontal axis, and then the legend values, if the
02:12legend is to the right, start to be grayed out at the edges.
02:16So, Balance, Dance, and so on, and I'll just move it out, so that everything fits
02:21the way it did before, with a little bit of room to spare.
02:24If I want to change the charts formatting, while it's selected, I can click the
02:28Layout contextual tab, and I can use the controls here to affect different
02:33parts of the chart.
02:34For example, if I want, I can hide or display the chart title. I can also change
02:40the presence or position of the legend.
02:44So, for example, if I want the legend to appear at the top, I can do that, or I can
02:48also select to have it appear at the bottom.
02:51You can play with those different variations to see which one you like best.
02:55You can also add data labels.
02:57So, for example, if you want to see the exact value for a particular column inside
03:01of this chart, I could click, say, Center.
03:03I don't find data labels to be very useful for Power View charts, simply because
03:08I'm usually creating them for a dashboarding application, and in that case, the
03:12chart is so small, every square inch matters, so most of the time I will turn
03:17data labels off by clicking None.
03:19If you want to display this data using a bar chart, which is a horizontal version
03:23of a column chart, while the chart is selected, click Design, and then in the
03:28Switch Visualization area, click Bar Chart, and then click the type that you want.
03:33In this case, I'll make it Clustered Bar.
03:34When I do, you can see that instead of having a column chart I now have a
03:39clustered bar chart which runs horizontally.
03:42I personally prefer the column chart, so I'll switch back,
03:45but as with everything, it's a matter of taste.
Collapse this transcript
Creating a pie chart
00:00If you have a Power View data set that summarizes data by category, such as
00:05number of new customers acquired by department, then you can summarize the
00:09data in a pie chart.
00:10In this movie, I will show you how to create a pie chart in Power View for Excel 2013.
00:15I will use the Pie sample workbook, which you can find in the Chapter12 folder of
00:20your Exercise Files archive.
00:22I've already displayed the Power View2 sheet, which contains my Power View page.
00:28Now I can click the table that contains the data I want to summarize, and then I
00:33can click the Design tab, click the Other Chart button, and click Pie.
00:38Doing so creates a pie chart that I will resize, so it's easier for you to see.
00:44This pie chart has five wedges, and they are identified by color; one for each department.
00:49I can format the chart while it is selected by clicking the Layout tab on the
00:53ribbon, and then I can use the controls in the Legend group to control where the
00:58legend appears, if at all, and the Title group to indicate the chart's title;
01:04either take it away by clicking None, or put Above Chart to have it displayed
01:08above chart, as it is here.
01:10You can also create subslices within your pie chart.
01:14To do that, you drag a field to the Slices area, which is below the Color area in
01:20the Power View Fields pane.
01:21So, for example, let's say that I want to create a subslice for each month.
01:25To do that, I would drag Month to the Slices area. You can probably see that
01:31there are white whites inside each wedge in the body of a chart.
01:35If I hover my mouse pointer over particular slice within a wedge, then I get the
01:39department, the month, and the number of customers for that particular segment.
01:43I can do the same thing for the second segment for February, and the third for
01:47March, and it's the same for each of the other departments.
01:51And that's how you create a pie chart in Power View.
01:54I think you'll find that adding slices to each wedge of your pie chart allows
01:59you to move through your data more quickly, and also to explain in a flowing,
02:03fluid manner, as opposed to simply pointing at a static chart.
Collapse this transcript
Creating a line chart
00:00When you have data that is based on a time series, such as the number of new
00:04customers acquired over a series of months, then you can represent that data in
00:09Power View using a line chart.
00:11In this movie, I will use the Line sample file to show you how to create line
00:15charts from an existing table in Power View for Excel 2013.
00:19This table has three columns: Department, Month, and Customers, and my goal is to
00:25create a line chart that summarizes that data over time.
00:29To do that, I make sure the table is selected. I can see the outline, so I know it is.
00:34And then on the Design contextual tab of the ribbon, I click Other Chart, and then click Line.
00:40And when I do, Power View creates a line chart that's about the same width as
00:45the table was before, and I'll drag the bottom right corner handle to make it
00:50larger, and easier to see.
00:51This chart's current configuration doesn't make sense for a line chart, and the
00:56reason is that the Month field -- January, February, and March -- is used to provide
01:00values for each of the lines, and the Departments --
01:03Balance, Dance, Play, Sport, and Work -- are along the horizontal axis, which is
01:08usually used for time.
01:09So, all I need to do is switch them to make the chart make a little bit more sense.
01:13I can do that over in the Power View Fields area. I will drag Month up to
01:18the Axis area below Department, and that gives me a summary of monthly sales by department.
01:24Now I can drag Department down to the Legend area, and this gives me a graph with the months,
01:30January, February and March, along the horizontal axis, and five lines, one each
01:34for the Balance, Dance, Play, Sport, and Work departments.
01:37You can see that four of the five departments follow the same pattern, with a
01:42large number of new customers in January, a significant falloff in February, and
01:47an increase from February in March.
01:50The Work department, represented by the purple line, follows a different pattern.
01:53It shows growth from a low in January, to about 1182 new customers in February,
02:00and a similar increase in March.
02:03If I want to change the formatting of a chart, I can do so by clicking the Layout tab.
02:08The Layout tab gives me tools to change the Title, whether or not it appears,
02:12the Legend whether and where it appears, and also Data Labels.
02:17So, for example, if I want to add labels for each individual data point, I can do
02:22so by clicking Auto, Center, or any of the others.
02:25If I want them to go away, which I usually prefer to do, I click None.
02:29Line charts are terrific for working with time series data, so if you have sales
02:33or other data over days, months, or years, feel free to use line charts to
02:38summarize it within Power View.
Collapse this transcript
Creating a map
00:00One fun and useful aspect of Power View in Excel 2013 is its integration with
00:06Bing maps, a Microsoft mapping service.
00:09In this movie, I will show you how to use geographic data that you might have in
00:13a Power View table in a map control on your Power View sheets.
00:17I will use the Map workbook, which you can find in the Chapter12 folder of your
00:22sample files archive.
00:24This table contains a list of states, and the number of orders from each of those states.
00:29I'd like to create a map, so that I can get a visual representation of how the
00:34sales are distributed.
00:35To do that, I click the table, and then on the Design tab, I click the Map button.
00:41Doing so creates a map control on my Power View sheet.
00:45The first time you create a map inside of Power View, Excel will display a
00:50message box just above the Power View sheet, and below the ribbon, indicating that
00:54you have to enable a connection to Bing maps, so that it can geocode the data.
00:58I've already done that once, so the message didn't appear for me.
01:02If it does, all you need to do is click the Enable button, and you'll keep on working.
01:06My map appears in my Power View sheet.
01:09I can resize my map control by dragging any of the handles, and you can see that
01:14I was zooming in as I was resizing the control.
01:17To change the zoom level inside of the control, I'll just move the mouse pointer
01:21over the control, and I can either use the zoom out or zoom in buttons.
01:26So, if I zoom in, I get more detail; if I zoom out, I get less.
01:30I can also pan using the pan control here, so I can pan up, I can down, pan
01:37right, pan left, and so on.
01:39I can also control the zoom level using the scroll wheel on my mouse.
01:42So, if I scroll up, I zoom in, and if I scroll down, then I zoom out.
01:48The blue circles in each of the states indicates the relative number of orders.
01:52So, for example, California has the most by far, and a state such as Arizona had
01:57less, and Idaho had fewer still.
02:01You can work with the map control by itself
02:03if you click the pop out button at the top right corner of the control; doing so
02:08expands the map control, so it fits the entire sheet, and when you're ready to
02:13take it back to its regular size, just click the pop in button, and it returns.
02:18Maps are terrific for helping you visualize data, and this is actually my
02:22favorite feature in Power View.
02:23The integration of Bing maps with Excel 2013 gives you great new ways to
02:28summarize your data visually in Power View.
Collapse this transcript
Creating maps with multivalue series
00:00In the previous movie, I showed you how to create a map using a two column table
00:05in Power View for Excel 2013.
00:08In this movie, I will show you how to create a similar map, but this time for
00:12a three column table.
00:13I will use the MultiSeries sample file, which you can find in the Chapter12
00:17folder of your Exercise Files archive.
00:20This table contains three columns: the first is the State, the second is the
00:24Department, and the third is the number of orders for that department, for that state.
00:29So, rather than just having state names and a number of orders, this table will
00:33have that data broken down by department as well.
00:36So, let me show you what happens.
00:38First I click the table to make sure it's active, and then on the Design tab, click Map.
00:43After you click Map, the map control appears, and you can resize the control, so
00:49that everything appears within it, and you can see that stretching or resizing
00:54the control changes the zoom level.
00:56You can zoom in or out using your mouse or scroll wheel. In this case, scrolling
01:01up moves in, and scrolling out zooms out.
01:05This data collection tracks sales for five states, and the size of a circle
01:09within the border of each of those states indicates the relative amount of
01:13orders that originated from there.
01:16So, Virginia had the most, followed by West Virginia, then probably Tennessee,
01:21North Carolina, and Kentucky.
01:22And you notice that when I hover the mouse pointer over one of the pie charts,
01:27it expands, and it indicates the number of orders for a particular department.
01:33So, if I hover over the purple, for Kentucky, I see that there are 258 orders,
01:37over the blue for Balance is 80, red for Dance is 41, orange for Play is 58, and
01:44green for Sport is 176.
01:47And you can see the same thing for the other states as well.
01:50One interesting thing to note is that if you zoom out, the pie charts appear to
01:54get larger, and if you zoom in, the pie chart gets smaller.
01:57I'm not sure why that choice was made, but don't be surprised if you see it.
02:01It is acting as it's supposed to.
Collapse this transcript
Creating chart multiples
00:00Some of the data that you summarize using Power View in Excel 2013 will come
00:04from a very simple source.
00:06For example, you might have a list of sales by state, and simply display that in
00:12a chart, or perhaps within the table.
00:14It's more likely, however, that your data source will contain multiple columns, as this one does.
00:19My chart displays Department Sales by State, and that there is a value axis as well.
00:24So, I have three columns: Department, State, and Sales.
00:28In this movie, I will show you how to create multiple charts, so that you can
00:32represent each of your departments, or perhaps states, in a separate chart in
00:36your chart control.
00:37I will use the Multiples sample file, which you can find in the Chapter12 folder
00:42of your Exercise Files archive.
00:44So again, I am representing this data source in a single chart,
00:48but if I want, I can create multiple charts,
00:50and to do that, I will use the controls in the Power View Fields pane at the
00:55right edge of the program window.
00:56I am going to drag the border between the top and bottom areas of the Power View
01:00Fields pane, so that you can see what I'm doing.
01:03Below the Legend area, there are two areas called Multiples.
01:07The first is Vertical Multiples, and the second is Horizontal Multiples.
01:11You'll see the distinction between the two of them in a moment.
01:14Let's say that I want to create a separate chart for each department.
01:18Then I can drag the Department field from the Legend area to either of the two multiples;
01:24in this case, let's make it Vertical.
01:25Doing so creates separate charts for each of the departments.
01:29You can see that I have Balance, Dance, Play, Work, and Sport represented
01:34in separate charts.
01:36If I wanted to create horizontal multiples, then I could drag Department to
01:40the Horizontal area, and doing so displays each of the states and each of the
01:44departments in a separate chart, and because the five charts won't fit on a
01:49single screen, I can use the horizontal scrollbar to move back and forth, so I
01:53see Work, Sport, and Play, and if I go back to the other side, I see Balance, Dance, and Play.
01:59If you want, you can also create both horizontal and vertical multiples, so if I
02:04drag the State field from the Axis area to the Vertical Mulitples area,
02:08then I would get a separate chart for each Department, for each State.
02:12And I can scroll up and down to see the different states, and side to side to see
02:17the various departments.
02:18Most of the time, however, I would probably stay with a single set of multiples,
02:23such as we have here.
02:24Creating multiple charts is very useful, but be aware that they do take up space
02:28within your Power View sheets.
02:30If you're creating a dashboard, it might be useful to create multiples for a
02:34moment, and then return the control to its original configuration.
Collapse this transcript
Conclusion
Next steps
00:00Thanks again for joining me in Excel 2013: Pivot Tables in Depth.
00:04I hope you've learned a lot, and that you've been able to use PivotTables to
00:08enhance your business analysis.
00:10I did want to recommend two other resources that you can use to further your
00:13education on PivotTables.
00:15The first is a book by Bill Jelen and Michael Alexander called Excel 2013 Pivot
00:20Table Data Crunching.
00:21It covers many of the same topics that I cover in this course, but it gives you
00:25a different perspective.
00:26The second book I recommend deals with PowerPivot, and it's called DAX Formulas
00:31for PowerPivot by Rob Collie.
00:33Rob is a former Microsoft employee, he was on the PowerPivot team, and now he is
00:38a Microsoft MVP for Excel, and he does his own consulting, and also he's an author,
00:43as you can see by the book.
00:45He does terrific work, he has great insights, and if you want to work with
00:49PowerPivot seriously, that's the book to have.
00:51Thanks again, and best of luck!
Collapse this transcript


Suggested courses to watch next:

Managing and Analyzing Data in Excel (1h 32m)
Dennis Taylor

Setting Up a Database in Excel (43m 27s)
Dennis Taylor


Excel 2013 Power Shortcuts (3h 16m)
Curt Frye

Office 2013 New Features (2h 31m)
David Rivers


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,069 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked