Master Excel Pivot Tables, Excel Slicers and Interactive Excel Dashboards - FULL COURSE!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
- Good day guys and girls, I'm John Michaloudis here from MyExcelOnline.com and I want to welcome you in this free Excel Pivot Table course. Now this is a massive course, it is over 10 hours long, and it has 230 short and precise tutorials. So you can learn Excel and Pivot Tables straight away. So you can become more efficient, more skillful, gain confidence, you can get the promotions and pay rises that you deserve. Now, I used to sell this course here, this individual course here, over at my website for $300. And I've decide to put these on the issue platform for free. Because I know a lot of people need to learn Excel and there are not that many good tutorials or courses on YouTube. So this is free, this is for you because a lot of people don't have money to spend on online courses and I understand that. So this course is for you and it's going to make you much, much better at Excel. Now in this course you're gonna learn about Pivot Tables. And with Pivot Table, you can analyze thousands of rows of data, we drag and drop ease. So when you drag and drop into your Pivot Table, it's gonna create a report that analyzes your data. And with that data, you can make some awesome reports and you can make some great business decisions and also it's gonna give you the power that you need to take your Excel skills to the next level. In this course, we're going to talk about the following topics. First of all, we're gonna talk about how to customize your Pivot Table in a different layout. Then we're gonna go into the summarize values by, and also show values as calculations. Next, we're gonna go into grouping your data, then into sorting, then we're gonna go into filtering. After that we're gonna show you slicers which is an awesome feature that was introduced in Excel 2010. Then we'll go into calculated fields and items. Then we'll dive into Pivot Charts, we're gonna show you a bit of conditional formatting, with Pivot Tables. Also, we're gonna show you the GETPIVOTDATA formula. Then we're gonna into Pivot Tables and Macros. Also, there are a bonus videos with some awesome tutorials there, and we're gonna go through the new Excel Pivot Table features that were introduced in Excel 2013, in Excel 2016 and Excel 2019 and Office 365. So 230 short and precise free guide tutorials, 10 hours of Excel training free for you. Now, this course is for any Excel level. Whether your a beginner, intermediate, or you think you're an advanced Excel user, this course is for you. Whether you're young, you're old, you're unemployed, this course is for you. Once you learn Excel Pivot Tables, your Excel skills are going to skyrocket. Now in the description area below, there's a link to download all 230 tutorials that I'll through in this course. And each tutorial is in a start and finish format. So you need to download it so you can practice along with me as I show you. Now, the more you practice, the better we get. That's with anything in life. So click on the button below, download the workbooks and let's get straight into it. Now, finally, if you have any doubts any questions about any video tutorials, use the comments area below. Put in your question and I will be manning the comments and replying back to you with an answer. Also give this video a thumbs up. The more thumbs up we get, the more videos that we're gonna create for you in YouTube. So go ahead and do that right now. And finally, after you watch this course, then we invite you to join our MyExcelOnline Academy Online course. This course here has over 1000 Excel video tutorials and covers, formulas, macros, PBI, Pivot Tables, Power BI, power query, power pivot, charts, axes. Also, we go into Microsoft Word, Microsoft PowerPoint, and also Outlook. And we also cover dashboards and heaps of more videos. Over 1000 video tutorials and if you really wanna elevate your Excel skills to the next level, we invite you to join the MyExcelOnline Academy the details are in the card that will pop up now or in the description below, click on that, but first of all, let's get into this Pivot Table course. I want you to get better at Excel and Pivot Tables, jump onto different Pivot Table areas. We've listed every tutorial in the description. So you can click the button and go directly to an area that you want to learn. And once you learn Pivot Tables, you don't have to finish all the course. You can just do different sections. Then you are gonna be ready to take your skills to the next level. And we are here, I am here, my team is here to support you in your journey to become better at Excel so you can stand out from the crowd and get the promotions and pay rises that you deserve. Now let's get into it. (upbeat music) Before you begin with a Pivot Table, you gotta arrange your data set. Now there are three rules to follow. Number one, is to have your data in a tabular format. Number two, is to make sure that there are no gaps in the data. And number three is formatting. Now here, I'll talk about tabular format. So what type of format means is that for a Pivot Table to work, you must make sure that your data is organized as a list with labeled columns, also known as tabular format. So you should have your column names on the top showing a distinct category of information. As you can see here, we have customer and going down the rows, we have the different customers. And we have products and we have information on the products. Salesperson, we have the different salespeople. And then as you can see, we go all the way up. We have order dates and so on. So let's try to do a Pivot Table by pressing Control + A to select all of our data and then going into insert and Pivot Table. And then let's put into a new worksheet and press okay. Wow, we'll get an error message. It says here, "The Pivot Table field name is not valid. To create a Pivot Table report, you must use data that is organized as a list with labeled columns." So the key data is labeled columns. Let's cancel out of here. As you can see here, our years and our quarters don't have any names. So therefore it's not gonna work. Now let's put in the names in there. Sales year and sales quarter. And once again, Control + A to select everything. Now, when you press Control + A makes sure that it gets everything. Insert, Pivot Table, new worksheet press okay. Here we go. We can start building our Pivot Table. (upbeat music) The second rule to arrange your data set is having no gaps. What that means is having no blank columns and no blank rows. The reason is that that section of your data might not get picked up when you create a Pivot Table. Now, as you can see here, we have column F that is blank and rows 11 and 22. Now let's create a Pivot Table from in here and see what happens. Let's select all, we're going to the right and all the way down. Okay, so we'll pick up everything here and go to insert and Pivot Table and press okay. We'll get an error message. It says "The Pivot Table field name is not valid. To create a Pivot Table report, you must use data that is organized as a list with the labeled columns." Press okay, and cancel to get out of there. Well, in here it's picked up that we don't have a labeled column so obviously we gotta delete it. Right-click and delete. Now we have to delete row 11 and 22. Now imagine you had lots of rows in your data set that were blank. And I'll show you a quick way where you can delete all those blank rows. Now, once again, let's highlight all your data set and then go to the home tab and find and select, go to special. In here, we go to special dialog box and choose blanks and press okay. So what it does is within your selection, it chooses all the blanks. So another way in here, what we can do is, we can hover over here and right-click and delete from there. Or instead of doing that, let's press a shortcut, which is Control + the minus key. Now in here, we want to delete the entire row. So all the row gets shifted up. Okay. And then press okay, there you go. Now, what we gonna is press Control + A, make sure that it picks up everything. OKGo to insert, Pivot Table and press okay. (upbeat music) To have a great data set, you got to make sure that your formatting is in order. This is because it avoids inaccurate reports when creating a Pivot Table. So it is essential to format each column that contains numbers and each column that contains dates. Now, for example, our sales column here, we've got to make sure that it's in a number format. To do this, we just click on the column F and then from the number group, the dropdown box, we can choose a number from in here and press okay. We're gonna also put in a comma and then give it to the decimal places. Now in our older date here, we have numbers as well. Now Excel treats dates as a sequential number with the first of the first 1900 being day one. Now does this in order to perform arithmetic operations. Now this information here doesn't make much sense to us. So we need to convert that to date. To do this, let's click on column eight and once again, from the dropdown arrow, let's choose short date. That's much better. So now with all of our information in the right format, we can begin with our Pivot Table. (upbeat music) Excel Tables are a new feature from Excel 2007 and onwards and they're great. You should always use them. The best feature is that it has a structured referencing. This means that as your data expands with more rows or columns being added, then the table automatically gets updated, as Excel refers to the table as a whole. Now when creating a Pivot Table and your data changes in a table, to update your Pivot Table, you only need to refresh and avoid having to update your data source. Now to insert a table, first, you got to click anywhere in your data source and press insert and table, and Excel is smart enough to detect your data source. Now you could scroll down to make sure that it's inserted. Another way is to press Control + T which is a shortcut. Now this dialog box says create table. Where is the data for your table? So it's taken out data and in here check it if your table has headers. And then press okay. So now it creates an Excel table. Now, if we step out of it and then step back in, once you're in the table, you get the table tools option. And in here you have the design and different styles. So you have all these different styles that you can choose. Now also you can put in a total row, which means that from in here, you go different ways to summarize your data. So you can put in some in there. Now, if wanna expand your data, what you got to do is just grab the edge and just drag it down, or you can just go anywhere in here, right-click and insert. Let's go back up again. Now you can also change the name of the table from in here. It's called table1 but we can change it to my table. And once you're in here, you can summarize the Pivot Table or you can export to SharePoint list. Another thing is you have your different filters in here. Now Excel tables are a great feature, and whenever you're having data, you should always use them. Because they're gonna save you lots of time in the end. (upbeat music) We have some data information here, and we're gonna put it into a Pivot Table to see what the results are gonna give us. Go to insert and Pivot Table and let's put it here next to our data. Now let's get our data and put in our row labels and then our data into our values to get the count. So what it says is we have three separate values for IN123C104Z, but that can't be right. This here should be equal to three. Now there's a problem in here, and it usually happens when you're importing data from external data sources. Now, what happens is you may get some leading or trailing spaces. Now let's have a look in there and press F2. We can see that's fine. Let's go down and press F2, here we have a trailing space. And going there and press F2 here we have two trailing spaces. So the Pivot Table treats these values as separate so therefore it gives us a different count. Now I'll show you a way to clean up your data before you create a Pivot Table. One ways to use the trim function. So press trim and click in there, and then it trims all your values like that and you can just double-click and you have the trim values there. Now another way is to use an add-in from Abelbeats.com, which is called the Trim Spaces. And that's one that I use all the time. All you gotta do is just press a button and then it trims all your selected area. Now I'll show you another way where you can trim your data, highlight your data like this, the whole column, go to data and text to columns, and then choose delimited and press next. And in here, make sure that the space is checked and then press finish. So let's go back in here and have a look at second value. Press F2, you see that it's cleaned the space and in there again it's cleaned that. So let's go in our Pivot Table, right-click and refresh, And now you see our data is being cleaned up and it counts it correctly. (upbeat music) So we have our data set here and it's in a table, and we know that because when we click in our data source, we get the table tools option in there. And we can see there that the table name is table 13. Now to insert the Pivot Table, on the table tools tab, design, we can choose, summarize with Pivot Table, or we can actually go to insert tab and then Pivot Table like this. Now Excel is smart enough and it selects the table 13, so you'll see that it's all selected all the way to the bottom and we scroll to the right. Now, it tells us, "Where do we want to put a Pivot Table?" Now we can choose a new worksheet or we can actually put it into an existing worksheet. So we can actually go somewhere in here and put our Pivot Table there. Now, because we don't have that much space, we'll put it into a new worksheet and press okay. So you see it's created a new worksheet called sheet one, and the Pivot Table is in here. Now if we step out of the Pivot Table, We don't see the Pivot Table tools tab. We got to actually step into it to activate the Pivot Table tools and in here we can choose options and design. Now in the options we have the Pivot Table name, which is Pivot Table number one, and we can change that to customize that and call it my Pivot Table. And you can see here, it changes the name as well. On the right-hand side we have our Pivot Table field list, and we have all the column names here that were in our data source. Now if you can't see this, then under Pivot Table tools tab options, you can activate it and disactivate it by the field list button there. Now our Pivot Table is gonna look similar to this design here. Now let's go over to the right-hand side and I'll show you how to create a Pivot Table. So the Pivot Table is gonna look similar to the design that we've just brought over here. The fields that get dropped into the report filter, will be shown on the top left-hand corner of the Pivot Table, fields that get dropped into the column area, will be shown on the horizontal area of the Pivot Table. Fields that get dropped into the row labels area will be shown on the left-hand side of the Pivot Table, fields that get dropped into the values area will be shown into the middle part of the Pivot Table. Now let's go in and drop some fields into the respective areas. Now we can just hover over the name, grab it and drop it in there, just like that. And you can see on the left-hand side, the Pivot Table is gonna be built. Let's get salespersons into the row labels. Let's get sales here in the column labels and finally, let's get the sales into the values area. And you can see we'll get the live preview of our Pivot Table and then we have it, we've created a quick Pivot Table with just a few clicks. And as you can see, the design is similar to the one that we saw before. (upbeat music) When you click into a Pivot Table, just like I've done now, and now you're onto the field list, 'cause there's a couple of ways where you can bring it up. One of them is to go to the Pivot Table tools tab, under options choose the field list button. Here you can show it or hide it. And let's get out of this. Another way is to click anywhere into the Pivot Table, right-click, and the last option is show field list. Now we can do a couple of things in here. We can actually move or resize the field list, from the drop-down arrow we can choose move and then with the mouse, just click and drag to the left and we can move it out here. Let's move it back in. With your mouse again, move it all the way as if you're throwing it out of the screen and the locks back in. The other option is to resize so you can resize it from in here. And then we can close it. Let's bring it up again. Now from this dropdown box, we have five different views that we can see the field listing. The first is that field session and areas sessions stacked which is a default, then we have the field section and area section side-by-side. Then we have the field section only, then the area section only two by two, and then area section only one by four. Now I personally like the default view. (upbeat music) In our Pivot Table field list, on the top half, we have our fields or column headings. If we go back to our data, you can see these column headings from customer products, salesperson, sales region, order date, sales, sales year, sales month and sales quarter. They're all inputted into this area here. Now in the bottom half of our Pivot Table field list, we have our four different areas where we can drag and drop our fields or column headings into. Now let's talk about these. First we have out row labels. In here, you can show the unique values from the fields chosen on the left-hand side of the pivot. So here you should look to add fields that you're looking to group, for example, products, company names, locations and business units. For example, we'll take our products. Now you can actually click in the box and it will dropdown in to the row labels. And sometimes by clicking, it doesn't actually drop into the area that you want. So the best way to do it is to drag and drop. So you can drag that all the way down and you can drop it in here. When you see the little blue line underneath row labels and just let go of your mouse and you see products has been dropped into the row labels. Now on the left hand side, our Pivot Table is automatically updated, you get a live preview. So here we have our unique values that are within the products column. We have bottles, ice cubes, soft drinks and tonic. Now we can check that if we go back to our data set and go to our products and in the dropdown box, we can see that we have our four unique values in there. So these are transferred into the left-hand side of the Pivot Table. And next we have our column labels. In the column labels, you're mainly looking to show the trend of your data. For example, periods, phases, time, months, and years. So in that case, we can go and grab our sales here and drag it all the way into the column label area. And as you can see on the top side of the pivot, we have our unique years, which are 2012, 2013 and 2014. Now in the values area, this is where you put fields that you want to calculate or quantify. The different type of calculations that you can use to summarize your data include sum for sales, count for number of units, average for prices, and maximum or minimum for your values. So in here, we're gonna grab our sales and drag and drop in there. As you can see on the left-hand side, we have our sum of sales in there. So what it says in here is that in 2012, we sold $2,754,838 worth of bottles. So what it's done here, it summarized, so it summarized all the sales and put into a neat little table here where you can quickly analyze it within a few seconds. Now, finally, we have a report filter. This is an optional filter. Here you can put fields that you want to drill down on and focus on. For example, regions, periods, business units and staff. So for example, we're gonna grab our salesperson and drop them in there and sales region and drop them in there. As you can see on the left-hand side, we have our report filters with a dropdown box and we can see the unique values that make up the salesperson, and sales region, we can also see the unique fellows in there. Now, Pivot Table is very powerful because you can chop and change until you get the outcome that you like, that your boss like, or that your business is looking for. Now, if we want to move products from row labels to columns, you can do that. You just grab, drag and drop in the columns and then grab the slaes year and put into the row labels. As you can see on the left-hand side now we have our years and on the top column cycle, we have our products. So you can analyze the information in a different way. It depends on what you're looking for. If you don't get it right the first time, don't worry, with trial and error, you will end up with your desired look. Now Pivot Tables are that easy. (upbeat music) So that you're analyzing your data and you come across a strange value, and it doesn't add up. For example, in 2012, for bottles, we have $2.7 million, but it should be more like 3 million. Or you can actually drill down and order that. To do that, you just click in the sale and then double-click and you get a snapshot of your data set, only for bottles and 2012. So in here you can go into the sales and see where the error was. Now, if you wanna make any changes, this is not the place to do it. You need to do it in your data set. Now let's get out of here, Control + Z to get out and press the delete. So any changes you got to make has to be in your data set. And then you got to make sure that when you're in your Pivot Table, that you refresh it by right-clicking and refresh to update any changes that you made in your data set. And you can also drill down into the grand totals, so say you wanna look at 2013, you just double-click and it gives you all the values for 2013. And you can begin with checking your information there. And once again, Control + Z to get out and delete. (upbeat music) We have our field list here, but it's not in alphabetical order. And sometimes it can get confusing if you wanna try and find out some fields, especially if you have more than 20 different fields. Now to put this into alphabetical order, all we're gotta do is go to the options and then options, and under display at the bottom, you have the field list and you can sort from A to Z. Press that, we'll press okay, and you can see this will change to an alphabetical order. (upbeat music) You can click on any row or column label items, so we can show more fields. For example, in the row labels here, we double-click, you wanna get these show detail dialog box. And in here it says, "Choose a field containing the detail you want to show." So it has all the fields not already chosen in the row labels, so we can choose for example, sales quarter and press okay, and then we have the sales quarters in there, and as you can see the areas in here sales quarter, has also been added. And the same thing we can do in the column labels. Double click, and we can add anything from in here, Let's use sales month and press okay. (upbeat music) If you have many rows in your data source, and when you create a Pivot Table, it takes time to generate the live preview and the results, and all you can do is click here on the bottom left-hand corner, the, defer layout update. What this does is, when you drop in your information like sales in your values area, you see you don't get a live preview here. So you can just drop into whatever you like in here and then sales years up there, so you can drop whatever you like and then when you're happy with it, just press update, and then it updates it. So what it does is, it defers the layout update until you press the update button. (upbeat music) When your data changes either by your data source having its values updated or more rows or columns having been added to your data source then you need to refresh your Pivot Table. The reason is that when you created your first Pivot Table, a snapshot of your data was stored in a pivot cache. A pivot cache is a snapshot of your data set and this is where your Pivot Table is created from. You don't see this pivot cache, but it runs in the background system. This attributed a copy of your data set allows for your Pivot Table to run faster when you're making changes to it. So when changes are made to your original data set then you need to refresh, so you can update the pivot cache and ultimately update your Pivot Table. (upbeat music) When your data gets updated, you need to refresh the Pivot Table to reflect the changes made in your data set. For example, if we going through our data and we go into bottles and we change the sales here to $10 million, then if we go back to our Pivot Table we see that no change has been made here. What you need to do is refresh the Pivot Table to update the values. There are two ways to do that. One of it is to click in the Pivot Table and go to the Pivot Table tools tab under options, and in the data group, press refresh. As you can see here, our bottles for 2012 have changed. Now let's press Control + Z to go back. The second way to do this is just to right-click anywhere in your Pivot Table and you have the refresh option there, you just click on there and your values get updated. (upbeat music) In this example, we have two separate Pivot Tables that were created from two distinct data sets. So our Pivot Table on their left-hand side was created from data1, which is over here. Pivot number two on the right-hand side was created from data2 in here. So now what we're gonna do is go in and change the information in each of the datasets. And we're gonna use the refresh all button to refresh both Pivot Tables simultaneously. So what we're gonna do is we're gonna update bottles in 2012, so we've highlighted that in red so we can see the change. And on our second Pivot Table, we're gonna change the value in soft drinks for 2012. So let's go to data1 first and I've highlighted this in red so we can make the change. So I wanna add in 10 million in there. And data2, let's scroll up, it's for soft drinks. So I wanna add 10 million in there as well. So let's go back to our pivots. Now, if we have multiple Pivot Tables, we can actually use the refresh all option, which is from the dropdown box and you have their refresh all and what that does, it updates both Pivot Tables simultaneously. So let's press a button and we'll see the numbers change. There you go. So as you've seen on the left here, the numbers to change the 12 million and soft drinks it's changed to 11 million. So if you have more than one Pivot Table in your workbook, then you can use a refresh all button to update those Pivot Tables simultaneously. (upbeat music) Say that in your company, you have a workbook that you and your colleagues are sharing and updating on a hourly basis or a daily basis. And you want to create a Pivot Table on your personal desktop, well, you can do that. Now in here, we have our shared data set and let's imagine that this is sitting in your company's server and everyone has access to it and they update it accordingly. So let's have a look at that. So this is a dataset that we've been using in our previous lessons. So we can get out of here and let's go into our workbook, which sits in your desktop. So we can click on that. And now here we can create our Pivot Table. So to do that, we have to go to insert and Pivot Table, and we choose the use an external data source option, and then we have to choose a connection on the bottom left-hand corner, we click on browse for more, and then we have to search for our data set, which is sitting on our imaginary server and press open. And we have a pop-up box that comes up and we'll have to select the data, which is the first one. The check pop here says that the first row of data contains column headers, and that's correct, and we can press okay. Let's create a Pivot Table. Let's put in our products on the row labels, our sales in the values and our sales here in the column labels. So there you go. You have created your Pivot Table from an external data source. Now let's save this and we can get out of it. And let's go back into our shared dataset, which is my server, and let's start making some changes. So imagine that your colleagues are making changes to this data set on a daily basis. So let's put in some fictitious numbers in there. And we can just... Okay, so we have that, so we can get out of that. And imagine the next morning you come into work and you're having this workbook and it hasn't been refreshed. Well, there's a couple of ways that you can update it. You can right-click and refresh, and that will get updated as you've seen there. Let's Control + Z to get out of that. Now, another way that you can a refresh it is by clicking on the connection properties under refresh, and we get this connection properties pop-up box, and we have a few options here. We can actually refresh every X number of minutes. So let's just refresh after one minute and press okay and we'll see what happens. Well, there you go. The updates have been made. So this is a great feature to have. So every X number of minutes, depending on the default that you put on there, your personal Pivot Table will get updated. So we can go back in here and change that again, under condition properties, we can uncheck that. And let's check the refresh data when opening the file. So what that means is when you open your personal workbook, that the Pivot Table will get refreshed automatically you don't need to do anything. So let's save this and we'll get out of there. And let's go back to our shared data set which sits in our imaginary company server. And let's imagine that more changes have been made during the day. Well, these changes have been cleared out and we can save there, and we can get out. And let's go back into your personal workbook and look at this. It has refreshed automatically, the information from your external data source without you having to do anything. This is a great feature because sometimes you can come into your work in the morning, open your Pivot Table without refreshing, it happens. And this is a great feature to have so it's automatically it gets updated without you having to do anything. Now, the last refresh control in here is enabled background refresh. Now you're only gonna use that when you're running a query in the background, which will enable you to use Excel while the query runs. Refresh every X number of minutes and refresh data when opening the file, they're the options that you'd be using when you linking your workbook to an external data source. (upbeat music) So if you're working with an access database, you can certainly export that information into an Excel workbook and pivot that information accordingly. Now we have our database here, which is a similar data set that we have been using in our previous lessons. So I have saved this database number one in my desktop. Now let's get out of here and we can open up our new workbook. So to import the access database information into a Pivot Table, we need to go into data and choose from access, and then go to my desktop where I saved my database1, double-click on that and we'll get our dialog box that says, "How do you want to view the data in our workbook?" We can view it as a table, as a Pivot Table report, as a pivot chart and Pivot Table report, so now we will choose the second option, Pivot Table report, and we'll put into our existing worksheet in here and press okay, and we'll get our Pivot Table. So now we can create our Pivot Table here, we can put our products in the row labels, sales year in the column and the sales in there. So we have our Pivot Table here. Now we can also refresh our Pivot Table, so when the exit that access database gets updated accordingly, well, we can actually refresh it automatically by pressing refresh, or we can put in a time refresh every X number of minutes, or we can also refresh the data when we opening our Excel workbook. And this was covered in lesson 1.34. So there you have it, you can insert information coming from an access database and use it inside a Pivot Table to analyze the data. (upbeat music) So we have our Pivot Table here which is referenced to a data range. We can save that by going into options, change data source, and we can see here that the range is all the way here. Now when our range gets changed by having more rows or columns into there, then we need to go into our change data source and capture the new range. So let's go in there and add in some extra information. So press Control + Down to go to the end of our data set. And let's enter some fictitious data in here. Let's press Control + D to fill there. Let's go back to the Pivot Table and go to options and change data source. As you can see here, it only goes all the way to row 577. So our extra rows that we've added in there haven't been captured in our range. So what we need to do is include all that in our Pivot Table data source. So to do that press Control + Shift + Across + Down and press okay. So as you can see here, the information now has been refreshed and included in our Pivot Table. Now that is a long way to do it. When you're using a Pivot Table, you should always have an Excel table as your referenced information. So what we're gonna do now, going to our table here and select that. So as you can see here, it's looking at it as a table as a whole. So every time we add in the extra rows or columns, then we don't need to go back into the change data source button and include the extra lines, because it's already gonna include it into these table 13. So let's have a look here, our amount is 3.2 million, and let's add in here a few extra rows or you can actually drag down. And then once again, we can copy down, we're pressing Control + D. So all we need to do now is just go back into our Pivot Table and refresh. Click at options and refresh. As you can see there, the new information has been updated. Now because Excel tables use structured referencing, then we don't need to go in and change the data source because it looks at a table as one whole data set. So you should always use Excel tables when you're doing Pivot Tables and even if you're not doing Pivot Tables, they're great for data analysis. (upbeat music) If you have many fields of reports in here, as you can see, and you wanna clear them quickly, one a quick way to clear them is to go into options and into your actions group, and under clear, choose clear filters. Now if you've been working with your Pivot Table and you don't like the look of it, and you wanna start again, but you don't want to delete your pivot cache, then you can easily do that by going into the options and clear and clear all. So what it does is it clears all your field list items in your areas, and you can start fresh again. So now you can put in your new fields into your areas, just like that, and you can do your new analysis. (upbeat music) To format a section of a Pivot Table, such as sub-totals, columns, or unique row entries, then you need to go into your Pivot Table tools tab on the options in the actions group, under select, you gonna make sure that enable selection, let's tick. As you can see there, we have the orange border around that. So now what you can do here is actually go into the sub-totals as you can see the black arrow is pointing and click there. So now we can go into our home tab and format so we can put that into red. Now, if we move our products from row labels to the column labels, then the bottles product is still gonna be formatted in red, as you can see there. So let's put that back. Now we can also format the individual row items, for example, Q1. So by right-clicking in there, we can highlight that in a different color. And once again, if we move sales quarters from row labels to column labels, then that formatting stays there. So let's move that back. Now, if we go on top of the row label and click there, then we can actually make some adjustments in there. Right-click to make those in italics. Now we can also go into our column headings and do the same thing. Let's go to the grand total, right-click, and we can put in there a border, the same thing we can do for the grand total down here, right-click and put in there a border. Now, if you're not highlight the whole Pivot Table, then all you got to go to is on the top left-hand corner, where it says sum of sales and you have the black arrow, you click on there, that's one way. The other way is going into the options tab, select an entire Pivot Table. So when you're in here, you can put in a different color if you like, or you can press delete and delete Pivot Table let's press Control + Z and get out of there. So there are many things that you can do with the options and select item to make your Pivot Table look a little bit funkier. (upbeat music) Now, if you want to move out Pivot Table to another location, we can certainly do that. All we're gotta do is click anywhere in the Pivot Table, go into the options tab and the move Pivot Table button, click on that, and now we get two options. We can either move it to a new worksheet or to an existing worksheet. So let's move it to an existing worksheet and let's choose up here, press okay. As you can see, it's moved there. Now let's move into a new worksheet and press okay. As you can see a new worksheet has been created called sheet1, and our Pivot Table has been moved from the pivot sheet into sheet1. (upbeat music) The default Pivot Table style is pretty dull looking. But luckily you have different styles where you can use and apply and make the Pivot Table look bright and beautiful. Now to activate that you need to go under your Pivot Table tools tab on the design, and you have your Pivot Table styles here. Now in the dropdown box, there are 85 different styles from light as you can see here, you get a live preview as you're scrolling through each style. And there are some nice colors and some not so nice colors. You have your medium. As you can see there, you have a few nice styles, and then you have your dark styles. And depending on what you like or what your boss is looking for, you can choose one of these 85 different styles. I personally like this style here. You can make further changes under the Pivot Table style options over here. You can put in banded rows, and also banded columns. Now you can also uncheck the row headers and also the column headers. And once again, it's up to you, whatever style you like, you choose and use that style for your Pivot Tables. So now let's customize our row headers or make it into italics. And now if say we wanna change the style to a dark style, and if you right-click in there, you've got the first option apply and clear formatting. What that means is it's gonna apply the new style and clear the italic formatting or any other formatting that you would have had in your Pivot Table. So let's click that and you can see the italics have gone. Now again, if I change this to italics and then I choose another style and right-click apply and maintain formatting, then I will maintain the italics in the row headers. Now, the other option that we have there is a duplicate. So we can actually duplicate this Pivot Table style and change the styling in there. And we're gonna talk about that in another chapter. Now, the other option is set as default. So you can set this as default and when you're creating another Pivot Table within your current workbook, then you're gonna get the same style. So let's create a quick Pivot Table here and we'll put into a new worksheet and press okay. And let's put in some values in there. As you can see, it creates the Pivot Table based on your style that you have chosen, but it's only gonna work in your current workbook. And the third option that we have when we right-click in there is add gallery to quick access toolbar. So we click on that quick access toolbar is down here, so we have the other option in there. (upbeat music) Now in the Pivot Table styles, you can create your own style. All you need to do is go under your Pivot Table styles, and then you have the option at the bottom here called new Pivot Table style, click in there, and you get this dialog box where you can name your new Pivot Table style, and you have your table elements. And here is where you can format your Pivot Table and you get a preview here. And you got 25 different elements in here, so you can start from scratch and create your own style. Now, if you'd like a style from one of these 85 predetermined styles, if you like one of them, you can just right-click and press duplicate. So what it does is it duplicates the Pivot Table and you can make changes from there. So we can rename this, I can rename it to John's Pivot Table Pivot Table1 and you have your different table elements here. Now we're gonna go to first column and we can format the first column and that relates to here. So let's put her into a great color. Now what we need to do is we don't get a live update, we actually gotta go back into the Pivot Table style and then choose our custom, which is the second one here and we got to activate it like that, to see the changes. So watch out for that. Now we can go back in and right-click in there and press on modify, so we can keep on making our modifications in there. So in our header row, we can format that into a different color, you see it's blue now, but we can make it into a different field effect. You can choose one of this. We have the color white and the color blue and the shading styles, the variance here, we can choose any one of these just to spice it up a bit. Let's choose that. Press okay. And you see, that's changed there. And let's go back again, modify, and let's go to the grand total row and format that. And we can make the grand total row black with a bold white color. As you can see there, the change has been made there in the preview. Okay. And also here now we have made that change. We can go back in there, we can see grand total row and the element formatting, what we've chosen, bold background one and where we have shaded. So now if we don't like this, we can clear up and go back to the start. Press Control + Z. Now, as I said, within modify, we have the table elements. We have 25 different elements now to change every single one of it I think is a bit over the top. So what I've done here is I've created a table of what the different elements are and where the changes will occur. So just the important ones, you don't have to go through all 25, but the main ones I've highlighted here for you to go in and play around with them when you have some spare time and you're bored. So you've got all these different styles that you can change and they're all highlighted here. (upbeat music) when you customize a Pivot Table style, you can only use it in that workbook that you created it in. Now this is a new workbook and we created a new Pivot Table. As you can see, the customized style that we created previously is not in here. Let's say you wanna bring it over in here. Well, we can do that. All we have to do is go back into our customized style that we created in our previous lesson 1.52, go to options and select the entire Pivot Table, press Control + C to copy the Pivot Table. Now let's go through our new workbook and paste the Pivot Table here, right-click and paste it in there. And what happens now is that the customized style has been embedded into this new workbook. So what we can do is click on our Pivot Table, apply the custom style, and then we can go and delete the Pivot Table that you brought over by selecting all and pressing the delete button in our keyboard. So now we have our customized style brought over into our new workbook. (upbeat music) Under Pivot Table design tab, you have more options on the left-hand side, under the layout group. And the first one is sub-totals. So in here you got the three options. The first one is, do not show sub-totals. So the sub-totals disappear. Second option is show all sub-totals at bottom of group. So you can see sub-total is at the bottom of each item. And the third option is to show all sub-totals at the top of the group up here. So depending on what you like, you can choose to have those three different options. (upbeat music) So the other option under design and layout group is the grand totals. So in here we've got four different options. The first one is off for rows and columns. So the rows and columns grand totals disappear. The second option is on for rows or columns, as you can see there, they come back on again. The third option is on for rows only, so we just have the row grand total here. And the last option is on for columns only. So you can see the grand total is down here. So you have four different options, but I like using on for rows and columns. (upbeat music) Under the report layout, you have three different ways that you can show your Pivot Table. The first one is new in Excel 2010, and it's called show in compact form. Now in this form, you can see multiple fields in one column. As you can see here, we have our products and our salesperson in our row labels. So they're all compact into column A. So if I grab sales region and bring it there, as you can see, it would just drop it into column A. So it's all compacted into one singular column. Let's take our sales region from here. And the second form is called the outline form. As you can see there, this layout separates the row fields into separate columns as you can see, we have products, we have that have salesperson and it'll drop in the sales region, it'll go into column C. So you see sales region is in column C. And the third form that we have is show in tabular form. Now this is the legacy form, and this was created many years ago. As you can see, you can still use it here, but the new compact form for me works the best. Now another feature that we have here is the repeat all item labels. And now let's go into show in outline form first, and if we choose a repeat all item labels, what it will do is it'll fill in all the gaps that we have here. And this is fantastic if you want to copy and paste this information to analyze it into another sheet. So let's put it in there. And as you can see, we have the information here and we can analyze it. We can just delete the gaps there. And we have it into a tabular format that we can use to make our analysis. And in here, I have the different layouts for you to have a look at. We'll have the compact, the outline, tabula and the outline but with repeat all item label. So you can have a look and see which format you like. (upbeat music) Now under design and the layout group we have the blank rows button here. And what it does is insert a blank line after each item, or you're gonna remove a blank line after each item. So let's insert a blank line. And as you can see there, we have a little bit more space in our Pivot Table, and it just looks a little bit more presentable. But if you don't like that, you can always switch it up. (upbeat music) For all of the old schoolers out there, that still like the 2003 version of the Pivot Tables, well you can actually bring that to life in Excel 2010 and 2013. Now to do this, you got to click anywhere in your Pivot Table, right-click and go to Pivot Table options, in display, choose the classic Pivot Table layout. Now this will enable dragging our fields into the grid just like in 2003 and press okay. Now finally, just to make it look like the 2003 version, just choose a none in the design layout. So we get this view here. So there you have it. We have our sales year there, so we can drag it and move it out there. We can get our sales month and then drag it all the way and drop it into there and it take you back to 2003. (upbeat music) The expand or collapse option allows you to drill down on specific rows or columns, or you can summarize at a higher level. Now this is located next to the item names and you can see there by the minus sign. So if we press on that, we can collapse the individualized item and click again, you can expand it. There's no way to do that, just right-click anywhere in the item name and go to expand collapse and press collapse or expand. Now, if you want to collapse all the fields all you have to do is go up to the ribbon, which is under the options tab, and you have the green plus sign there, which says expand entire field or the red minus sign, which says collapse entire field. So if you click on there, you collapse or the fields, and then the plus sign, you expand them. Another way is to go into one over the field items, right-click in there and go expand collapse and go to expand entire field or collapse entire field options. Now the salesperson don't have the minus sign next to them because of they're last and the hierarchy, as you can see there, But what you can actually do, you can actually expand them. So you can bring in more fields to analyze. So we can do that by right-clicking anywhere in the salesperson and go to expand collapse and choose expand entire field. Now you get a dialog box. So in here you have all the fields that are not part of the row labels. So you've get everything except products and salesperson. So you can bring fields into analyze. So let's bring in our sales quarter and press okay. So as you can see there, each sales quarter has been added into the individual salesperson within the products. So you get all that down there, so you can do some in-depth analysis if you like, and you can bring in more as well. Let's right-click and bring in the months, expand entire field and choose sales month and you get that in there. Now as you can see on the row labels, the sales quarter and the sales month have been added in there automatically. Now expanding and collapsing is not only for row labels, you can also do it in the column labels. So let's put in our quarters in there, as you can see our months are collapsed so we can click on the box there and expand them, or you can just do it individually into each year. And also you can right-click on the last field, which is sales quarter and expand the entire field. We'll get a pop up box and we'd get add in there our sales month. So you see sales month its gonna move from row labels to column label when we press okay. Now we can collapse everything, so click in the quarters and press a collapse, click on the years collapse, let's click in the row labels products and collapse. So you have the high level view that you can analyze where you can take a screenshot and send it to your boss, or if you want, you can actually click on individual items and drill down from there. Now on the right-hand side here, under options under the show group, you have the plus or minus buttons. You can uncheck that, but that doesn't mean that you cannot drill down. Well, you can. It just means that the plus or minus signs are not evidence. So you can use the expand and collapse buttons even though you don't see the plus or minus signs. (upbeat music) There are a few ways to move items within a Pivot Table. One way is to click in one of your items. Right-click, and you've got the move option there, and you're gonna move the ice cubes down. So move down one, or you can move that to the end. And it goes all the way to the end. Now we can bring that back to the top, just by highlighting where the box is, and you get the four point the arrows and then bring it all way to the top, that's another way. Or another way we can bring tonic from the bottom to the top is actually type it in with a keyboard. TO, then it gives us the options, tonic, and then press enter. And that gets moved up there. And the same thing we can do with our salespeople, we can type in the names. We can put in John, press enter, and John gets moved up to the top of the list, or we can bring in Homer to second place. And as you can see, he's moved in each item there as well. Now we can do the same thing in the columns. We can bring in 2014 at the start, and then 2013 and then 2012 goes to the end. So there's a couple of ways we can do that. Now we can also move the fields around. One way is to right-click, and then it says, move. And you've got the products to the right to the end, or you can actually move the products to the columns area. So let's move it to the end. So as you can see, salespeople have gone up and then the products have gone down a level, but the best way to do it is from the areas here. So you can move this around here, or if you wanna move it from row labels to the column labels, this is the best way and the quickest way to do it. Now we can also remove just by grabbing it and dragging it all the way back up there. Control + Z. Another way is from a dropdown box, you've got the remove field. And then finally we can actually right-click anywhere in there, and it says the options to remove products. So there's a few ways where you can move and remove fields and items to make your Pivot Table to your liking. (upbeat music) There's a couple of ways to show your field list. If you click in your Pivot Table, go to options and under show, choose field list, that's one way. Let's uncheck it. Another way is in your Pivot Table, right-click, and the last option is show field list. (upbeat music) If you wanna get rid of your field headers, for example, here row labels and column labels, all you gotta do is go into options, and then the last option on the right-hand side under show is called the field headers. Just uncheck that and you'll see that they go away. (upbeat music) Let's create a Pivot Table. Let's grab our products and put into our row labels, salesperson into our row labels. Our sales here into the column labels and our sales in to our values area. Whoa, what's happened here? We'll get a count of sales. I'm sure you've come across is at least once. Let's have a look in our data table. Look at this, in F2 we have a blank cell. Now Excel treats blank entries as texts, and therefore chooses to count rather than sum. So what we'll need to do is go back to our Pivot Table field list and make some changes. In our values area, count of sales, there's a down box, click on there and choose value field settings. Now in summarize value field by, we choose sum rather than count and press okay. And there you have it. Our Pivot Table is being analyzed by sum of sales. (upbeat music) There are a couple of ways to format the numbers when creating a Pivot Table. As a default format is in general format. Now the first way is to go into your values area and in the dropdown arrow, choose value field settings. And on the bottom left-hand corner, you have number format. You click on there, and you can make your changes from in there. Just cancel out of there. Another way, you can go into your options tab, and in the field settings, click on there, and then the dialog box comes up again and you can go into the number format and make your changes from there. Now I like the third option, which is click anywhere in the Pivot Table, right-click and choose value field settings. And you get the same dialog box, choose number format. And then in here you can make your changes to a number or currency and you have accounting and time. Depends on what values you're showing. Now we're showing sales. So let's go into currency and we'll put in some dollar signs there, and we'll put negative four minus signs in red and zero decimal places. Press okay, and okay. And then you have it. Your numbers have been formatted and it looks much better than it was previously. (upbeat music) One to nine feature in Pivot Tables is that the values field are named sum of sales or count of sales to distinguish them. Now, if you want to just name them total sales or sales, then you can make these changes a couple of ways. In the dropdown arrow here, choose a value field settings. And then in the custom name, you have sum of sales. You can make the changes in there. So we can actually put in there, total sales, and press okay. As you can see, the name has changed there, but in your data table, it hasn't changed there. It remained as sales. So what's happening is that it's only changed in your pivot cache and therefore you can only see it in here. Let's say that we wanna amend that name instead of total sales we wanna put in sales. Press okay. We'll get an error message. It says here, "Pivot Table field name already exists." Well, that's true because sales is already here. So a work around, is the click just after the S, and press the space bar. Now Excel recognizes that as a character, and then we can actually use that as a different name and then press okay and you have sales there. Another way we can change the field names is to click in the Pivot Table and go to options. And because we're in now sales, we get the active field as sales. We can click in there and we can see that the change that we made. And let's click on the column labels sales here. Okay, so we'll have sales here in there and we can actually go in there and change it, and let's call it financial year. And press the Enter key. And they're changed to financial year. And also, as you can see, the column label name changes into financial year as well. So there's a couple of ways to change the field names, just to make it to your liking. (upbeat music) We have our months and our sales in our Pivot Table. And we want to format to include a comma and no decimal places in our values. So what we need to do is just right-click anywhere in the values and choose number format, and then decimal place is zero, and you use the 1000 separator. So now let's grab our sales again and drop it into our values just so we can analyze something again. And look at this, our formatting doesn't maintain. Now, we'll show you how you work around to fix for this. Let's press Control + Z and go back to where we were before. And what we need to do is go into our Pivot Table tools and under options in the actions group, select entire Pivot Table, then select values. Press Control + 1 to bring in the format cells dialog box. And from in here, you can make your formatting changes. And now when we drop in our sales again, to make some further analysis, you can see the formatting has been kept. (upbeat music) We have our sales region in our row labels and our sum of sales in our values area. Let's grab our sales again and drop it into our values area. Now let's see what happens as soon as we drop it in there. We'll get the sum of values field in the column labels. Now that happens because we have more than one metric in our values area. Now let's change this to the count. And all we're gonna do now is grab the values field and move it into the row labels. And you see, we have a different view of our metrics there. And we can also grab it and move it to the top. And then we see this different view once again. (upbeat music) In this Pivot Table, our report layout is compact form. Now if I wanna change it into an outline form, but without choosing that option. And there is a way. Let's go back to show in compact form. Now under options and on the left-hand side options in layout and format tab, you have here when in compact form indent row labels. So let's move it to the right by 10 characters and press okay. And as you can see, our salespeople have moved to the right, but they're maintained in column A. So we get to feel as if we're using an outline form, but we're actually using a compact form. (upbeat music) We can also make changes to the layout of the report filter. Let's go into options, and options. And we have here display field and report filter area. Our default is down then over. And in the dropdown box, we can choose over then down. Press okay. And as you can see, our report filter is in one row. Now let's go back and choose down then over, and press okay. Now the second option here is report filter fields per column. The default is zero. You can actually change it to whatever amount you like Now let's choose two per column, and press okay. So as you can see here we have two report filters per column, and we have the third one in another column. So say we're dropping sales region into our report filter, you'll go into the second column and let's drop in customers into our report filter and it goes into our third column. So there's a couple of ways where you can play around with your report filter. (upbeat music) Sometimes you may get error values in your Pivot Table like the one shown here. With a DIV on the name. Now we're gonna fix that, click in that Pivot Table, go to options and options. Now under format, there's an option that says, for error values show. Let's tick that. And we can put anything in there. We can leave it as a blank and press okay. Or we can put in there a zero and press okay. Or we can write in there, error. So let's do that and press okay. As you can see, the changes have been made. (upbeat music) Sometimes you comes across a Pivot Table with empty cells as you can see here. We can actually change that. We can go to options and options and we'll get under format the, for empty cells show. So we tick that box and in there we can put in there a zero amount, and that feels in our Pivot Table blank cells with zero. Now, if you're an accountant or an orderor and you go to your data table, you can see that in April, we had no transactions. So something's gone wrong in there. So instead of having zero, which in accounting terms can be a credit in a debit summed up, so you can have minus 10 and plus 10, and that equals zero. But in this case, we have actually no transactions. So we can go back in there and click under options and options, or we can actually change that. Instead of saying, for empty cells show zero, we can say no transactions and press okay. And then you can make sure that there are no transactions in there rather than the zero values. (upbeat music) One of the thing that really annoys me within Pivot Tables, is that when you refresh your Pivot Table, the column widths go back to where they were previously. Now there's a way around this. Under the options tab and options, there's an option at the bottom here that says, auto-fit column widths on update. So upon a refresh it auto-fits that back to where it was previously. Well, let's uncheck this and press okay. And now all we can do, we can move our columns and how we like them. And let's refresh again. Right-click, refresh and I pressed them, they haven't moved. (upbeat music) Now say that you have a shared workbook that you and your colleague keep updated. Now say you open these shared workbook and you need to refresh the data, you would go into the options and refresh. And sometimes you may forget. Now that is usually the case when you're sharing with a colleague. So to avoid the mistake of working with Pivot Tables that haven't been refreshed, a quick tip is to go into the options tab, and under options choose the data tab and then select the refresh data when opening the file. So next time you open this file, your Pivot Table will be automatically refreshed. (upbeat music) Now to print a Pivot Table, click anywhere in the Pivot Table, and go to options, select the entire Pivot Table. And then in the page layout, print area, set print area. And go to the file, and then under print, you can see that it's in there. Now let's go back. Say that you wanted to put in a page break in here, in between the years, we just click in there and choose breaks and insert page break. We'll do the same thing for 2014. Now let's go back to print. You can see our view here. If you press right, you can see the different pages. But we don't get the titles of the Pivot Table. Now let's go back again and go into our Pivot Table, go to options, and under options and printing, there's a set print titles option there. Choose that, press okay. We'll go back to our print preview, where you can see that in each page we have the Pivot Table titles. (upbeat music) We have our sales result from 2012 to 2014 showing for each month. And in our report filters, we have our products and salesperson. And all we can do is show each salesperson's values into separate tabs. And to do this, you go on to the options tab and then under options dropdown box, choose show report filter pages. In here, you get a dialog box to choose which of the two report filters you want to show. Let's choose the salesperson and press okay. And then when we press that, you'll see at the bottom of the tab here that we get the different salespeople's names in there. See that we get Homer Simpson, Ian Wright, John Michaloudis and Michael Jackson, that show their values for each of the years. We're in Michael Jackson here hold on the Shift key and go all the way to Homer Simpson, and we grouped our sheets there. We know that because on top of the page, it shows the group in there. What we can do now, while they're grouped, we can actually make a change into one, and then every one of them will get amended as well. So you can see there, we've got these there. So you got to format each one of them. Okay, now they're still grouped, we can go to file and print. And in here, because they're grouped, we have the four different salespeople in there and we can print to PDF. So let's choose your PDF and then press print. We can call it individual salesperson reports. Press save, and it brings it up in here. We'll go to the second page, third page and fourth page. Okay, let's get out of here. And then make sure when you're back in your Pivot Table, you right-click at ungroup the sheets. So that's a quick way where you can see our report filters items on separate sheets with the filtered results. (upbeat music) Now there are different types of sub-totals that you can include in your Pivot Table. You're not only limited to a sum. For example, you can include a count of transactions, the average sales, the maximum amount, the minimum amount, the product and so on. Let me show you. What you need to do is go into your Pivot Table field list and into your row labels area, let's choose products, and then dropdown and go into field settings. And now we get our sub-totals and filters tab. Now it's set at automatic, and we can change that. Choose custom. We can click on sum, we can also click on count, on average, maximum, minimum, and we have a few other sub-totals that we can include there, but let's just include these and press okay. And look what happens. Each field item has its own sub-total for 2012, 2013 and 2014. Let's scroll down. You can see for bottles here we have the sum, count, average, maximum, minimum. The same thing for ice cubes. Same thing for soft drinks and the same thing for tonic. Now, a Pivot Table has all that information summarized in a few rows. And it's fantastic to have, if you wanna do some quick reports, quick metrics, all in one page. (upbeat music) We can summarize value fields by different calculations. Now to do that, we need to go into our Pivot Table field list and under sales, grab it, drag it and drop it again into the values area and let go. So we get a second calculation called sum of sales with the same results, but we can change that. Instead of sum, we can change that into a count. So click on the dropdown box and the value field settings, and we have a summarize the values by tab. And in here, we can summarize the value field by different types of calculations as you can see in here. Now, there are 11 different types of calculations. And now I'm gonna talk about the count calculation. So let's double-click in there. And as you can see here in our values area, we get count of sales, and in our Pivot Table report we have our count of sales. So what the count of sales does is it counts all the cells that include text numbers and error cells. Now, one thing that it doesn't include are blank cells. So watch out for that. If you have any blank cells, then it's not going to count that in there. Now let's check our numbers. So we have 48 transactions in bottles for 2012. So let's go in here. Now I've filtered it by bottles and 2012. So if we go down here and we do our count, we'll get 48. Now let's manually count this, go all the way up. And as you can see here, count, we get 48. Now, if we have any blank cells in there, then it's not going to include that in its total. So let's check that. Let's highlight a few cells and press delete to clear it. So we've cleared four cells in there. Now we'll go back to our Pivot Table and right-click and refresh to update what we've done now. And you see there, 44. Now the count calculation will include all the cells except the blank ones. (upbeat music) The average calculation is like your normal average function. What it does, it takes the totals of all the values and it divides it by the number of values. Now we use the average calculation for sales for days to complete a project, for overdue days or for accounts payable or accounts receivable days. Now to include the average calculation, we have to grab our sales and drop it into our values area. And in the dropdown triangle, choose develop your settings, and then choose the third option, average and press okay. Now, as you can see here, we have our average values. To customize the numbers, we need to go into our average of sales field and in the value field settings. And on the left hand corner, we choose a number formats, and then we can choose the number, putting zero decimal places, and we can use a separator for the thousands and press okay, and okay. So as you can see our results much neater. So we have our average sales for each of our products and each are our salesperson for their respective years, as well as their grand total down here. And then we have the average sales from 2012 to 2014, which is $55,667. Now we can also get the average for the order dates. So in our data table, we have our order date in here. So what we can do is grab the order date, drop into the values area, and then choose the average from in there, okay? So now what we'll need to do is to change the format in to a date, and then press okay and okay again. Let's make this a little bit bigger. So we have the average date that the order gets placed. For bottles, for ice cubes, soft drinks, tonic and so forth. So you can do many things with the average calculation. And it's a great metric to use when you're doing your analysis. (upbeat music) The maximum calculation gives us the largest value from the values area. The things that you can calculate the maximum function with are sales, quantity unit sold, salary and cash position. Now to get our maximum sales, we need to get the sales and drop it into the values area. Now from the drop-down arrow, choose the value field settings, and then choose a maximum and press okay. So as you can see here, for each product and each salesperson, we have the maximum sales transaction that I made for that year. So Homer had his largest sale as being a 96,209, Ian Wright had 99,220, John Michaloudis had a 98,116, being his largest sale out of all his sales in 2012 for bottles. And Michael Jackson had 95,527 as being his largest sale. So obviously in here we have Ian Wright having the largest sale. So bottles will have the same amount as Ian Wright. So we can see here that from 2012 to 2014, that the largest sale amount was 99,878. So you can also go in and analyze and see which of the salesperson had the highest sale for each particular year and give them a bonus. So the maximum calculation highlight the extreme amounts from your data set, and you can do some pretty meaningful analysis from it. (upbeat music) The minimum calculation gives us the lowest value from the values area. The things that you can use to calculate a minimum sales, quantity unit sold, salary and cash position. Now to get the minimum sales amount, what we need to do is grab the sales and drop it into our values area. And from the dropdown box, choose the value field settings and then choose minimum and press okay. In 2012, for bottles, Homer's smallest sale was 10,780. Ian Wright's was 20,650, John Michaloudis' was a 48,378, and Michael Jackson's smallest sale was $17,030 out of all his sales in 2012 for the bottles product. So from this information you can see who made the smallest sale throughout the three years, and then go to that person and ask them why the sales were low for that period, and find out ways you can improve your product. (upbeat music) The product function multiplies all the numbers given as arguments and returns a product. For example, let's type in the product function and choose our first number which is 25 and a comma. So it multiplies 25 by 0.4, press comma. And then it multiplies that result by the number two. Close brackets, and we'll get out number 20. So in our analysis here, we want to know which month has products that were sold with no defects. So I wanna know which month had a flawless defect rate. So we wanna show a defective product with the number one, and a non-defensive product with a blank. Now we got a little example here that I can show you. So the first of the first 2012, that day later, and on the third of the first 2012, we had a defect, we had a defect and we had a defect. Now down here, we have another example with a defect, another defect, another defect. And the third example, we have three days with no defects. So let's do our product function here. And let's choose these cells. So if we have three defects and then we'll get the number one. So obviously our result will be a defect. Now let's copy this formula, right-click and paste that in here. So if we had at least one defect and the rest are all non defects, then we are gonna get a result of a one. So that means that we have at least one defect during that period or that month. So that month wasn't a good month. We wanna have zero defects. So let's copy this formula into our next example and we'll get a zero. So what it says here is that during our three days, we had no defects and we get our return of zero, which means a great result for our company. Now let's go to our data table. And what I've done is I've included another column here with blanks and ones. So, as it goes all the way down here, these random numbers, and we have defects and non defects. So what we're gonna do is get our defects from our Pivot Table and drop it into our values. Now we don't wanna count of defects. What we wanna do is choose value field settings and go to our product and press okay. So what this has done, it has multiplied all the defects with all the non defects during that particular month. So if we give a zero that means we had our flawless month and that's a great result for our company. Now we can check this. Let's go to one of the zeros in here and double-click. And as you can see on the defects column here, it's all blank. So we had no defects. This is fantastic for product managers and quality managers, because zero defects means a great product and a happy customer. (upbeat music) In our example here, we want to find out what percentage of our total transactions are overdue. Now let's go over to our data table. And in here we have our overdue days column, which shows us the number of days elapsed from the customer payment date. So we have here lots of overdue days. And also we have a comment here, which says paid when our customer has paid. So we have a few paid customers and lots of unpaid customers. Okay, so let's go up and go to our Pivot Table. So let's click in our Pivot Table here. On the left we have our financial year, and let's grab our sales and drop into our values area. And from our dropdown, we choose value field settings and choose count. So it's gonna count all of our transactions, and we have 576. Now let's rename this, instead of count of sales, we rename it to total transactions. Okay, so let's get out our overdue days and drop it in here and choose count numbers. Any customer with a number means that they're overdue. So this is gonna return us to the number of overdue customers. Let's press okay. Okay, so we have our numbers here and we can change this to overdue, overdue and press okay. So let's go through our formula. Let's choose our number of overdue transactions, which are in here and divide it by the total transactions in there and we'll get 55%. So 55% of our total transactions are past due, which is a bad result. (upbeat music) In statistics, standard deviation shows how much variation from the average exists. So in our graph here on the top, we have our X-axis, which shows the values and our Y-axis, which shows the number of data points. So in our graph here, we have a normal distribution. And our average is right up in the middle. So this indicates a low standard deviation, which means the data points tend to be very close to the average, and we get this bell shaped curve, which is steep. An example of this may be the daily high temperature for a coastal city will be less than that of an inland city. Now higher standard deviation will indicate the data points are spread out over a large range of values which shows volatility. An example may be money. So a standard deviation may mean the risk that a price will go up or down. Here the bell curve is relatively flat. So what we're gonna get is something like a straight line here. Now in Excel, we can also do a standard deviation graph. As you can see the bottom here, we can represent it by a column graph, and then we can get a shape similar to the one shown here if we have a normal distribution. Now let's create a graph using our data table. We'll go into our data table and insert pivot, and we'll go into our existing worksheet and let's put it into here and press okay. So what we're gonna do now is find out the units sold and group them, and then find out by using the count of unit sold, how our data would be distributed. Let's get our units sold and we'll put into our row label. Now let's group of this. Now in the next chapters, we're gonna talk about grouping. Okay, let's right-click. And click on group. And we have our dialog box that comes up, and we could start at a pretty determined minimum level, which gives us as being 1,011 and ends up 79,902. But we can start at any point. Let's say zero and end at 80,000. An increments of 10,000 we'll keep that and press okay. So we have our groupings in there. Now the next step is to get our unit sold again and drop it into our values area. And we get our count of units sold, which is what we wanted. Now, from in here, we can create a graph to see whether we're gonna get a normal distribution or whether it's gonna be volatile and have a flat graph. Now, our Pivot Table here says that 17 transactions lay between zero and 10,000 units sold. 79 transactions are between the 10,000 and 20,000 units sold mark and so on as you can see here. So let's insert the graph, go to pivot chart, and let's insert an area graph 'cause this will show a much better, and press okay. Let's customize a couple of things. Let's take out all the field buttons on chart, and we can just click on that and get rid of the chat name. So let's just put up here, and we can click on the axis name and get rid of that. So as you can see, we have a pretty flat distribution. We'll then get the bell curve as per our chat on the left here. And the reason is our standard deviation's high. Now let's check that. Let's create another Pivot Table. Go to insert, pivot, and go to an existing worksheet. And we just put it down here. Okay, so now we're gonna do is we're gonna grab our units sold and we'll get our average of all the total units sold. Now to get that, we just click on the dropdown box, value field settings and get the average. Now, the next thing we can do is, again, drop in the unit sold. Now, instead of choosing the dropdown box, we can actually go on field settings in here. And from there we can make our selection. So let's get our standard deviation. Now the P signifies that we're using a whole population. So that's true because we're using all of our data, we're not just sampling 10 transactions. We're using everything. Now for sampling a few transactions, we use a standard dev. So for our purpose, we use a standard dev. P, which means population, and press okay. Okay, so now we can get our values here and from column, we can move it over to the labels. So we can see it in much better. And then we can format these as well. One thing we haven't done is the average. The average, okay, there you go. Okay, so what it says here, our average is 44,500, which is around here in the middle point. Okay. And our standard deviation is 20,689. So what it means is you can go either way to the left or right of 44,000 by about 20,000. So we have a high volatility there. So therefore, as you can see, our graph is pretty flat. Now, if our standard deviation was somewhere between zero and 5,000, then we would have got a graph similar to this. Let me get my squiggly line. And it would have been something like this. Okay. Would have been about there, and then like that, and then over there, would get a normal distribution. Okay. Maybe I can format the shape in red so you can see it better. So we would have had this if we had a low standard deviation, but as we have a highest end deviation, we get this graph, which is pretty much flat as you can see there. And which means that our unit sold can vary. It can be from zero to 10,000, or it can be from 70,000 to 80,000. So we have a high volatility there. So by using the standard deviation, you can see the variation that you get from your average and determine whether your product is volatile or not. So it's a pretty great tool to have when you're analyzing your products. (upbeat music) The variance calculation, measures how far a set of numbers are spread out. A small variance indicates the data points tend to be very close to the average. A high variance indicate that the data points are very spread out from the average and from each other. So let's create a Pivot Table to highlight the variance. So let's insert Pivot Table and go through our existing worksheet. And we're gonna put it in there and press okay. So in our rows labels, we're gonna put in our products and our sales month, and in our values, we're gonna drop our units sold. And from the dropdown box, we're gonna get our average units sold. So we can see where our average is at for each product. Now let's right-click in there so we can format the numbers. And let's use a number with no decimal points. Now next is we'll get our standard deviation. So let's put in the unit sold again, and then let's choose a standard deviation population and press okay. So we have a one here and again, we can format our fields in there. And finally just get our unit sold for the third time. So we can get our variance. From the dropdown box, value field settings. Let's use the variance P. Variance P means variance population. It means that our data set is a whole data set, and we using all of our population before using a few rows of transactions within all of our population and we use the variance sample which is indicated by Var. So let's format the fields here again. Okay. So as you can see here, we have a very high variance and also a very high standard deviation. Now, if you note in here, we get one value here, which is very low. So if we drew down to here, then we'll see that our units sold for ice cubes in June was pretty close to the average. So to test that, let's get our unit sold here and let's see what our average is. Now, our average is about 34,739. So let's see our transactions. Our transactions pretty much around that 34, 40,000 mark. So our variances is very, very low. So that's the only value here that we have pretty low variance or standard deviation. We can actually use this table to highlight months where we've had a low variance. And that means that our product sold a consistent amount of units. (upbeat music) In chapter 2.1, we created multiple sub-total, by going into our row labels and then choosing products, field settings, and then under sub-totals and custom, selecting the sum and average. And as you can see in our Pivot Table, each shown here under bottles, ice cubes, soft drinks, and tonic. Now another way we can do this is right-click in there and press field settings, and we can change it from in there. Okay, so now the grand total doesn't show us an average or a maximum, it only shows us the sum. So what wanna do is put in there some extra grand total. Now there's a way around this. First of all, we need to go to our data table and in our table, just add another column field named grand total, press enter. And because we're using a table it's added automatically. So that's all we need to do. We don't need to add any details in there. We just need the field header. Let's go back to our pivot, right-click anywhere in here and press refresh. Now on the right-hand side, you'll see that the grand total has been added in there. Now let's grab the grand total and drop it on top of the row labels. Okay. So it's shown up here. So the next thing we need to do is press the space bar and press enter. So we get rid of the name. In our new blank field, we right-click, and then choose the field settings. And in here we can use a custom and we can have sum, we can have account, average, maximum, minimum and press okay. Now, as you can see, it has gone all the way down here. It's added that information at the bottom of the group. So what we need to do now is get rid of the grand total, click in the grand total name, right-click and choose remove grand total. Now we have our different grand totals summarized by sum, count, average, maximum, or minimum for the whole data set. (upbeat music) Now, there are a few ways to access the field settings and value field settings. Now let's talk about the field settings first. In our Pivot Table field list on the row labels, under your first field and the dropdown box, choose fill settings, and then custom, and choose from in their sample count. Now, for this to work, you need to have at least two fields in your row label or in your column label. Now, the other way is to choose anywhere in our Pivot Table and make sure we select one of our items, so our ice cubes. Right-click, and then choose field settings and we can add in there. So let's add the average in there. And the third way is to go into our Pivot Table tools tab under options and field settings. And now we're under products and choose that, and we can put in there maximum and minimum. Now let's talk about the value field settings. In our Pivot Table field list, under the values area down box, choose the value field settings. And we have it as sum, but we can change that to count, and press okay. The other way is to right-click anywhere in the Pivot Table and choose summarize values by, and we can change it from there. Let's choose average. The other option is again, is to right-click anywhere in the Pivot Table and choose value field settings, and then we can choose a maximum. Another way is to go into where our Pivot Table tools tab in the ribbon, under options field settings, choose there. And we can change from there, let's put minimum. And again, in the options tab under calculations, we have summarize values by, we can click that and we get our different options. Now we can click on more options and we can count the numbers. So it depends on what you're more comfortable with. You decide what's best for you. (upbeat music) In our example here, we want to find out what bonus you pay per zone and per year based on the channel sales made. As to do that, first let's go to our data table. And what we've done is we've included zone numbers. Zone one, two and three. And also we've added a new column called channel sales. So we have our channel sales that pertain to each particular zone for each transaction. So let's create a Pivot Table. Go to insert and the Pivot Table and existing worksheet, and let's choose A1, press okay. So in our Pivot Table, field list, in our row labels, we're gonna put in our months and our zones. In the column labels, we're gonna drop in our financial year. In our values area, we'll grab our channel sales and our report filter we'll have our sales quarters. Now, one thing is let's get rid of the grand total, click in there, right-click and then remove grand total. And we want to choose only Q1 for our example. So we need to do a formula that shows us the sales for 2012, zone one, two and three, and multiply by the bonus to be paid in the respective years. Now to do that, we'll need to have each zone one, two and three in each month. Now we don't have that because in February zone three, there weren't any sales. And in March in zone two, there weren't any sales. And we need to bring that up, regardless of any sales being made. Now to do this, we need to click anywhere in the row labels, and right-click and choose the field settings. Then under layout and print, choose the show item with no data So if we check that box and press okay, we're gonna show the items that don't have any channel sales. And now we can make our formula. Let's put in sum product and choose 2012 January, press comma, and then choose the respective bonus to be paid here, which is 2012 for zone one, two, and three, close brackets. Now we're gonna move this formula down and we need to make sure that the rows in here are an absolute reference. So number six, and number eight should have a dollar sign in front of them. Now, a quick tip is to click anywhere in there and press F4 twice, and that makes the row six, an absolute reference, or we can just put in our dollar sign and press enter. So we can move this across. So now let's grab this formula and drag it down so we can feel in the February month. Double-click, and let's just drag this all the way down. And as you can see, because of the absolute reference, the cell reference doesn't move in there. Okay, and press enter. And then we can move that across and double-click 2014 with 2014, perfect. Now let's finish off by dragging down to March. Double click and grab that and then go all the way across. Okay, so we have our three months, now let's put in our sub-total. Now to do that, we just need to highlight at the bottom there and press the AutoSum and it will automatically sum it up. So let's make this bold. And in here we can just put a comma and get rid of decimal places. So now, finally let's put in our months where you just press the plus or equal sign and then reference it into cell A5 and press enter, and the same thing for February, and the same thing for March. Now let's put in our total name in there. Plus we can actually reference the filter and then put in the end and then reference the name that bonus to be paid and press enter. So we'll have Q1 bonus to be paid. Now let's fix this up a bit and put in a space. Now to do that, we can actually put in an end in there and then in brackets and have a space. So that will give us the space. So we have our Q1 bonus to be paid, right-click and make that bold. So now we can make this interactive. Let's choose Q2. So everything changes. The months, the title and our bonus to be paid. Now one thing we need to make sure is go into options and then get rid of this auto-fit column widths on update. So every time we make an update, these column widths stay the same. So the update being about making a change into our filter selection, Q3. As you can see there, it stayed put. So Q3 gets updated automatically and then Q4 as well. So here we have an interactive channel bonus to be paid per quarter. (upbeat music) We want to show here the unique occurrences between the channel partners and the products. To show our unique count between our products and our channel partners, it's impossible to do with a Pivot Table. But what we need to do is insert a sum product formula in there and then pivot that information to give us our results. So our formula here says to look up in column B and in column C. And by using the sum product formula, it'll give us trues and falses. So if we get one true in here and another true in here, then a true and a true equals one. Anything else is a zero. So if we get two matches of the same channel partner and product, then that's gonna be two trues. So obviously that's more than one. So if it's more than one, then we'll wanna show it by a zero. So that means it's not unique. If there's only one unique combination then we'll want to show it as a number one, which means a unique combination. Now let's escape here. And as you can see here, the first couple of values, because it's the first time they're being purchased, they're all unique. So they're all depicted by the number one. If we go all the way down here, and you'll see Acme purchased soft drinks. Well, Acme purchased soft drinks up here. So it's shown as a number one here 'cause it was the first time it was purchased. And then down here, number zero, because it was a second time it was purchased. So it goes all the way down here and it does the same thing for each row. Now let's go to our Pivot Table. And what we've done here is we've put in our sum of unique combinations in here. And then we dropped in our products on the left-hand side. So in here we can see that there are 54 unique customers that purchase bottles. There are 63 unique customers that purchase ice cubes. There are 63 unique customers that purchase soft drinks, and there are 57 unique customers that purchase tonic. Now to see which customers are part of this number, then we can just grab the channel partners here and drop it into the row labels, and we'll get our list here. So we get all our list of unique customers that purchased the products. (upbeat music) The percentage of grand total calculation displays values as a percentage of the grand total of all the values or data points in the reports. So what it means is that each individual data point here will show as a percentage of this grand total here highlighted in a red border of $32 million. So to include the percentage of grand total, we need to activate our field list, right-click and show our field list. Now let's grab our sales and drop it into our values area. And in their dropdown arrow, value field settings, and choose show values as, and in the dropdown box, choose percentage of grand total. Now let's change our name to percentage of grand total, and press enter. So we have our percentages in here as you can see. So each individual percentage will sum up to 100%. So our field items here sum to 8.26% which is up there. And if we sum across the columns, that's 7.32, and that's confirmed in there. So if we sum the 26%, 25, 25 and 23, that equals to 100%. And if we'll go down here and sum base rate amounts, then that equals to 100% as well. So each value item is divided by the grand total to give us the percentage of grand total calculation. (upbeat music) The percentage of column total calculation displays all the values in each column as a percentage of the total for that column. So we have our years in our columns here, 2012 to 2014. And in the bottom, we have our grand totals and they're highlighted in a red border. So each individual field item here will be a percentage of its grand total. So what we're gonna get is our proportion of sales for each sales rep in each quarter in 2012, in 2013 and in 2014 respective to the totals. So to include the percentage of column total calculation, we click in our Pivot Table and grab our sales, then drop it into our values area. From the dropdown arrow, we choose the value field settings. And then we show values as, and from the dropdown we choose percentage of column total. And then we rename this to percentage of column total and press enter. So as you can see here, we have the percentages that make up each column total. So we can check this. If we highlight the 2012 Homer Simpson's sales, they add up to 25.49%, which is up here. So if we hold down our Control key, and then with our mouse button, choose each sub-total, they should equal to 100%. As you can see here at 100% and we have here 100%. And the same thing is done for our 2013 and 2014 numbers. (upbeat music) The percentage of row total displays the value in each row as a percentage of the total for the row. So everything here highlighted in red will be 100%, and we are gonna get the percentages over the three years for each sales rep and each quarter. Now to include our percentage of row total, we click in our Pivot Table, and in our Pivot Table field list we'll grab our sales and drop it into our values area. From the dropdown arrow, we choose the value field settings and in show values as, we select the dropdown box and choose percentage of row total. And we can change the name here to percentage of row total, and press okay. We can see that we have 100% in each of our rows and in our individual rows, if we hold down the Control key and choose 2012, 2013 and 2014 for Homer Simpson, we get 100%, which is correct here. So we can see that the proportion of sales that have occurred over three years. And the same thing can be broken down into Q1 for each respective sales rep. So let's get Homer Simpson again and press down the Control key and choose 2013 and choose 2014. And again, we get 100%. (upbeat music) The percentage of calculation displays the value of one item, which is also called the base field, as a percentage of another item, also called the base item. Now to put this into an example, we want to find out the change of sales from year on year. So we wanna see the change in 2003 versus 2012, and also the change in 2014 versus 2013. So to do that, we click in our Pivot Table and we grab our sales and drop it into our values area, and from the dropdown arrow, choose value field settings, you show values as. In the dropdown box, we choose the percentage of calculation. And in the base item we choose previous, in the base field we choose financial year. So the way to read this is we're showing values as the percentage of the previous financial year. So percentage of previous financial year and press okay. And now we have our percentages. Now, obviously 2012 doesn't have a previous year, so it will always be 100%. And if we look at 2013 here for Homer Simpson's sub-total, we can see that in 2013 it was 112% of the 2012 value. And in 2014, it was 90% of with the 2013 value. So from 2.9 million it went down to 2.7 million and that's correct. And you can also see here in the grand totals, in 2013, we had an increase of 6.06%. So from 10.3 million to 11 million. And in 2014, our sales reduced to 96.73% from 2013, or you could say it was a drop of 3.3%. So one minus 96.73%. Now let's do another example. And here, we have our sales regions over the three years, and we'll wanna compare our sales to the African sales. So we're comparing the American sales to the African sales, and then we wanna compare the Asian sales to the African sales and also the European sales to the African sales. Now to do that, we click in our Pivot Table and we'll grab our sales and drop it into our values area. From the drop-down arrow, go to value field settings, show value as percentage of, and what we're gonna do now is we have our sales region as our base field. And we want to put our base item as Africa. So we're gonna show the percentage of African sales. Press okay. So obviously African sales will be 100% always. So what it says here in 2012 is that Americas is 94% of the African sales and Asia is 96% of the African sales, and Europe is slightly higher than the African sales for 2012. We have the same calculations for 2013 and then 2014. And we can also put in here products and we can compare that to one particular product being your best product and see how the other products relate to it. (upbeat music) The percentage of parent row total is a new calculation in Excel 2010. It shows us an item's percentage based on his parents sub-total. So the calculation is the value for the row item divided by the value for the parent total row item. So in here for Homer Simpson in Q1, what it will give us is the percentage of 776 into $2.6 million. And then we'll do the same for Q2, Q3 and Q4. So it'll give us a percentage of 100% here, which is the total of its parent total, which is $2.6 million. Now to do this, we grab our sales and drop it into our values area. From the dropdown arrow, choose the value field settings and under show values as tab, from the drop-down, we choose the percentage of parent row total. And press okay. So as you can see here, Q1 is 29% of the total. Q2 for Homer Simpson is 24% of the total. Q3 is 22% of its total. And Q4 is 23.6% of its parent total. So if we sum all this up, you can see it's 100%. And also the Homer Simpson's sub-total and the subsequent salespersons sub-total, if we sum those up by holding down the Control key, they too will equal into parent total, which is the grand total, which is 100%. As you can see here, 100%. The same calculation is done in 2013 and 2014. Now let's go on to another example. So all we have now is our years and our months in our row labels. Let's scroll down to see that. And we want to get the percentage of each month into the parent total which is 2012. And in here or it will be 2013 and 2014. So once again, let's grab our sales, drop into our values area and let's choose our percentage of parent row total and press okay. So here we have our percentages. So once again, the January sales are 7% of the whole 2012 sales. February sales are 8% of the whole 2012 sales and so forth. Now let's check by highlighting all of 2012, and that should equal to 100% of the parent row total, which is 10.3 million. And this is a great feature. And once again, it's new in Excel 2010, and you should give it a try. (upbeat music) The percentage of parent column total shows an item's percentage based on parent's sub-total. So the calculation is valued for the column item divided by the value for the parent total column item. So in our Pivot Table, we have our sales reps and in our columns we have let's show our field list. So in our columns we have our sales quarter on the top, and then the bottom, we have our sales years. And we have our sub-total for each quarter. So the percentage of parents total column will give us the percentage for Homer Simpson in Q1, based on its parent column total, which is 2.3 million and so on for Ian Wright, Johnny Michaloudis and Michael Jackson. And this will happen in Q1. We will also have it in Q2 in Q3 and then in Q4. So let's put in our parent column total. So to do that, we grab our sales and drop it into our values area. From the dropdown arrow, which has a value field settings. And it show values as, we select the percentage of parent column total and press okay. So as you can see, we have Homer Simpson, 33%. Let's hold down the Control key and press the 2013 amount, and then also the 2014, and that equals to 100%. So we have 100% of Homer's parent column total, which is 2.3 Million. And the same thing happens for the rest of the sales reps. And if we go on to Q2. Let's grab Homer's again for 2012, 2013 and 2014, and that's 100% of it's parent column sub-total for Q2. And then for Q3 and Q4 the same calculation. (upbeat music) The percentage parent total calculation shows the sales percentage based on it's chosen parent base field item total. So the calculation is value for the item divided by the value for the parent item of the selected base field. Now to include the calculation of percentage of parent total, we click in the Pivot Table and right-click, so we can show our field list. And in here, we can see that in the row labels, we have products, salesperson and sales quarter. So our selected based field will be the products. Now let's grab our sales and drop it into our values. And from the dropdown arrow, choose the value field settings. And in show values as, in the dropdown arrow, we choose a percentage of parent total. Now, from in here, we have to choose our base field. Now our parent based field is products 'cause it's right on top. So we have to choose products. And before we do anything, let's rename this to percentage of, we can call it parent total, or we can call it product total. You can say parent and put here product, so we can distinguish them. And press okay. So here we have the values. So if we highlight Homer Simpson's values for bottles, they equal to 25.19%, which is a sum here. So all of these, we'll hold down the Control key. Now all these different sales reps totals will equal to 100%. As you can see that 100%, which is the 2.7 million. And the same thing happened for ice cubes. So let's highlight that. And that will equal to 100%. So it's 100% of 2.4 million. And for the soft drinks, we have 100% of 2.6 million. And finally for tonic, again, that should be 100% of the $2.5 million of sales. And the same thing, let's scroll up. And the same thing happens for 2013 and 2014. (upbeat music) The difference from calculation calculates the difference of one item from another item. So what we're gonna do here is get our months and see the difference between one month and its previous month. And we're gonna also do another calculation where we see the difference between one month and the corresponding month from the previous year. So let's click on our Pivot Table and we'll go into our sales and drop it into our values area. And from the drop-down arrow, we choose the value field settings and show values as. In the dropdown arrow we choose difference from. Our base field will be the sales month because we're comparing sales months. And the base item will be previous. So the previous month. So the way to read this is the difference from the previous sales month. Now let's change the name here to call it diff. from previous month, and press okay. In our Pivot Table, we have the difference from the previous month. So the 96,000 is the difference between January and February. And then you see from February to March, we have a drop of 83,000. Now let's format the numbers here. So we can right-click and number format. We can go to number. No decimal places, 1000 Separator, and then we'll put in the red for any negative values. It just stands out better. We can see there that's much better. Now let's do another calculation. We'll put in our sales and we'll get the difference from the previous year. So again, the dropdown arrow, show value as, choose difference from, and now we're gonna get the financial year and previous. So we'll get the difference from the previous financial year. And press okay. And in here again, we can format the numbers. So what it says here, it's comparing January, 2013 with January, 2012. So difference is 100,000 increment. And then it's getting February, 2013 and comparing it to February, 2012, and that's a $42,000 increment. As you can see in a 2012, it's all blank because there's no sales in 2011. So it starts in 2013. And then in 2014, it compares the January, 2014 amount to the January 2013 amount. Okay, let's go into our second Pivot Table example. And now we have our salesperson on our row labels and our years. So what we wanna do now is compare our sales to one salesperson. So we're gonna compare Homer Simpson. So to do that, we'll grab the sales, drop it into our values area, dropdown box, value field settings, show values as, then choose different from. And we choose salesperson, and our salesperson will be Homer Simpson. So we're gonna see the difference that each salesperson has on Homer Simpson. And press okay. And let's format the numbers, and press okay. So what it says here is that Ian Wright in 2012 had $26,000 more sales than Homer Simpson. Johnny Michaloudis had 80,000 less sales than Homer Simpson. And Michael Jackson had 148,000 less sales than Homer Simpson. So the same thing in 2013, it's comparing Ian Wight 2013 to Homer Simpson, 2013. John Michaloudis 2013 to Homer Simpson, 2013 and Michael Jackson, 2013 to Homer Simpson, 2013. And the same thing for 2014. (upbeat music) Just like in chapter 3.8, where we had the dollar difference from calculation. Now we have the percentage difference from calculation. So what this is, it calculates the percentage difference of one item from another item. So in our example, we're gonna get the percentage difference of one month to previous month. And then we're gonna get the percentage difference from one year's a month to its corresponding previous year's month. Now let's click in our Pivot Table. And in our sales, we grab the sales and drop it into where the values area. From the dropdown arrow we choose value field settings and under show values as tab, we choose the percentage difference from calculation. And then we have the base field as sales month and then the base item as a previous. So this reads as percentage difference from the previous sales month. And let's change the name to percentage diff. from previous month. And press okay. And we can format the numbers. We're going on to custom and choosing in here. And then we'll just put in a percentage writing of this. So if it's a positive number, it'll be in black, if it's a negative number, it'll be in red. And press okay. So we have the percentage of difference from the previous month which means that there was a 12% increment from January, 2012 to February, 2012. And then in March, we had a 10% drop from its previous month. Now let's put in our new calculation. Dropping our sales value there, and then we can choose the percentage difference from. And now we're gonna calculate the percentage difference from the previous year. So we choose the financial year in our base field and our base item is previous. So this reads as percentage difference from the previous financial year. And then press okay. And in here we can conform at the numbers and because we had our formatting done before, we can go to our last option and choose that. So this says that in January, 2013, we had a 30% increase from January, 2012. And then in February, 2013, we had a 5% increase from February, 2012, and then so on. Okay, let's go on to our next example. So we want to calculate the percentage difference from the sales of Homer Simpson. So to do that, we'll grab our sales and drop it into our values area, which is value field settings, show values as, and then percentage difference from, and we have salesperson as our base field, and then we're comparing our sales just to Homer Simpson. And then press okay. And then we can format the numbers again. We go to custom, all the way through the end, we have a previous selection. So what it says here is that Ian Wright has 1% more sales than Homer Simpson in 2012, John Michaloudis had 3% drop in sales compared to Homer Simpson and Michael Jackson had 6% drop in sales compared to Homer Simpson. And the same thing is analyzed in 2013 and also in 2014. (upbeat music) The running total in calculation displays the value for successive items in the base field as a running total. So what that means is it will show you your year to date values. So what it'll do is it'll sum January and February and put it in here. Then it'll sum the February year to date total with March and then put it into the next column. And then it'll sum the March year to date amount with April and then all the way to the bottom where it'll end up having the total amount of four 2012, which is $10.3 million. So let's go and put in this calculation. We grab our sales and drop it into our values area. In the dropdown arrow we choose a value field settings, and under show values as, we choose the running total in. Now we have to choose the base field. And because we are doing the running total in for the months, we keep it selected as sales month. And then we can change the name here to the year to date and then press okay. So in our Pivot Table, we have January as 771,000. Now February is a 1.6 million, which is the sum of Jan and Feb. As you can see there, 1.63 million. In March, we have 2.4 million, which is the sum of January, February, and March, 2.4 million, and so on and so on. And so in December, we're gonna end up with 10.3 million, which is our total for 2012. Now in 2013, again, it starts from January. It adds February, and then it adds March and April and so on to end up at 11 million, which is a total for 2013. And the same thing happens in 2014. Now this calculation is fantastic to have, because it shows you your annual sales on any given month. (upbeat music) In chapter 3.10, we had the running total in, and now we have the percentage of running total in. We each calculate the values as a percentage for successive items in their base field that are displayed as a running total. So here, we're gonna get our year to date percentage. So we're gonna see here the proportion of the January sales to 2012. And then we're gonna move on to see the February year to date sales as a proportion to its total 2012 sales. Then we're gonna see the March year to date sales as a proportion to its total of 2012. And then so on until we reach 100% in December. Now to add this calculation, we click on our Pivot Table and then we'll grab our sales and drop it into our values area. From the dropdown arrow, we choose value field settings. And then under show values as, we choose the running total in percentage. And in the base field, we have to choose the sales month because it's the field where we going to get our running total in from. Then we'll press okay. So all we've got now is January, which is 7% of the 2012 sales of 10.3 million. And in February it shows here the February year to date sales as a portion of 2012. And in March, we have the March year to date proportion of 2012 sales. And then it goes on and it increments each month until we reach 100%. So we can see here that in June, for the first six months, we had achieved a 48% of our total 2012 sales. Now if move on to 2013, the same thing happens. So we have our January proportion on 2013, then it adds the February sales to give us the February year to date sales proportion on 2013. And then so on until we reach 100%. So we can see that in June for the first six months, we achieved about 51% of the total 2013 sales. And in 2014, the same thing happened. And as you can see, you can do a lot of great analysis to see how your sales are tracking on a year to date basis. And you can also compare it to the previous year's running total in percentages. (upbeat music) The rank smallest to largest circulation displays a rank of selected values in a specific field, listing the smallest item in the field as one, and each larger value with a higher rank value. Now in our Pivot Table, we have our salespeople in our row labels and our dates on the column labels. So what we're gonna get is a number one value for the lowest sales in 2012, and a number four value for the highest sales in 2012. And the same thing will happen in 2013 and 2014. So to do this, let's grab our sales and drop it into our values area. From the dropdown arrow, we choose the value field settings and show values as. In the dropdown arrow, we've go all the way down and choose the rank smallest to largest option. And in the base field, we're gonna choose which field we want to rank. Now we want to rank the salespeople. So we choose the salesperson and in the custom name, we can change the name to rank small to large. And then press okay. So we get here number one being the lowest value of 2.4 million. And then the second lowest is 2.5 million. The third lowest is 2.6 million and the largest is 2.67 million for Ian wright. Now if we go to 2013, we have a ranking for that year as well. And 2014, we have a ranking just for that particular year as well. So you can quickly see here that Michael Jackson in each of the three years has the lowest rank. And you can go and find out why his sales are the lowest amongst his peers. (upbeat music) The rank largest to smallest displays a rank of selected values in a specific field, listing the largest item in the field as one and each smaller value with a higher rank value. In our Pivot Table, we have our months in our row labels and our years in our column labels. And what we're gonna get is a ranking value in each of the years, and where one will be the highest sales and 12 being the lowest sales because we have 12 months. So to do this, let's go into our Pivot Table field list. We'll grab our sales and drop it into our values area. From the dropdown arrow, we choose value field settings, and then under show values as, we go to the dropdown arrow and all the way down and choose rank largest to smallest. And in our base field, we have to choose which field we're going to rank. Now we have our months in a row labels, so we're gonna rank our sales month. And finally let's change the custom name to rank large to small, and press okay. Okay, so we have in 2012, number one being July with $1.05 million and the lowest being January at $771,000. So you can quickly see which items are ranked highest and which items are ranked lowest. Now in 2013, we can see that December had the highest sales and November had lowest sales. And in 2014, we can see that January had the largest sales and August had the lowest sales. You can see there's a big variance in each of the years. There's no consistency in the value. So you can make some quick analysis with these numbers of rank largest to smallest. (upbeat music) The index calculation shows us the relative importance of a cell within a column. So in our example, we have our products on the row labels and our regions on the column labels. So the index will show us how important a product is to its region. The higher the number, the more important that product is to that region. And to show you an example, let's grab our Pivot Table by clicking in the top left-hand corner and pressing Control + C in your keyboard. And then in here we can right-click and paste everything in there. So let's go on to our Pivot Table field list and grab our sales and drop it into our values area. From the dropdown arrow, we go to value field settings and choose show values as, and in the dropdown box, we'll go all the way to the end and choose index. And we can change the name to index. And press okay. So now let's get rid of the sum of sales, just so we can have the index values. Now, finally, right-click and format the numbers, and we can put in two decimal places and press okay. So now we have our index on the bottom and our sales on the top. So for the bottles, you can see that Americas has the highest amount compared to its other regions. So what that means is that if there was a price change in the bottles product, then Americas will have the biggest effect because they have the higher index amount. Now we can see this, that Americas has the largest sales all across the region and also in its column grand total. So it calculates it based on the row total and grand total. And also the grand total which we have in the bottom right-hand corner. Now let's calculate this. We have the calculation here of how the index is calculated. So let's grab the value in cells. In our example, we choose the American's bottles. So press plus, and we can reference Americas and then multiply by the grand total of grand total. So 32 million there. And press enter. So we have our amount there. Now next let's grab our grand row total. Grand total here and multiply it by the grand column total, which is the 7.9 and press okay. And finally, L4 divided by L6, which gives us 1.1 which you can see there. And the same calculation happens for each of the other values within the regions and products, and they're all depicted here. And the grand total will obviously be one. So we'll see for ice cubes that the African region has the most important value. In soft drinks, we have Europe and in tonic we have Asia. So any price change in those products, then the biggest effect will be in the regions which have the higher index. (upbeat music) Now there are a few ways to get the show values as dialog box. In our tutorials we've using the Pivot Table field list and going from the dropdown box and value field settings and show values as. And the other way is once you're in the Pivot Table. So anywhere in here, you can just right-click and choose show values as, and you can choose one of the calculations here. Now let's choose percentage of grand total. And you can see that changes for all the cells. Now, the other way is to go on to the options tab in the ribbon, and the calculations you have the show value as, so you can change it from there. And finally, you can go out into the field settings and you can make your change from in here. So you got a few different ways where you can show values as option in the Pivot Tables. (upbeat music) In chapter 8, we created a P&L where we used calculated items to see the difference between the revenue and the COGS, which gave us the gross profit. And then also the difference between the gross profit and the expenses that gave us the calculated items called operating profit. Now, what we want to do is use the P&L types to determine what percentage of revenue they have. Now under row labels dropdown box, we have the P&L type chosen there, and we have our different P&L types. And we want to see what percentage of revenue is associated with COGS, gross profit, expenses and operating profit. Now let's cancel to get out of that. To do this, we click in our Pivot Table. And then from the sum of actual dollars, we choose the value field settings. And then under show value as, from the dropdown arrow here, we choose the percentage of option there. Now for the base field, we'll need the P&L type, and the base item will be revenue because we're gonna show you the values as a percentage of the revenue for each P&L type. Now let's press okay. Now the items within the P&L type will not get a percentage allocation, and that's fine. We can see that in each of the totals, we have our percentages in there. Now to get rid of this, all we gotta do is just click on the minus button and we'll get rid of that, and we can do the same thing for the revenue. So now we have a quick snapshot that shows that for example, in 2012, COGS is 2.5% of revenue. Gross profit is 97.4% of revenue. And if we add gross profit and COGS that will give us 100%, as you can see in our total there, which is correct. And then expenses accounts for nearly 36% of the revenue and the operating profit is that 61.58% in 2012. Now you can see the same calculations are done for 2013 and 2014. So this is a quick way to show your margins for your P&L. (upbeat music) In our data set, we've added another column called status. And in here we have the actual and the plan status stages. So for each transaction, we have an actual, and also a plan. Now we have the order dates here, and these can be also transaction dates, or they can be sale dates. But what we're interested in is the actual and plan. So what we're gonna do now is create a Pivot Table where we show the actual versus the plan for our products. And then we're gonna create a variance report to see whether we have met our plan or not. Now to do this, let's go to our pivot here. And in the Pivot Table here, we're gonna add in the following items. On the row labels, we're gonna add in the financial year and the products. In the column label, we're gonna put in the status. So as you can see, we have the actual and plan status. And in the values area, we're gonna put in there our sales. So grab that and drop it in there. Now let's go in here and just change the number format, we're going to value field settings and then choosing a number format, and we'll do a number with 1000 Separator and no decimal points, and then press okay twice. And in here we can just center it like this. So we have the actual and plan for our products for 2012, 2013 and 2014. And now we're gonna add in another column here to get the variance between the actual and plan. And also we're gonna add another column that's gonna show you the percentage variance. So to do this, let's click back into our Pivot Table and grab the sales and drop it again to the values area. From the dropdown box, we choose the value field settings. And under show values as, we choose the difference from. Now, the base field is gonna be the status because we wanna see the difference between actual and plan. And the base item is gonna be the plan. So it's gonna be the difference from the plan. Now let's press okay. And as you can see, we have the difference here. And let's make a few cosmetic changes. Let's go back in here in our value field settings. We can change the name. Instead of instead of sum of sales 2, we can change it to dollar variance. And then number format, we can go into number separator, no decimals and we choose the red font for the negatives and press okay, and then okay. And next thing is let's drop in our sales so we can get the percentage difference from the actual versus the plan. Drop it in there, dropdown box value field settings, show values as, dropdown box percentage difference from. The base field again will be status and the difference from with the plan. So we get the percentage difference from the plan. Let's change the name in here and call it percentage variance. And the number format we can go to custom. And then let's choose in here one of these. Now to make it a percentage, just go next to the semi colon and press the percentage. And then for the red, it'll be at the end a percentage. So if it's red, it'll be negative percentage, and if it's positive, it'll show in a black color. Press okay, and then okay. Now finally, we have the plan here. Now the difference between the plan and the plan is zero. So that's why we get no value there, but we can get rid of that. We just click in there, right-click and hide. The same thing for column G right-click and hide. Now, finally, we can go back into our Pivot Table and then right-click and show the field list. Now we can also drop in some more fields in here. Let's drop in our sales region into the row labels. And as they're been included in there, we can see that our calculation has also picked up the sales region. So you can add in as many fields as you want. The calculations are gonna extend to those fields as well. So there you have a quick report where you can see the difference between the actual versus the plan on a dollar basis and also on a percentage basis. (upbeat music) In our example here, we have our order date in our row labels. And then as you can see in our Pivot Table, if we scroll down all the way, we have lots of order dates ranging from 2012, 2013 and 2014. So it goes all the way up to row 259. Now say we want to group these dates, we can do that. What we gotta you do is just click anywhere in the Pivot Table. Right-click and choose group. And we'll get the grouping dialog box. Now in the first part, in the top part, we have the starting at date, which is automatically added in, which is our first date. The 3rd of the 1st, 2012. And ending date is the 1st of the 1st, 2015. In here by we can group by seconds, minutes, hours, days, months, quarters, and years. What we're gonna choose is days. Now let's click on month so we can uncheck that. So we have checked on days and now we get the number of days here. We get the scroll box and we can choose the number of days to group by, and let's group it by seven days or a week, and then we'll press okay. So we can see here that our information is grouped by seven days, starting from the 3rd of the 1st and going all the way down to the 1st of the 1st, 2015. We can drop in our sales and then what it will do is group those sales that fall between each of the ranges. So for example, the 3rd of January, 2012 to the 9th of January, 2012, it will sum up the sales that fall between those ranges. And we'll do the same thing for all the grouped dates. So let's grab our sales and drop it into our values area. You can see there, we have our sales. And a scroll all the way down. And you can see that as well. Okay. Now we can also drop in the sales again. Instead of using sum of sales, by choosing the dropdown box, we'll go to value field settings, and we can count. So we can see the number of transactions that happen between those group dates, and press okay. So we have a different transaction as well. So now you can go in and do some meaningful analysis with your data. (upbeat music) We have our order date in our row labels and now we want to group by months. To do that, we click anywhere in our Pivot Table. Right-click and choose the group option. And we'll get our grouping dialog box. Now we need to choose months, which is already selected. We know that because it's in blue. If we click again, that means it's deselected. So let's click on that again to activate it and press okay. So we have the 12 different months where our orders have been grouped into, and we can analyze the sales that relate to those different months. Now we grab our sales and drop it into our values area. Now we can see the different sales that pertain to each month. And just make a note that our data ranges from 2012 to 2014. So that's three years of data that's grouped into each month. So if you send this report to your boss, then you're gonna make a note that this information includes three years of data. So it's not just one year. And to avoid confusion, you can just right-click again, in the row labels, you choose group. Now we can also select the year. So you just click on the years. Now it's in blue. So now months, and the years are selected and press okay. So we can see here, that's broken down into each year. So when you send this report to your boss, then you won't have any issues. (upbeat music) Now, say that I want to group our order dates by quarters and years, well, we can easily do that. In our row labels, we have our order date. So let's go on into our Pivot Table. And right-click and choose group. We get our grouping dialog box. Now in the starting and ending dates, we can leave that as selected automatically. In by, we're gonna choose quarters and years. So quarters, years. And unselect months. So let's press okay. And we can see that the quarters and years are depicted in our Pivot Table. Now on the right-hand side, make a note that the years has been added in our Pivot Table field list in here. So what that means is that a new field has been created in the pivot cache called years. Now this has not been added into the original data set. So if we go in here, we're not gonna see a field list called years. Now, all we can do is grab the sales and drop it into our values area to analyze the different sales that occurred in the order dates that have been grouped by quarters and years. Now, the years field that has been newly created. We can actually move that if you want, from row labels to the column labels, just by dragging and dropping. And you can see, we can analyze the information in a different view. (upbeat music) We actually group by sales ranges, and then get our sum of sales that belong in our ranges that we depict. And also we can get the number of transactions that belong to the ranges that we choose. So to do this, we'll grab our sales and we'll drop it into our row labels. So we have all of our sales that have occurred starting from $10,014, all the way to our maximum sales, which was 99,878. So it can go up again. Now in our Pivot Table, we right-click and choose group, and we'll get to the grouping dialog box. The starting being the minimum value that we see there, and the ending being the maximum value that we saw before. The by means the amount that we'll want to group our sales by. Now, we have 10,000 in there. So let's leave it as that and press okay. As you can see, our sales are grouped by $10,000 increments all the way down there. And now we can do some further analysis. So let's grab our sales and drop it into our values area. And from in here, we can choose the sum of and press okay. So what it says here is that between the sales ranges of 10,014 and 20,013, we had total sales of $1,011,401. Now we can check that we can just double-click in there and we can see our sales ranges in there are between what we've chosen before, from 10,000 all the way to the 20,000 amount. Now press Control + Z, and go back. Further, we can see the number of transactions that occurred between each of the sales groups. We can grab the sales again and drop it into our values area and we get the count of sales. So we had 67 transactions between our sales ranges, 10,014 to 20,013. And then 57 transactions between our sales ranges, 20,014 and 30,013 and so on. So we have our total number of transactions being 576 and our total sales being $32,064,332. Now, if you want to round these groups, then you can just right-click again, go to grouping. Now, instead of starting at 10,014, we can start at 10,000 and we can end at, we can say 100,000 and the increments we can leave at 10,000 and press okay. So we have our groupings, which look a little bit better. And then our sales and our number of transactions. (upbeat music) We can actually group our data by text fields. In our row labels we have our sales region. So say that we want to create some new regions. Now we want West, including Americas, East, including Asia and Central, including Africa and Europe. So let's start off with the central. Let's click on Africa and then hold the Control button in our keyboard and choose Europe. So we have Africa and Europe and want to name that into our new group or into our new region called central. Right-click and choose group. So Africa and Europe are included into group one. Now we can actually change the name of group one. We can call that Central. Americas, we can call that West. And Asia, we can rename that to East. So we have renamed our regions. Now on the right-hand side you'll notice that we have a new field list that's been created called sales regions 2. This is created in our pivot cache and not in our original data set. Now let's rename this by clicking on the dropdown arrow, go to field settings and so sales region two, we can call it new regions. And press okay. So let's change there. Now, all we can do, we can also drag this newly created group from the row labels to the column labels, just like this. And on the top here, we can see that our newly created region called central includes Africa and Europe, which is correct. Our West region includes Americas and our East region includes Asia. (upbeat music) So we've added a new column in our data source called time of sale, where it shows us the time that each sale was made throughout the day. And the format is in a 24-hour time format. And what we want to do is find out at which time of the day we have the most sales and which time of the day we have the least sales. So let's go on to our Pivot Table. And what we need to do is grab the time of sale field and drop it into our row labels. So you can see, we have our different times that the sales were made. And now what we need to do is right-click in our Pivot Table, choose group, and we get the grouping dialog box with the starting time and the ending time being the minimum and the maximum time in our data source. And what we need to do is choose hours, we select months and press okay. So now we have different hours grouped, and finally we'll need to grab our sales and drop it into our values area. So we can see now that the sales that we've made throughout the different times of the day. So during 1:00 a.m. we had 1.1 million of sales. During the 9:00 a.m. we had 4.1 million of sales and so on. So you can see here that at 11:00 p.m. that's where we have our most of sales. (upbeat music) Now with grouping, there are a couple of things to note. If you have numerical data fields, then all you need to do is just click on one of the cells and then right-click and press group. And you can group like that. Another way is to go to the options tab and you have under group, your group and ungroup options. So you can group from there. And the third way is to go to the group field. And what this says is you can only group numerical data fields, and you can also group from there. Now, if we put in there text for example, sales month, and we try to click and right-click in one cell and try to group, we'll get an error message. It cannot group that selection, press okay. You need at least two items selected to activate the grouping in the text field. So now we can group and we can start grouping from there. Now to ungroup we go to select the group heading, right-click, and then ungroup. Or we could do the same thing from the options tab and the ungroup selection there. So let's group again, right-click group. And by pressing Control + Z on your keyboard, you can ungroup. (upbeat music) So we want to analyze our sales on a bi-annual basis. So we want to see the first half of the year, and also the second half of the year. Now we can group this. We can click in our Pivot Table and select January to June, right-click and group. So we have group one and we can call that first half. And then to group the second half, we just click on our items there July to December, right-click and group again, and we have the name group two. We can change that to call it second half. So now we've created our two groups. And on the right here, we have our new field called sales month two, and that's in the pivot cache. So we can get rid of the sales month in there. So we've got the first half and second half. Now let's put it in our sales, in our values area to see our results. And also what we can do now is put in our financial year and drop it into our row labels. And we can see our results from 2012 to 2014 on a bi-annual basis. And you can also do this if you had customer names. For example, if you had over 100 customers and you wanted to group them into groups of customer names, starting from A to K and also from L to Z. So you can have two groups of customers and you can analyze their sales over the years. (upbeat music) When you're grouping dates, it automatically takes the first date in your source data and groups starting from that date. Now that date could be a Tuesday, it could be a Sunday, could be anything. But say you want to actually start on a Monday. Now we can change that when we go into our grouping selection. So first of all, we need to find out what our first date is. So we have the 3rd of the 1st which is our first date. Now by doing the formula weekday, weekday, it returns a number from one to seven, which identifies the day of the week of a date. Now, number one is Sunday. So let's choose the 3rd or the 1st. So if one's a Sunday, two is a Monday, three is a Tuesday. So we can find out that three is a Tuesday. Another way to find out what day fell on the 3rd of January, we can actually go into our calendar and click in 2012. And in there we can choose the 3rd of January, 2012, which was a Tuesday. So we wanna group on a date starting on Monday. So let's do this, which is the second. Right-click anywhere in your Pivot Table and choose group. Now in the grouping dialog box, we have this automatically starting at the first date, but we're gonna change this, we're gonna override it. I want to pull up the second. Okay. So we want the grouping to start on a Monday. And we want to group it by days, and then we can put in there seven. So a whole week. And press, okay. So that's a good tip to know if you want to group dates starting on a Monday. (upbeat music) If you want to isolate dates and do further analysis for your reporting or ordering purposes, then you can certainly group those dates depending on which ranges you're looking for. So let's do an example, click in that Pivot Table, right-click and group. So we have our data from 2012 all the way to the end of 2014, and say we want to just look at the first six months of 2013. So we're gonna have the starting day being the 1st of the 1st, 2013 and the end date being the 30th of June, 2013. And then we want to group by months and then press okay. So you can see now that anything before the 1st of the 1st, 2013 is grouped into one amount here, the 10.3 million, and anything after the 30th of June, 2013 is grouped into another amount here, which shows 16.6 million. And then you have the six months isolated in there. You can do your analysis by double-clicking and seeing your transactions from there, and then press Control + Z and delete to go back. Or you can, if you want, click on any transaction after 30th of June, 2013, double-click on that, and that will give you all the transactions that occurred after that date. Control + Z to go back. So you have a lot of flexibility when you're grouping dates in a Pivot Table. (upbeat music) In Excel, you can group by a calendar year and also a calendar quarter. Say you want to group by a fiscal year or a fiscal quarter. Now that's a little bit difficult and you need to create some formulas and put that in your data source. And from there, you can create your grouping in your Pivot Table. Now a fiscal year, for example, in Australia, starts in July and ends in June. In other countries, it starts in October and it ends in September. And you can also have situations where the fiscal year start in April and ends in March. So I have an example here of some dates from July all the way to June. So this is a typical fiscal year that starts July ends in June. So what we need to do is do a formula where it gives us the year, and then it adds onto that a one if the month is equal to, or more than seven. And if it's less than seven, then it will return a zero amount for the month. So this is one example to show this. In here, we can do an equal or a plus sign, and let's put in year and let's get our example date there and put in brackets. So that'll give us the amount 2012. And then let's add in here, in brackets, month and choose the same date and what we're saying here, if it's bigger than or equal to seven, close brackets, then it'll give us a amount of one. So 2012 plus one is 2013. So any dates from July to December will give us a 2013 value, which means that the fiscal year 2013. If we drag all the way down, it'll be 2013 all the way to December. So our fiscal year is 2013. Now, once we drag into January, well, our fiscal year is at 2013 because it's counting 2013 and then it's adding a zero because it doesn't meet the criteria of equal to, or bigger than seven. And let's drag all the way down here. So we have our fiscal year of 2013, which is correct for a July to June calendar. And now we can do the same thing for the fiscal quarter. So in here, we're gonna use the choose and month functions. So what we're gonna say here is it's gonna return us a value for the month. So for 1st of July, 2012, it will return us a value of seventh. So what it means here to choose from these amounts here, that we've depicted, it'll choose the seventh value. So one, two, three, four, five, six, seven. So the seventh value is a one. So that means quarter one. So that's how this formula works. So let's put it in here. So choose the month number from our date here, close brackets, and then return the value from our predetermined values that we've entered here for a July to June fiscal year. So this number three means that January is three, February three, March three, April is four, May is four, June is four, July is one, August is one, September is one, October is two, November is two, December is two. So the seventh value in here is a one. So it'll return us a one. And then we can just drag all the way down and we can see we have our fiscal quarters in here. So now we can grab this formula here. Control + Copy, and then go into our data table where we've put in another column called the fiscal year, and we can paste it in here and then we can move the cell references to the order date and then press enter. And it automatically fills all the way down, and it gives us our fiscal years. Okay, let's go back and grab our formula in here instead of writing it again. And let's go to our data table, our fiscal quarter. Control + V and then let's reference it to the order and again, enter. So it returns our values. So let's update our Pivot Table and then do the grouping based on the fiscal years and quarters. So first we need to refresh the Pivot Table. So I can right-click in there and press refresh, which will give us our fiscal years and fiscal quarters. Let's grab them and put them in a row labels and let's put them in our row labels again, our fiscal quarters. And our sales we can drop into the values area. So now you can see, we have our fiscal years and our fiscal quarter. So a new year was created 2015 and the Q1 and Q2 quarters there. So this is a great tool to use if you're not using a calendar year for your accounting or company purposes. Now, what I've done also is I've created a fiscal index where I've got the July to June fiscal years and October to September fiscal years, with the different formulas in there for you to copy and paste into your workbooks. And also for April, I've done the same thing. I've changed the formulas. So you had the different formulas to use, depending on what fiscal year your company is using. (upbeat music) Let's try and group our order dates by right-clicking and pressing group. Well, we get an error message, cannot group that selection. Now, when you get that it means that your data source has some error values in your dates. So you may have some N/A values in there when you imported the data, or you may have some dates that are not entered in correctly. For example, you may have month 13, or you may have a date number 31 in February. Now we can check that. We can go into our data table and into our order there, we can select everything and press Control + G, which is the go-to special. Or you can go under find and select and go to special from there. Now let's select constant, and we want to find out any errors or any text. So if we have any dates with 31st of February, then that reads it as a text. Let's only select texts and errors and press okay. So it's made the selection, we cannot see it, but it's in there. Well, now we're scrolling down, we can see that. Now let's highlight that in yellow. And it's also highlighted our text up there. That's fine. Now let's filter by color. So it gives us all our texts or our error values. So in here we can make our changes highlight all these. Again, we can go to Control + G, Go To Special and visible cells only. And if they all have the same order dates, we can just put in 28th of the 2nd, 2012, hold down the Control key and press enter and that will fill in the selection. And then for the N/A, if that's an error, then you can delete everything or you can go back and find out what the date is. And now let's for our purpose, we can just put in 14th of the 2nd, 2012. Now we can go back to our Pivot Table. What we need to do first is unselect the order date. And then what we need to do is refresh our Pivot Table So right-click, refresh, so that updates the pivot cache with the new information. And then we need to put back in the order date into our row labels and from in there, right-click and group. So now we can do our grouping. (upbeat music) Okay, I want you to group our order dates into weeks, and then I want to do another Pivot Table and then group to months and quarters. So let's group these into weeks of seven and press okay. So we have that. So what I wanna do now is go to options and select entire Pivot Table, Control + Copy, and in here, Control + V to paste it. And now what I wanna do is group these into months and quarters and press okay. Well, see what happens. The first Pivot Table gets updated as well. That's because we're using one pivot cache. Now that's annoying, but there is a work around. Let's press Control + Z to go back. What I need to do is grab this and then cut it and paste it into another workbook. Let's go to file, new, blank workbook and then in here, right-click and paste. So in here, I can group it into the way that I want, into months and quarters, and then I can select everything, Control + X. I can go down into my book where I was previously and in here, right-click and paste. So now we have two separate pivot caches, and we can group each individual Pivot Table independently. So if I go in here and say group again by months, quarters and years, well, that happens. And then this doesn't change. Now there's another way we can do this. We can go to our data table. And what we need to do is bring up the old pivot wizard by pressing Alt + D + P. And then what we need to do is press next. And then that chooses our whole table. And then that's fine, press next. And then we want to put this Pivot Table into our new worksheet and press finish. So in here, let's put our order date and then let's put our sales and then we can group this by days and put seven and press okay. Now let's go back to our data source and then press ALT + D + P again to create another pivot cache, and then press next. It selects that, press next. Okay, now we get a message here says your new report will use less memory if you're base on your existing report, which was created from the same source data. Do you want your new report to be based on the same data as our existing report? Well, no, we don't want that, we want a new pivot cache. So we press no here. If you click, no, the two reports will be separate. That's what we want. Press no and go into our existing worksheet, sheet one, and we can place it there and press finish. So in here we can do the order date and sales, and then we can group, right-click in there and group by months, quarters and years. So there you have it. Two ways where you can group Pivot Tables coming from the same data source independently. (upbeat music) We've grouped our sales here by increments of 10,000. And we have our sum of sales here that show the results per group. And so we take this out and then we'll wanna drop in the sales again. What happens, we get a count of sales. That's because once you group sales, then it reads that as text. So it automatically shows us a count of sales. To fix this, all we gotta do is right-click and ungroup the sales. And then if we drop in our sales, once again, then we get sum of sales. (upbeat music) We've got our order dates here, and we want to group these. So right-click anywhere in there and press group, and then we choose days of seven and press okay. So this is a grouped by seven days, but as you can see here, there's data missing. So from the 16th of the 1st, it goes to the 24th of the 1st. Now we wanna show all the group dates. Even if they don't have any transactions in there. So let's right-click in there once again and go to field settings, and under layout and print, let's choose the show items with no data and press okay. So it shows all the weeks here, even if they don't have any information in there. Now, finally, we can go to the options tab, and option and for empty cells show zero, and press okay. (upbeat music) We have our P&L report that we created in chapter eight using calculated items. What we do there is get the difference between the revenue and COGS to give us the calculated item called the gross profit, and then get the difference between the gross profit and the expenses to give us the calculated item called operating profit. And here we have the P&Ls for 2012, 2013 and 2014 with our sales here. And now what we're gonna do here is drop in our months into our column labels and then group those to get the quarterly reports. And from there, get the difference between the previous quarter. And let's get our month and drop it into our column labels. And let's escape from there. So we have our months on there. Now to group these into quarters, just go to highlight the months that you want to put into quarters and then right-click and group. And where it says here, group one, we can actually change that and call that quarter one. The same thing for April, May and June. Right-click, group, and call it quarter two, and depending on which part of the world you are, each quarter will be different. Now in Australia, the Q1 starts in July, but in America, it starts in January. Now, let's continue here, right-click, group and call it quarter three. And then finally let's put in there quarter four. Okay, so we've done that. Now, let's right-click and show the field list. As you can see here, though, we have the month two field that's been added here, which shows our grouped months. Now let's click in the dropdown arrow and choose field setting, and let's change the name here. Instead of month two, let's call it quarter and press okay. So you see that's changed there, and also in our Pivot Table field list. Okay, now we want to drop in our actual sales into the values area and do a calculation to get the difference from the previous quarter. Now, if we grab the sales and drop into the values area, we'll get this warning here. It says multiple data fields of the same field are not supported when a Pivot Table report has calculated items. So because we have calculated items here for gross profit and operating profit, we cannot drag it in there, but there's a workaround for that. Let's get out of these. Now, what we can do is click in here, go to the options and select entire Pivot Table, press Control + Copy in your keyboard. And down here, let's paste it by pressing Control + V. Okay, so what we can do now is just group these into the quarter, just by clicking into the minus box there. Or a quick way is to go to the options once we have selected that area, and go to the minimize entire field. Now let's highlight this and double-click between the columns just to center them, and then we can press the center twice there. Okay. So we have our quarters. Now, what we can do is right-click to show our field list again. And now from in here, from the dropdown box, we'll go to value field settings and show values as, we choose the difference from. Now, the base field will be the newly created quarter field, and the base item will be previous. So we're showing the difference from the previous quarter. And finally, in the custom name, let's call it variance per quarter, and then the number format we can just keep it as currency and the negative font there and press okay. And now, okay. And we can see here that we have the variance. Obviously Q1 will be zero because there's no previous quarter to compare it to. And we have the Q2 difference from Q1, the Q3 difference from Q2 and the Q4 difference from Q3. Now we can just go up here and we can see and compare this to the top chart there. Okay. Let's click in there, options and we can just minimize that. Okay, so we have the actual values there, and we also have the differences at the bottom. So that's a quick work around when you have calculated items within your Pivot Table. Now I'll show you another example where we're gonna include the variances between the quarters. So to do that, we're gonna use a Pivot Table that doesn't have a calculated item in there. So let's go to our new workbook here. Okay, so in here we don't have the calculated item for the gross profit and operating profit. So to drop in the variance, just get the actual dollars again and then dropdown box, we can go again and choose the difference from. The base field will be the quarter and base item will be previous. So the difference from the previous quarter, and then in here, we're gonna pull variance per quarter and then number format, we can just put in the currency and we'll use the dollar and the negative red font, and press okay, and then, okay. Let's close down the field list and we can see in here, let us make this a little bit better to see. Okay, so the first variable we don't have. So we can get rid of that. Click on the column C, right-click and hide. And here you can see the variance per each quarter, the Q2 versus the Q1 variance, the Q3 versus Q2 variance, and the Q4 versus the Q3 variance. So with a grouping and show values as calculation, you can do some pretty good analytical Pivot Tables for your clients. (upbeat music) We have our data set here with the bank balance date and the actual bank balance for each date. Now we have each transactional date up until all the way, 2014, 31st of the 12th. So let's go back up again here. And what I want to do is we want to show the minimum and maximum bank balances for each month in each particular year. Now let's go to our Pivot Table here and click in our Pivot Table. Now to do this, we have to grab our bank balance date and put it into our row labels. And from in here, just choose any of the items in there and right-click and press group. And we're gonna group it into the months and years. Now, the starting and ending point is automatically entered in there, and we'll just leave it like that, and we'll press okay. So we have our months and years for 2012, 2013 and 2014. As you can see here in the row labels, the years field has been created now that we've grouped our bank balance dates. And also it's been created here in the field list. The next step is to drop the bank balance into the values and then get the minimum and the maximum amounts. So grab the bank balance, drop in to the values. From the dropdown arrow, choose the value field settings, and in the summarize of the values by, we choose the minimum. And in here, we can just leave out minimum or bank balance. That's fine. And the number format we can go to number, and we can just put a separator and use the negative red font there, and press okay. Now, we'll do the same thing for the maximum. So we go to the bank balance, drop into the values area, dropdown arrow, value field settings, and do the maximum this time round. And number format, again, you choose the same, and press okay, and then okay. So you can see that for January, 2012, the minimum bank balance for the whole month was at minus 8,306, and the maximum bank balance during the month of January reached to 9,662. Now let's go to our data table just to confirm that. And from the dropdown arrow, we can choose in here only 2012, January and press okay. And from in here, we can see that the minimum amount was 8,306, and the maximum amount was 9,662. Go back in here, that matches. Now let's get out of the Pivot Table field list. Another thing that we can do is put in a graph in there. So we can see how the movements have tracked over the months and the years. Now, click in the Pivot Table, go to options and choose pivot chart, and just put in a line chart in here and press okay. Now let's expand this to make it a little bit bigger. Now from in here, right-click and let's hide all field buttons on chart because we don't want that 'cause it clogs up the screen. And in here we can change the color. Right-click, and then choose the red in here, and from in here, right-click and we can choose a dark blue color there. So we can see here that the minimum bank balance for each of the months throughout 2012 and 2014 is around 10,000. So it doesn't go below the 10,000 mark and also the maximum bank balance for the years was trending about the 10,000 mark. So in this situation, your bank overdraft limit will be around the 10,000 mark. But as you can see, there's not much margin that you can play with. So by grouping the transactional dates and also showing the values by a minimum and maximum, you can do some in-depth reporting and graphical representation of your data. And it's not only limited to bank balances, this can also be a situation where you have sales, unit sold, or the amount of time you took to repair a product. (upbeat music) There are few ways where you can sort your Pivot Table. One of them is to go to your Pivot Table field list. And in here you just click and you get the dropdown arrow and you have your sort options there. The other way is to go to the options tab in the ribbon and under sort and filter, you have your sorting from there, A to Z or smallest to largest, Z to A, largest to smallest. And then you have your more sort options in there. And another way is within the Pivot Table, right-click, and you have your sorting there, and you can also go into your values and then you could sort from there as well. So let's use the ribbon to sort. So we want to sort by largest to smallest. Now, when you create a Pivot Table, it automatically puts the row labels into alphabetical order. So say you want to put it from Z to A, we can click there and all the values change. And A to Z, it goes back to where it was. Now, if we want to change the values, you gotta click in the values area there, and then say, we want smallest to largest, we click A to Z. If we wanna see largest to smallest, we're click Z to A, and their respective items change as well. Now, if we want to do the same thing for the sub-totals, we gotta click in the sub-totals area and we can show smallest to largest and then largest to smallest. (upbeat music) If want to sort an item row from left to right then we can certainly do this. For example, tonic, we have our values from 2012 to 2014, and we want to show the highest value first, and then on the right, going on to the lowest value. Now to do this, you've gotta click into the values area, right-click and sort. Choose more sort options, and we want to show the largest to smallest. And then in the sort direction it's left, right. So in our summary, it says sought financial year by sum of sales in descending order using values in this row, tonic and press okay. And we'll see that tonic has the highest value. And then on the right, it goes all the way to the lowest value and the years change there as well. And also the other items have been moved accordingly based on the 2013 totals. So you can certainly sort from left to right, as well as top to bottom. (upbeat music) There are a few ways where you can sort manually in a Pivot Table. One of them is to click in your row labels and on the border, you get your four pointy arrow and then click your mouse and you can move it up or down and you can see the bar there, so you can move it all the way up like that. So that's one way. Another way is that you can actually write in the items that are in the row label. So say we wanna move tonic from the bottom to the top, well, we just write in TO and then it knows that we're gonna type in tonic, and then press enter. So it moves tonic to the top and the same thing in here. Anywhere, we can put in there, you're gonna say okay soft, SOF and then it automatically puts it in there. Now, if you make a mistake in there instead of putting ice and then press and delete and enter, it'll override the item that you had there. So just to make sure you don't make that mistake. Press Control + Z to go back, and finally we can right-click in the item, and then we have the move option there. So we're gonna move bottles. The beginning up down, or to the end. And it just depends on which position it's at. We can make those moves. So if we go to bottles, right-click. Obviously we can only move that down or to the end. So there's a few different ways where you can manually move around your Pivot Table item list. (upbeat music) We have our data on the left here sorted alphabetically, but sometimes you want to create a custom list. You want to have, for example, Americas first and second, you may want to put in Europe, Asia then Africa. So you wanna set up a list where every time you refresh your Pivot Table, then Americas is first all the time. Now we can do this. First, let's create our list, the way we want to see it every time we update our Pivot Table. So we want Americas, let's copy and put it in here. And then let's put in Europe and Asia and then Africa. Okay, so that's the format where we'll want to see our Pivot Table each time we sort it from A to Z. Now what we need to do to activate this is we need to go to file in our ribbon, go under options on the left hand side, in the Excel options dialog box on the left-hand side, we choose advanced, and then we scroll all the way down and under general, there's an edit custom lists option there. Now we'll click on that and now we can create our new list. Let's go into this box here so we can choose our newly created custom list. Highlight, and then press import. So you can see there, it's been imported. Now you can also see that the custom list that have been created by Excel for the dates and the months and we have our custom list here. All we need to do now is press okay. And then again, okay twice. To activate this, we'll need to refresh our Pivot Table. So right-click anywhere in our Pivot Table, refresh, and you can see that Americas is first, Europe is second, Asia is third and Africa is last. Now, if this wasn't in that order, you can right-click sort A to Z, and it'll put into that order. If your custom list doesn't work, when you refresh and then sort from A to Z, then you need to go to another place to activate it. Right-click, sort and more sort options. And then on the bottom left-hand corner, click again, more sort options. And if your custom list didn't work, that means that this was unchecked. Okay. So make sure that the autosort is always checked. So next time you refresh, then your custom list will be as per the way that you created it. So you can create many lists for regions, for products, for salespeople, whatever you like. It's a great way to get a custom list on your Pivot Tables, where you can analyze as per your company's preferences. (upbeat music) We've added a new column here called managers where we'll put in a manager's name. For example, Jan, April, Adam and Scott. Now, Jan is a name as well as a month. It's short for Janine, for example, April as well is a woman's name and a nice one at it. So when we put this in our Pivot Table, it'll sort by month names because it will think that the managers' names are months because of Jan and April. Now let's have a look at this. Let's go to out Pivot Table. We can right-click and refresh. Now the managers, or we can drop it into a row labels. As you can see there, Jan is first, then April, then you get Adam and then you get Scott. So it's not in the correct order. Now to override this, you gotta right-click in the Pivot Table, go on to Pivot Table options and under totals and filters, the last option under sorting says use custom lists when sorting. And then we're gotta uncheck that. And then press okay. And as you can see, that has been updated. So we'll have Adam first, April second, Jan third, and Scott last on our list. (upbeat music) Now we have our regions and months in our row labels and our sales in our values area. Now, what we want you to do is sort the sales from highest to lowest, and then sort the regions alphabetically. And to do this, we click in our sales, right-click and sort largest to smallest. And we have the largest to smallest values for Africa, for Asia, for Europe and for Americas. And now we want to put the regions into alphabetical order. We can right-click. So there's two ways to do this. We can actually sort from A to Z, or we can go through the more sort options, and under the ascending, A to Z, we can choose the sales region and press okay. So we have Africa, Americas, Asia, and Europe in alphabetical order. And we also have these sales in descending order as well. (upbeat music) We have our products on our row labels here, and I want to add in a new product and then refresh it and see where it goes on our Pivot Table. So let's go in to our data source and add a new product called cider. So we need to add this in our table. Let's go to the end of the table by pressing Control + Down. And let's click out of here. And from the corner we can just drag and add a row. Let's highlight the row and press Control + D to copy down or whatever is directly above. Now, what we need to do is we'll keep the same information. The only thing we're gonna change is the product. So from tonic to cider and press enter. Let's go to our Pivot Table, right-click and refresh. And as you can see, cider has been added to the end of the list. Now we need to update that. To do this, all we're gotta do is just right-click anywhere in the Pivot Table, sort and sort A to Z, and then we have our product list sorted alphabetically. (upbeat music) Now we know that our Pivot Table is sorted by the arrow pointing down in our filter here. Now we can clear that by going to more sort options, and then selecting the manual option there. You will press, okay. Then the sort has been cleared. (upbeat music) We have our months going across the column in the Pivot Table. And we can actually sort by the grand total. If we click in there and right-click, choose sort and then sort largest to smallest. (upbeat music) In that Pivot Table on the left in the row labels, we have the order dates and we have our sum of sales in the values area. Now the order dates range from 2012, all the way down to 2014. So we have three years of data in there. Now we can filter that data. If we go to the row labels dropdown arrow, and then under date filters, we have all these filters here. Now the date filters option is only available when your row labels or column labels have dates in there. So let's have a look at the different filters that we have. We have the equals, before, after and between. So let's choose between. And we get this a dialog box and we can choose a date here by clicking the calendar and today being the 5th of March. So we can go back and say December 1st to today, and then press okay. So you can see everything has been filtered there for our selection. Now we can clear that or click in there and press the clear filter from order day. Now the next day filter, we've got some virtual filters here, for example, tomorrow, today, yesterday, next week, this week, last week, next month, this month, last month, next quarter, this quarter, last quarter, next year, this year and last year. And these are virtual filters. So what that means is when you put that filter and you open your Excel workbook next week, then those filters will get updated based on the date that you open your Excel workbook. So it's a live filter. And let's click on tomorrow and have a look if there's anything in there. Well, there's nothing in there in our selection, and that's okay. That's normal, it can happen. Now if I open this file in a month's time, and then I choose tomorrow, then I may have an order date there. So let's go back there and we can choose today, well, I have no order date values for today. And today is the 5th of March and we can go to date filters for yesterday. And again, I don't have any order dates there as well. Now, if I come back there in a couple of week's time and I'll do the same filter, then I may have an order date in there. So don't freak out if you don't have any values in there. Okay, let's have a look at next week. So next week I have to order dates there. And another thing that you can do here is instead of order dates, there can actually be due dates when the customer is going to pay you. So you can have this filter, and then every week you can just open this workbook and the Pivot Table will get refreshed and then it'll have the next week's dates. So that's a great advantage of having these virtual filters. Another thing we need to point out is that the weeks in Excel start from Sunday to Saturday. So if we ever look here in our calendar. So next week, we'll start on Sunday, the 9th of March and finish the 15th of March. So as we can see here, the 9th of March, that's correct. So it includes the 09th of March into the next week's order dates. Let's go to another one. Let's go have a look at this week. We just have one order date there. Let's go to last week and we have a few order dates there. If you go to next month, this month, last month, next quarter, this quarter, and last quarter. Now, obviously this quarter ending in March while last quarter will start in October and in December. And let's go to some more date filters. We can have a look at this year. So it has all our values there for 2014. And then also go back to last year and have a look, all the order dates for last year. So I have all these order dates down there. Now another option here he is year to date. So only show us the order dates that have started from the 1st of January, 2014, up until today's date, which is the 5th of March, 2014. So you can see there, this is the year to date. And then another option we have here is all dates in this period. So what this means is it'll get all the order dates, they were like Q1 for our data set. Our data set being 2012, 2013 and 2014. You can see that, all Q1 for 2012, for 2013 and 2014. Now the same thing for the other quarters can also go for the months. So the take or the February order dates for 2012, 2013 and 2014. Now we have the custom filter. So if we click on there from this drop box, we can choose the different filters equals, does not equal, is before, is before equal to, is after, is after equal to, is between, or is not between. So you can choose one of these in here and you can apply different filter that you like and press okay. And it will come up there. So you have an array of filters which you can use, and you do your analysis. And the great features about these is that we do a virtual day filter that the next time you open your workbook, then your data gets updated automatically based on that given date. And you can do some great reporting like due dates for payments, and also for project management, you can have your due date for your different milestones. So go ahead and spend some time on this, it's a great feature. (upbeat music) In our Pivot Table, we have our sales months in our row labels and our sales in our values area. Now we filter by labels, which means that we can filter by any text. So as our sales months, our texts then we can filter by that. Now you can also drop in there products if you like, you can also put in there countries. And also if you had employee names, you can also apply labels to filter. So to filter by labels, we click in our row labels and we get the label filters there. And we have these 14 different filters. So let's choose equals. Now, if you're gonna choose this option, then you gotta make sure that the full name is entered in there. You can't just put in there a letter or a couple of letters. So we're gonna put in there, it equals January and press okay, and we'll get that filter there. And you can clear by pressing this clear filter there. Let's go to the next one, does not equal. We can put it does not equal July and get the rest of the items there. Now we can go to begins with. Now in here, you can put in a single letter so we can say it begins with A, and press okay. And we'll get the months of April and August. Or we can say it does not begin with A, and we get the rest of the months there. We can say, ends with and put in their year and press okay. And it'll give us the months that end in the year. So we've got September, October, November and December. Now, once again, we can go, it does not end with, and put the year and we get the other months. And finally we can say contains. Now in here, you can put in there letters as well. So let's enter the letter E and press okay. And it'll give us all the months that contain the letter E. And does not contain E, and then will give us the rest of the months. So there's plenty of combinations there that you can do. And it's not only limited to months, you can apply to products, countries, employee names, whatever text fields. (upbeat music) If you have a column field that has a numerical and alphabetical sequence, then you can filter that by labels. Now, in our example, we have item numbers with three numbers followed by three letters. Now that can actually be a product number or a serial number, or it can even be number plates. Now let's go to our pivot and we have our item number here on our row labels and our sales in our values area. Now let's press on our dropdown arrow and then choose label filters. And we can filter by greater than. And in here we can put in an amount, for example, 110AAA, and we'll get all the values that are bigger than that. And you see there. You go all the way down. Okay. Now we can clear the filter by pressing clear filter from item numbers. Now we can activate the label filter once again, by going greater than or equal to. And in here we can put 110ZZZ and press okay. So it includes the 110ZZZ. You can say, less than 110AAA and press okay. And we have all those there. And when we say less than or equal to 110ZZZ and press okay. So it includes the 110ZZZ item in there. And finally we have the, between, and not between filters. So we'll say between, let's say 104 and 107 without putting any letters. So if it's 104, it include 104A, AA, ABC all the way to the top. And then if we say 107, well, it's only gonna include 107, it's not gonna include 107A or anything above that. So let's put in there 104 to 107 and you'll see that. And there you have the results. And not between, well, let's put in there once again, 104 and 107 and we get the rest of the results. So there were certainly a few filters there that you can use when you have fields that include numerical and alphabetical sequences. (upbeat music) In our Pivot Table, we have our order dates on the row labels going all the way down. And then we have our sum of sales in our values area. Now we can filter by values simply by going into the row labels dropdown arrow, and then choosing value filters. And in here you have nine different ways that you can filter your values by. We have equals, does not equal, greater than, greater than or equal to, less than, less than or equal to, between, not between and top 10. Now let's choose the equals. In this filter, you will use it when you want to drill down and find only one value. Putting 24,640, you can press okay. So here we get two different order dates that have the sum of sales that equals to 24,640. Now let's go on to another value filter. We can simply go in here and choose it does not equal to. Now you will wanna use this when you don't want to include a certain sale amount. So you can put in here does not equal to 24,640 and press okay. So to give you all the other amounts that do not include 24,640. So again, let's go to our next value filter. And we have the greater than. Now in here, you wanna focus on a certain sales level. For example, if you want to look at the sum of sales that are more than $500,000. So let's put in there $500,000 and press okay. And what you're gonna get now are all the sum of sales that are above the $500,000 mark. Now, if you want to drill down and see what makes up these sales, then you can just double-click in there and you get a whole list of the amounts that make up those sales. Now to go back and press Control + Z and delete, and you go back to your Pivot Table. Now you can also do the greater than or equal to if you want to make it equal to that amount, and also be greater than. Now, we can go on to our next filter which is less than, and click on that. And again, in here, you wanna focus on a certain sales level. So once again, let's put in our example, of less than $500,000 and press okay. And we'll get all these different sales values that are less than 500,000. Now go back to our values filter, and we can also put in that less than or equal to amount. The other filter that we have there is the between filter. Now in here, you want to drill down on a certain range of values. So you can say between 100,000 and 200,000 and press okay. And you have all these sum of sales that are between that range. Let's go back and choose not between. And again, let's put in 100,000 and 200,000. So it's not gonna include any values from 100 to 200,000. So what it will include is anything less than 100,000 and anything more than 200,000, and press okay. And you have all these values there. So there are a few filters there that you can use where you can drill down and analyze your financial data in a quick and easy way. (upbeat music) In our data set, we've added a new column called the channel partners. And in here we have 125 different channel partners. Now, all we've done is we've gone to our Pivot Table and refreshed, and we're putting the channel partners in our row labels and our sales in our values area. And what we wanna do now is get our top 10 channel partners so we can see, which are the best performing. Now, what we have to do is click on the dropdown in the row labels and choose the value filters. And the last option is top 10, click on that. And you get this dialog box that comes up that says, show top. Now you can also choose the bottom if you would like, but we'll do the top 10 for now. And then in here, it gives us a default number which is 10, but you can go down or you can go up and you can also manually put in there the numbers, but we'll choose top 10 for now. And then we're gonna analyze by items now, and we're gonna use the sum of sales. So that's how we're gonna choose and then press okay. And now we get the top 10 channel partners from our data set, and finally, we can also sort this from highest to lowest, just click anywhere in the sum of sales, right-click, sort largest to smallest, choose that. And we see that ABC Telecom is the best performing channel partner. And then you have the other nine best performing channel partners from 2012 to 2014. Now you can also do this analysis if you had lots of customers or if you had lots of salespeople or lots of products. So it's not only limited to channel partners. There's many different ways where you can use the top or bottom items filter. (upbeat music) The top or bottom percent filter gives us a list based on a percentage of items that make up the sum of sales. Now, in our Pivot Table, we have our channel partners here, which is a new column that we've added in. And we have our sum of sales. Now, what we need to do is go to the row labels dropdown arrow and choose our value filters. And then the last option, top 10, we choose the top 10%. Okay. And then instead of 10, we're gonna choose the 25%. We can scroll up or down, or we can write in there manually. Let's press okay. And we get our list here all the way down there. And we get our grand total as well. Now we can sort these from highest to lowest, click anywhere in the values, right-click and then sort largest to smallest, and we have that there. So now we have our list of channel partners that make up at least the top 25% of sales. We can go and see the bottom 25% list by going on to the value filters, top 10, and show bottom. And then press okay. And we have our lists there. And we can sort from smallest to highest. Sort from smallest to highest. And with this analysis, you can drill down to your best and the worst performing channel partners, customers, salespeople, or products, and take the appropriate action needed. (upbeat music) The top or bottom sum filter will give us the channel partners that make up a certain amount of sales. For example, we're gonna get the top channel partners that account for $2 million of sales. Now to do this, we click in our row labels filter and choose the value filters and top 10. And in here instead of 10, we put in 2 million and then from the drop-down box, we choose sum. and press okay. So now we have the top channel partners that account for 2 million of sales. And we can also sort these from highest to lowest. Right-click, choose sort, and sort largest to smallest. Conversely, we can choose the bottom channel partners that account for 2 million of sales. Let's go in the filter and choose top 10 again. And from show, we use bottom, and press okay. And here we have our list of the bottom performing channel partners that account for 2 million of sales. And we can sort these from smallest to highest. Right-click in the values, sort smallest to largest. This analysis can also be done on customers, on products, on item numbers, on any given metrics that your company is looking for. (upbeat music) A report filter is used if you want to show a high level summary with multiple combinations of fields. In our Pivot Table, we have put in the salesperson, customer products, sales region, and sales month in our report filter. And you can see in our Pivot Table, it's shown up here on the top left-hand corner. Now we can choose the dropdown and select one item and press okay. You can see here, Homer Simpson is selected, or we can go to another one, to products and select another item, soft drinks. And we can go to sales month and select January. Now our results are shown in here with our grand total. So it's a good way where you can drill down and analyze certain specific items within your data. Now to go back, you just click in there and choose all, or you can press Control + Z if you like, and it'll go back to where it was before. Now, we can also select multiple items and click down on our filter there and choose from the bottom left hand corner, select multiple items. So that activates it. And now we can select and deselect the all button, okay. When it's not selected or we can choose individual items like this and press okay. Let's go to products and again, select multiple items and you can also deselect and keep the active items selected that way. Now press okay. And in sales month, we can also choose a couple of months. Say Jan, Feb and March, and then press okay. And we have our results down here. Now let's press Control + Z to go back. Okay. Another thing that we can do is the use the search box up here, but first of all, to activate the search box for all the items here, we gotta select multiple items. So say, we wanna put in O. So any items that have the letter O will be selected. And let's add this in there. Okay. Next one, to the products, select multiple fields, and then we can choose in there. IC, you see IC as ice cubes in tonic the letters IC. And let's choose that. And then sales month, again, activate the multiple items, or we can choose ER, and it gives us the month that end in ER, and then press okay. Now to add more items in our selection, what we can do is go into a report filter and start typing here, J, and you get the option here to add current selection to the filter that's already there before with the ER. So what we can do is if we choose this box, then January, June, and July will be added to the month that ends with ER, and press okay. And then let's check that. And we can see Jan, June, July has been added with September, October, November, December. And this is a very powerful feature to have. (upbeat music) Excel is smart enough, and if 90% of your fields are texts, then you'll get a label filter. If 90% of your fields are dates, then you get a date filter. And if 90% of your fields are values, then you get a value filter. Now, a quick way to activate the filter is to go to your Pivot Table field list. And then you get these hover box. And from the dropdown arrow, you can choose your label filters, value filters, and search box filters. And then you can click on your channel partners, and also from in here, you can choose your filters. Another way is to go into your Pivot Table, right-click anywhere in there, and then go to filter. And then you've got your three filters there. You got your top 10 filter, you've got your label filters and value filters. Now, if you click in your label filters, you'll get the 14 different options there. And then if you click on the value filters, then you'll get your eight different options there. And the third way is to choose your row labels. And from in there, you can choose your label filters and value filters. Now, if your row labels don't have the drop-down error, then you can go to options and the field headers would be off so you just need to select that. So there are a few ways of you can activate your filters. (upbeat music) We can quickly select items by going on to the Pivot Table and then with a mouse highlighting your selection, right-clicking and in the filter option, choose, keep only selected items. So January to June has been selected and we can see this by going into the row labels filter that January to June are selected there. Now we can press Control + Z to go back. And now we can also hide our selection by going onto the filter and choosing hide selected items. So now only July to December are shown as you can see there as well. So it's a quick way where you can select and keep or hide your items. (upbeat music) A text wildcard allows us to filter by many different combinations. An asterisk will return any series of characters before or after the asterisk. A question mark or return text that contains only one variable. Let's go to our Pivot Table filter in our row label and choose a label filters, choose begin to with. So in here, what we're gonna do is put begins with GLO and asterisk. So anything that comes after the letters, GLO, will be included in our filter. So let's press okay. And you can see we get Globex Corporation, we get Globo Gym American Corporation and we'll get Globo-Chem. And you can see here in blue, we have the GLO and the asterisk includes all these letters after GLO. Let's go back and clear this filter. And we can go in and use another label filter that contains, so anything before the word tech will be included because we've put an asterisk before the word tech. Press okay. And we'll get Initech and Primatech. And you can see here from our example. Now let's go to another label filter. And we can put equals, and now we're gonna put asterisks Inc and asterisk. So that means that it includes the word Inc. Asterisks Inc asterisks, and press okay. And we get here our results. And you can see there, everything in blue has been included. So any items that have the word Inc are shown in here. Now, let's go on to another filter and put in contains. And now we're gonna use the question mark filter. So in here, we're gonna say, A?C. So the question mark means any one variable. So it could be ABC, it could be ARC, or it could be A, a space and C. So the question mark means any variable, and press okay. And we'll get out results here. In blue here we get ABC Telecom. We get Monarch Playing Card Company because it has the ARC, R being the variable, and Sombra Corporation, the space between A and C is the question mark, and Spade and Archer, well, the R is there question mark. So you get different combinations based on the question mark. Now, also you can do this in the search box. So in the search box, for example, let's type in INC. And in here we have the results that include the word INC, and put an asterisk. Then anything that begins with INC will be included. So you can also do this in the search box. (upbeat music) We can also filter by a multiple fields. In our row labels, we have the sales region and products. So if we go to our Pivot Table from the filter dropdown, we have the select field option there, and we can choose sales region or products. Now let's choose sales region. And then in the value filters, we're gonna put in there greater than 8.1 million. So cool, okay. And then press okay. So we only have Asia and Africa because the sub-totals are greater than 8.1 million. Now we can do another filter for our products and say values that are greater than 2,100,000. And we get the items that are bigger than 2.1 million. So you can do two filters when you have multiple fields in your row labels. (upbeat music) Now we're gonna apply multiple filters in our Pivot Table. Let's choose the filter button here. And for sales month, we're going to use a label filter, anything that contains ER, and press okay. So we'll get all the months that end in ER. Now, what we're gonna do is apply a values filter for any values that are bigger than 800,000. We choose the sales month and let's choose value filters greater than 800,000. Okay, so we get anything that's greater than 800,000, but we also want the sales month filter to include ER, and if we hover over our row labels, we see that our filter is only for sum of sales, which are greater than 800,000. And you have a multiple filter, we need to go into our options. So right-click anywhere in the Pivot Table and choose Pivot Table options. And under the totals and filters tab and the filters, we have the allow multiple filters per field. Now we need to check that and press okay. Now let's go back to our filter, sales months, label filter, contains ER, and press okay. So now we get all the months that contain ER and are greater than 800,000. And if we hover over there, we can see that we have the multiple filters, sales months contains ER, and value filters, sales months, sum of sales is greater than 800,000. So if you ever gonna do multiple filters, then make sure that you activate that option under the Pivot Table options. (upbeat music) How about sum of sales in our Pivot Table here? Now, so that we want to include the average of sales. Now we can do that, and we can also filter by that. Now let's our sales and drop it into our values area and from the dropdown arrow, which choose value field settings. And then we choose the average. And we can rename this to average and press okay. So we have the average of sales here. Now we can actually go and filter that. We can go to value filters then for example, we can choose greater than. Now in the show items, we have sum of sales, but in the dropdown box, we can actually choose the average so we can filter by the average, and in there we can put is greater than, and let's put in an amount, greater than 55,000 and press okay. And we have our average filtered by that amount. (upbeat music) How could I manually filter here for the products? And I wanna show you how to add new items into this manual filter. Now let's have a look at what's in here. What I have are the bottles and tonic selected and the rest is not selected. So if we go to our data table, what I'm gonna do here is just copy and add a new item in there. And I wanna change the products from tonic, I wanna change it to cider. Okay. Now we'll go back and refresh the Pivot Table and then we'll see what happens. It doesn't get updated in our Pivot Table, but what it does is cider is included in our filter list. So what we actually do is activate a setting within the Pivot Table, right-click and go to field settings. And in the filter, it says in here include new items in a manual filter. So we actually tick that box and press okay. So let's go back and let's add in another product and see what happens. Control + Copy, and paste in there. Instead of cider, let's put in a new product called beer. And we'll go back and refresh the Pivot Table. And we'll see what happens now. Right-click, refresh, beer has been included in there. And also if you have a look at the filter list, beer has been ticked there. So now we've added a new item in a manual filter. Now last one we're gonna do is bring beer on top, right-click and we can sort from A to Z and we have it there. So it's a good trick to know if you want to include new items in a manual filter. (upbeat music) When you have multiple filters like we have here, it's hard work to clear them all. For example, we've got a lot of filters in there, okay. Say we want to clear them with a click or a couple of clicks. Well, we'll have to go in there and press all, okay., and then go in there and press all, okay. So it takes time. That's not the quickest way. Let's press Control + Z to go back. Now one way is to click in our Pivot Table and go to the options tab and choose clear, and press clear filters. But there's another way, a quicker way. Let's press Control + Z to go back to where we were with all of our filters. Now in our quick access toolbar, we can add in a clear filter button. Now let's right-click in there and choose customize quick access toolbar. And in here we have the commands. Now the default setting is popular commands. Let's click on the dropdown button and we can go all the way down to the data tab, choose that. And then we have the clear filter button there. We click on that and we'll press add, and then we'll press okay. And you can see it's been added here. So now with a simple click, we clear all of our filters. Now this also works in your Excel tables. So a great tool to have when you're working with filters in a Pivot Table or in an Excel table. (upbeat music) In the column labels over here, there's no way that you could put in there a filter. Now if you highlight here, press filter, it doesn't give you the option, but I'll show you a quick work around. Click outside the Pivot Table and then press Control + Shift + L, and then automatically it adds in there a filter. So you can filter individual column items by going in there. Number filters, then you've got all these different options. (upbeat music) We have our P&L here shown in a Pivot Table, that shows the revenue, COGS and expenses for 2012, 2013 and 2014. And we want to show the top five expenses for each of the years. To do that, in the row labels dropdown box, we choose the P&L type and let's choose only expenses. So unselect all and choose expenses. Now press okay. So we have the three years of expenses there. And the next thing I want to do is see the top five values for each of these items. So once again, click back into our filter. From the select field the dropdown box, we choose the item and from value filters, we choose top 10. And instead of top 10, let's change that to the top five. And we'll keep these to the items and actual, and press okay. So we have our top five items there. Now, finally, we click in our Pivot Table. So it gets sorted from highest to lowest, right-click, choose sort, and sort largest to smallest. So they're all sorted there from largest to smallest. Now, finally, we can go to our Pivot Table tools tab and see a different layout. And just to show you how it looks, let's choose the outline form. So in the outline form, we'll have the year in one column, the P&L type in a second column, the item in a third column and the actual dollars in a fourth column. And in here, you can see the actual filters. So you can choose that. And you can see that we've chosen the expenses. And in the item, you can see that we have the value filter in the top five items. And also you can see that it's sorted from Z to A. Now, another good thing with the outline form is that you can see each of the field headings in here. So the layout depends on your personal preferences. And as you can see from this analysis by filtering and sorting, we can get the top five expenses in your P&L. (upbeat music) We have all of our channel partners and we have 123 records. Now, we want to find out the top 25% of channel partners and list them. So what it is is 25% on 123 gives us around 30 records. We wanna find out the top channel partners. Let's go down to our records by going Control + Down, and we'll see our grand total is around 33 million and let's go up. Now, the first thing we need to do here is right-click and then sort from large to smallest. Let's go to a row labels, value filters and top 10, and let's go to 25% of sum of the values and press okay. So let's see how many records we get here. We get 21, which we put here earlier, and it doesn't equate to the 30 or so mark we have there. So what this does is it gives us a top channel partners, that makeup 25% of sales. So we saw before that 33 million of total sales. So 25% of that is about 8.3 mil. Next one is let's go in there and value filters top 10, instead of percent, let's got to items. So in here let's count that. So what it does is it gives us the 25. So it gives us 25 items and it doesn't equate to the 30 mark that we're looking for. Now, I'll show you a workaround to get to our problem here. Okay, let's go in here and clear the filter. Now, a work around to this is to press Control + Shift + L while you're next to the Pivot Table. And then be tricks the Pivot Table to include a filter as you can see there. Let's press Control + Z to go back, and then another way is to go to data and press filter. Okay, so from in here, we can go to number of filters, top 10, change it to 25, from the dropdown box, choose percent and press okay. So now if we count all this, we can see that we have 30 transactions. So we get our top 25% of channel partners. (upbeat music) In our Pivot Table, we have our sales month and products in our report filter. And we have some multiple items in there selected January, February, and March, but we don't know which months are selected if we look at it from this view here. It says multiple items, but it could be any item from January to December. Now this was a real problem in earlier versions of Excel, but in Excel 2010, there's a new feature. It's called course license slicers. Slicers are large buttons that shows you what has been selected in your filters, or you can call them visual filters. Now let's insert a slicer. We have to click inside our Pivot Table and go into the Pivot Table's tools tab under the options, and in here, we click on insert slicer, and insert slicer. And we'll get the insert slicers dialog box. And in here, we have all the field lists. So whatever's in here is also included in the slicers. And we can select any one of them. Now we can select the ones that already active here, or the ones that are not, and let's let the ones that are active. Sales month and products. And then we can also select sales region and financial year. And finally we'll select the one that's not part of our Pivot Table, and that is salesperson, and press okay. And now we have our five different slicers. So let's arrange these slicers in our workbook. Just grab them and put them anywhere in there with your mouse. Okay. And the products we can bring down here. What we can do is just from the bottom, we can bring it all the way up and like this. Okay. So now we can see that the sales months in May have the three months selected as we said before, and also in our slicer sales month, we can see which months are selected. So now we get a view that's not available in the report filter. So it gets rid of the multiple items problem there. And we can see that we have Jan, Feb, March, they're highlighted in blue, and whatever is not highlighted that means it's not selected. What we can do is from the top right hand corner, we can clear the filter and the Pivot Table updates automatically, and as well as the report filter. And now we can choose a slicer that's not part of the Pivot Table filter. And then we can choose Homer Simpson and that gets updated automatically. Let's choose each one of them. Now in here, it means that in the sales region that they're available in Americas. And because they're grayed out here, Europe, Asia, and Africa, there are no values. We can check Americas. And let's clear the filters from here and go back. Now we can select multiple items by holding the Control key. For example, if we want Americas, we chose Americas, hold down the Control key, you choose Europe and choose Asia, and we get our Pivot Table updated accordingly. Now let's clear that. If we want to choose six months, then hold on January, press the shift key, and then go all the way down to June. And that highlights there automatically as well. Slicers are a great feature, they're new in Excel 2010, and they give us some visual filters that we never had before. (upbeat music) And let's resize our slicers. We can actually click in the slicer and we can resize it with our mouse up or down. Now, if we go too much up, then we get the scroll bar. So we just make sure that that's not there. And we'll do the same thing here. And also for salesperson, we can also scroll inwards if we like, Control + Z to go back. And now we can move this up here just to make that a bit neater and this one up here. And then finally we can get them months all the way to the bottom there. Okay. So we can just resize as we see fit there. Let's click out of the slicers. Now, when we click in any one of the slicers, we'll get this slicer tools option. And we get this option here, which is similar to the one in the Pivot Table. So once you click in the Pivot Table, you get the Pivot Table tools tab. So you get the options and design. And if we click in a slicer, we'll get the slicer tools option. And we have all these different options here. Now we have one that's called slicer styles. Click down there, we have our light version and our dark version. Now we don't have as many styles as we have in the Pivot Tables, but that's okay these are good enough. And another thing that we don't see is a live preview when we scroll over this. So we have to actually scroll and choose and then go back in, which is a bit annoying. Now, another thing you can do is if you hold on the Control key and choose all your slicers like that, you can actually go back to your slicer styles and choose one, and they all get updated automatically. You can choose from in there as well, Go to the light, and then you can choose from in there. There's a few different options where you can work with. (upbeat music) There are 14 different styles under the slicer styles, and you may not like one of them. That's okay. You can create a new slice of style by choosing the new slice of style option. And then you get a dialog box in here. Now you can rename this to John's Wicked Slicer. then you have the different slicer elements in here, which relate to the different parts of the slicer. Now, once you make a change, you get up preview in here. And to make a change, you just gotta click in that format area. So for the whole slicer, we're gonna put in a field of this color. You can also put in a border, if you like, or a font. Now the font will apply for the item in here. So we just press okay. And you see you get a live preview. Next, we'll go to header and then format. For the header, we'll fill it in with this color here. And the font will make it into a white font and press okay. Selected item with no data. Here we want to create a slicer where the effect is of a button. So to do this, we go to fill and then fill effects and let's choose a gray color here. And then on the shading styles, we can use the star here, but you have the different star, so you can choose your sample here. Okay, so if we choose that we get the sample, but we wanna choose this pattern here and press okay. And then press okay. And you can see it over there. Selected item with no data. Here we just want to make it flat gray, and press okay. Unselected item with data, the same thing here. Unselected item with no data, here we're just gonna make it into a white color and press okay. And the hover is whenever you hover over the slicers, you get the different color. So we can choose the same hover color for each of these four different hover options. So we go to the format. We can go to fill effects and then in here, we can choose this red and we can choose that hover effect. And we'll go and do the same thing for the rest. You can see here on the right-hand side of the preview, we get the hover options and now we can press okay. Now, if we want to make this a default slicer, then we can click that. So any new slicer that we insert, then this is gonna be our default style. Now press okay. Now to activate it, you just gotta click inside that styles and then you go to custom style. So you've gotta click on that. So here we have our slicer with our button looking effect. And if we hover over there, you can see the red hover color. If we choose an item, then everything else that has a value is in gray. And if we anything that doesn't have a value, is in white. So there it is there. Some pretty cool effects that you can do. And if you wanna go back and modify it, you can just right-click and modify, and you can make the changes there. You can also right-click and duplicate, and you can make some further changes and keep the changes that you make and you can rename it to whatever you like. Another thing you can do is you can delete it. You can also set as default. You can also add it to the gallery, to your quick access toolbar. And another thing that we can do is that if we have a current slicer that we like, and we just wanna make some slight modifications, then all we do is right-click in there and choose duplicate. And in here we can rename it to whatever we like. Name it John's Wicked Slicer 2. And then here we can make the changes. For example, we can put in a whole slicer, format, we can put in a dark background if we like here. And then our border, we can make it into a dash and apply it there. And the fonts, we can change the fonts here. Instead of black, we can make them gray and bold. We can also make it a little bit bigger, 12 and press okay and okay. And to apply it, we just click from in here, or you can open it and click there. So now we have an extension of one of our current styles. Now, finally, if we go to a slicer elements in here, I've explained briefly what the different elements are. And if you make changes, then what part of the slicer will change? So this is a great tool to have when you're formatting your slicers. (upbeat music) Now we can copy a newly created style that we've made previously into a new workbook. Now this is our new workbook here. And if you click on there, you can see the options. We have no custom styles. Now let's go back to our workbook from chapter 7.3. And in there, we have our custom slicer which we're created. Now we can move that onto the new workbook and then apply that custom slicer into all the slicers within that workbook. And to do that, we'll just select the custom slicer Control + Copy, and let's go back to a new workbook. And in here we just press Control + V. So now you can see that the custom slicer is in this workbook. All we're gonna do now is click on the old slicer and press Control + A to select all and then choose the custom style. Escape, and now we have the custom style here. Now, this slicer doesn't work in here. So what we're gonna do is just highlight it and delete it with our keyboard. So now we can use the new custom style into a new workbook. (upbeat music) Apart from slicer styles, slicers also have settings. Now to activate it, you can go into your slicer tools option once you click in one of the slicers, and then on the far left-hand side, you can choose slicer settings. And in here you have your slicer settings dialog box. That's one way, just cancel over there. The second way is just right-click in one of the slicers and the last option is slicer settings. So in here we have a few settings. First, we have the source names. That's the sales region that comes from the data tables. That's the field name. The second one is name to use in formula. And here you can use this slicer when you're using cube formulas. And the name you can name this to whatever you like, something different, just something to distinguish one of your slicers. So I could rename this to John's Slicer 1, and if I press okay, and then I click in the slicer, you'll see here on the far left that John's Slicer 1 is activated. So it's in the name box there. Now right-click, again, go back to slicer settings. And then here we have the header. So the header is over here, where you see sales region, financial year and so forth. And you can uncheck that. If you uncheck that, then the header goes. Right-click to go back in. Now you can display the header, but you can also rename it to whatever you like. Instead of sales region, we can name it sales continent, and press okay. You can see that's changed. Now, your data table has not changed. It's only the slicer that has changed. So if you click in here where you had sales region up here, now that is not gonna change. It's only the slicer. So it's only for cosmetic purposes. Let's right-click and bring it up again. Now we can also sort it here. We can sort it from ascending from A to Z or Z to A. If you click there and press okay, you can see that sorted. Now, right-click in there. You can also sort it from in here. Sort of A to Z or Z to A. Let's go back to our settings. We have the option here to use a custom list when sorting. Now we've used the customer list in previous chapters and we can activate this. Let's press okay and A to Z. And we'll see, the custom list has been sorted accordingly. And we created a custom list to have Americas first, Europe second, Asia third and Africa fourth. We can check that to go into our files and options. And in advanced, we go all the way down and then edit custom lists. And here we previously created a custom list. So when we're sort it A to Z, then Americas will be first, Europe second, Asia third, Africa fourth. If it's Z to A well, it will be the other way around. Press okay to exit. And then we also have a few other check boxes here that you can check or uncheck. Now this says here, visual indicate items with no data, show items with no data last, and show items deleted from the data source. So you can leave them on. Depends on what you like. I usually leave them on. And let's press okay. Let's click in one of the slicers and press Control + A to activate all the slicers. Now, if we right-click and bring the settings again, look, we can't change the names, which is fair enough. But we can get rid of the header for every one of them in one go, or we can rename the caption to call it cool slicers. And if you do that, then every slicer heading will be the same. Now, right-click to go back in there. We can also sort them all from A to Z in one go, just like that. And then also you have the custom list and also the check boxes if you want to show or not show some datas. So there's a few settings there that you can play with and you have the flexibility to chop and change your slicers. (upbeat music) With a slicer, you can resize it to make it to your own liking. Now, mainly you can click in a slicer, and then from in here you can re-size it whichever way you like, as big or as small as you'd like. Another way is to right-click and choose size and properties. And in here you get your dialog box size and properties, and you have here the size option first, and you've got the height. So you can make your changes there and you get the live update and the width and the scale, you have the height as well and the width. You can lock the aspect ratio. So if you change one thing, all of them change accordingly. Now we can also see the position and the layout. So we can move left or right. Up or down. You can disable it as well from there. Another thing you can do is add columns. Now you got one column here going all the way down, but you can increase that to two, three or four, as many as you like. Imagine you had a lot of information there, putting it in two, three or four columns is much better visually and aesthetically. This works well when you're using months. Now the button height as well can be adjusted, and the width as well. In properties, you can move and size with cells. You can move, but don't size with cells or you don't move or size with cells. You can also print object and lock it in there, and press okay. Now, another way that you resize is once you click in the slicer, under slicer tools and options, on the right-hand side you have the size, and the width, and you have the height. And also from here, you got the columns you can change. By pressing Control + A, you can select all of the slicers, and then escape to unselect. In here we have two columns, now let's bring it back to one. So they can all be the same. Now by pressing Control + A, we can increase the columns for all of the slicers. Press escape. Now let's press Control + A again. And in here we can align the slicers. We can align it to the middle just so they can be in order. Another thing you can do is when you got Control + A, you can move it around to wherever you like. (upbeat music) We have our Pivot Table, which has the financial year and sales region in the row labels, and the sum of sales in the values area. And now we're gonna insert a slicer. So we'll go to the Pivot Table tools, options tab, and choose insert slicer. And here we are gonna choose the quarters. So sales quarter, and press okay. And we can resize it and then move it up here. So we have our slicer for our Pivot Table, number one here. So we're going to insert our new Pivot Table now. So let's go to our data set, and in there we can choose insert Pivot Table and let's put it into our existing worksheet and we can move it in here and press okay. And now we're gonna put the salesperson in the row labels, the sales month in the row labels, and the sales in the values area. And we'll get out of that. And we have our second Pivot Table. Now this Pivot Table is called Pivot Table number four. And this Pivot Table here is called Pivot Table1. And we can change this to Pivot Table number two, just for our example. Now let's insert a slicer for our Pivot Table number two. And let's choose the products. Slicer, and put it in there. So let's resize it. Okay, so if we choose that, then our Pivot Table number two on the right-hand side gets updated accordingly. Now, what we want to do is connect these two slicers. So Pivot Table number one and Pivot Table number two, change accordingly. So if I choose Q1, then both Pivot Tables change based on that selection. And to do that, we need to select Pivot Table connections. One way is to go into the options tab and choose Pivot Table connections here on the left. Or another way, you just right-click in there, and halfway down, we have Pivot Table connections and we get this pop-up box that comes up. So what we're saying is that this slicer that we created is connected to Pivot Table number two on the right hand side, and that's right. Now we want to activate it and connect it to Pivot Table number one on the left, and press okay. Now we wanna do the same thing for the first Pivot Table slicer. It's connected to Pivot Table number one on the left, and we want to check it so it can be connected to the Pivot Table number two on the right, and press okay. So now if we choose Q1, then both Pivot Tables change accordingly. Q2, Q3, if we choose the products, then as you see both Pivot Tables change accordingly. So you can have multiple Pivot Tables, multiple slicers, and you can connect them all together and with the press of a button that will all be in sync and talking to each other. (upbeat music) I will show you a few different ways on how you can filter a slicer. The first way is to mouse click on individual entries. Like this. The second way is to hold down your Control key. Once you select one item, hold down the Control key, so you can select multiple items. The third way is to select one item and then hold down the Shift key and then choose the last item you want to select and let go of the Shift key. Now this comes handy when you have a list of items that are over 50 and you just want to select half of them. And my favorite is click on the first filter, and while the mouse is still being pressed, scroll down all the way, just like that. And again, scroll all the way up, all the way down. And then by holding the Control key, you can de-select items. So there's a few different ways on how you can filter a slicer. (upbeat music) I'm gonna show you how you can use one slicer to control two Pivot Tables without having to activate the Pivot Table connections. First of all, we need to click in our first Pivot Table on the left and select it by going select entire Pivot Table, then Control + Copy from the keyboard. And in here we'll press Control + V. So we paste it in here. Now what we're gonna do is we're gonna take out the financial year and the sales region and include in here the salesperson and the sales quarter, just like this. Now that we have the two Pivot Tables, they're using the same pivot cache. So if I click January, then they both change automatically. And if I select the first quarter, then the second quarter, and the third quarter and the fourth quarter. Now we can see this by going onto our Pivot Table connections, and the slicer is connected to both Pivot Tables. So there's a quick way where you can use one slicer for two Pivot Tables without having to activate the Pivot Table connections. (upbeat music) If you wanna send this report out to someone else and you don't want them to touch the Pivot Table, but allow them to use slicers, then you can do that. To do this we need to select one slicer, press Control + A to select all of them, right-click and choose size and properties. Under properties you've gotta uncheck the locked box and press close. And now we need to go into the review tab in the ribbon and choose protect sheet. Now in here, we're gonna select the first option. The select unlock cells. We have to keep them activated, so we can be able to select the unlocked slicers. And then one more box that you tick is the use Pivot Table reports. And we can put in here a password to protect that, or we can just press okay, and it'll protect without a password. Just like this. Now let's escape so we can unselect all the slicers. Now I'm clicking in the Pivot Table and nothing's happening. So the whole workbook is protected. But if I go on the slicers, I can actually select them just like this. (upbeat music) I'm gonna show you a cool way where you can use slicers and then have interactive employee photos show up. So here's our slicer. If we choose Homer Simpson, comes up. Ian Wright, myself here, and Michael Jackson. Now there's a few steps that want need to go through. And once you go through those steps, it's pretty easy to understand. Now, what I've used here is the camera tool to take a photo. And I've linked that photo by putting a named range called show employee picture. Now that name range has an offset function in it. Now the offset function is here. It says, start here. Now I've named that range. And I've also named the range number of cells down. So for an offset function, we have the first part which is where do we start? So it has a starting point and I've called a start here. So I've called it here on the left cell, A15, start here. The second part of the offset function is how many rows down do we go? And I've named this number of cells down. Now I have named cell A9 number of cells down. So as I change this, then it goes down accordingly. So one row down, three rows down, four rows down, two rows down. So by linking this picture with the offset function, we can go grab these pictures that we have here. And it brings them back into this photograph that was snapped by the camera tool. So let's go to the how to, and I'll explain how it's done. First of all, we need to create our table. So let's get our table here with our number and employee names. So we can Control + Copy and Control + Paste in there. So we have our table here and double-click there. So the first thing we can do is insert a Pivot Table. So let's grab our data and go to insert and Pivot Table, and we'll put it into our existing worksheet. Now let's pull that all the way down here, because once we insert a Pivot Table, we get all these area here and it's gonna overlap. So we've got a bit of space here. Now what we'll need to do now is to drop in the number field into the row labels. And that's all we need to do. We're not gonna put here anything else. So we've created our Pivot Table. Just one thing, right-click in here and remove the grand total. Okay, so we have the Pivot Table here and we're gonna press Control + X to move it here and press Control + V. Okay. So we have our Pivot Table here. Now, one thing we need to do now is name the range. So we're gonna make a selection, for example, number two and number three. So this cell here, D10, we have to name it because we're gonna use that for the number of rows to go down in our offset formula. So to name the range, we're gonna name a number of cells down. All we need to do is go in out main box in there and name it number of cells down. And we'll put an underscore as well because in our previous example, in the interactive employees, we used this named range. So just to distinguish that we'll put another underscore. And press enter. So now we have that named. Next, we have to insert a slicer. To do that, we click in our Pivot Table and go to options, insert slicer, and now we choose the employees. So we have the employees' names there. Now, if we select all we have all of them there. So let's put our employee names up there, just for now we'll pack it up there. So the next step is to define our name for our starting position because of the first argument in the offset function is our starting position. So we're gonna start over here and we're gonna call this, start here as a defined name. So in there, we're gonna call it a start here. Now we'll use that name in our previous example. So we just put the underscore again just to distinguish it. So we call it, start here. The next step is to make these four rows here high enough, so we can include our pictures. So I've made them about 100 and you can adjust it to whatever you like. And also you can make them as wide as you like as well. Step number six is to insert the pictures. Now you can insert pictures by bone going into insert, and picture, and you have them all there. Now let's cancel out of there. What I can do is just go back and grab these pictures. So Control + Copy, and Control + V. So make sure that it sitting there. So we've inserted our pictures. Step number seven, we need to define the name for the formula that will drive the pictures. So now we're gonna put in there the offset function. To do that, we'll go to our name manager and press new. We're gonna call that function that will get our pictures. Now you gotta make sure that there are no spaces in there for that to work. And this refers to, well, we're gonna put in there, our offset function. So we're gonna say offset, where is their starting point? And we've made our starting point, start here. So we're gonna put in there start here with the underscore, then comma, how many rows down? We've named that in there, number of cells down. So number of cells down and underscore. And the next argument is how many columns do we go right or left? And we'll put in zero and then a comma and then close brackets and press okay. So we've defined our range there. Step number eight is to take a camera shot of a blank space, large enough to fit our picture. So we can take a shot over here, but I'll show you an example. What you can do is just take a shot of a picture like this or space like this with your camera tool. Now, if you don't have the camera activated, you can activate it by going into file, options and quick access toolbar. Now from the dropdown box, we choose all commands, click in there and press C to go down to the camera tool. And then you can just press add in that. Now I've already added it. Press okay, and it gets added in here. So we've selected a range here and let's take a photo. So we've taken the photo and now we need to put it somewhere. Where do we wanna put it? We can put it in there. Just click anywhere. So we have our background. Now, finally, we need to reference this blank photograph to our offset named range. So we've defined our offset function with a name. So if you put out fun, it would give you the name tag there and then press tab and press enter. So now what it does is the offset function starts here, it goes a number of cells down, one. So it goes down here and it returns back whatever's in there into our camera shot. Now, if we choose Ian Wright, it goes down three rows from our starting position. So it goes one, two, three. So in here, it's looking in there and just taking whatever's in there and returning it back in there. So that's how it works. Now, finally, we need to format the photo here and just put in a background like this. And now you can use your slicer to bring up all the different pictures and you'll be as happy as Homer. (upbeat music) In chapter 8.15, we created a P&L by using calculated items. And now we're gonna add in some slicers where we can control the years and the months for the P&L. After that, we're gonna drop in the plan numbers and then do a comparison between the actual and the plan numbers. Now let's click in our Pivot Table and go to the options and choose insert slicer. And we're gonna insert the months and the year fields. So we have the year field here and let's just reduce the size here so we can drop it into the top left-hand corner, just like that. Now, instead of having a column heading called year, that's right-click and get rid of that, let's choose a slicer settings. And from in here under header, uncheck the display header option and press okay. Now let's just drag it up a bit and it can fit in there. Okay, perfectly. Next thing is to get the months. And again, right-click, slicer settings, uncheck display header, and from in here on the top options tab, we're gonna add in some columns. So we're gonna have four different columns, and then let's just resize this a bit so we can see it and we can just drop it in here as well. Okay, now the next thing that we can do is highlight the first slicer, press Control and with a mouse, select the other slicer, and then we can just change in the colors from in here. So now we have the different slicers, let's check 2012, and you see the number changes there, and then we can choose Jan, Feb, March, whatever month that we want, and then the P&L gets updated accordingly. We can do the same thing for 2013 and 2014. Now the next step is to add in another Pivot Table with the plan numbers. So let's highlight the Pivot Table, press Control + Copy. And in here we can just press Control + V and we've copied the same Pivot Table, but we can actually change this around. So instead of sum of actuals, we can get rid of that and let's drop into the plan numbers in there, just like that. Now, instead of having the field and items listed here, we can just highlight this column and right-click, and press hide. So we can hide that. And we can just reduce this a little bit further in there. So now we can use the slicers to change the actual and the plan, just like that. Finally, we wanna add in a variance. So we wanna see the difference between the actual and the plan. In here, let's just reduce this. And from in there, we're gonna choose the revenue. Now we GETPIVOTDATA, so let's escape out of that. Now to fix this, just click anywhere in the Pivot Table, go to options, and from the options dropdown box unselect the GETPIVOTDATA. Okay, now let's go back in there and let's do equals or plus. The revenue of the actual minus the revenue of the plan, and press okay. We can get this and drag it all the way down. And we have our values there. And in here we can put in the header called variance. We can click in there and from the format painter use the same formatting in there and the same thing in here. So now as we choose the different months, we get the actual, the plan and the variance. (upbeat music) We have our actual numbers for the year, 2014, and we want to create three different scenarios for 2015, 16, and 17. We wanna create a base case, a best case and a worst case. Now in our data set here, we have our actual values for 2014 hollered here in purple. Now all we've done is we've copied these values here and we've put in this scenario for base, best and worst case. So we'll just copy and paste the values, and our idea is just to change the name from actual to base, to best, and then to worst, because when we do our Pivot Table and we create the three different scenarios, we want the 2014 actual numbers to be shown all the time, because we're gonna do a variance analysis. Now, what I've done here at the bottom here is putting their 2015 values. So I've done the three different scenarios, worst, base and best. So I put in different colors just to distinguish them. And then in here, what I've actually done is I've put in a formula that relates back to the 2014 actual values. And I said, the worst case will be 95% of that. So I've done the same thing for each of the months. Now for the base case, I said that it's gonna be about 5% increase on 2014. And then for the best case, I say, it's gonna be about 20% increase 2014. Now I've done the same thing for 2016, but I've changed the values there. I said that 2016, the worst case will be the same as 2014. It's base case will be about a 10% increase. And then its best case will be about 25% increase. And the same thing for 2017, I said, it's gonna be a 5% increase on 2014 for its worst case, 25% increase for its base case, and then a 50% increase for its best case. Okay, so what I've done is I've gone through the Pivot Table in here, and what we have to do now is drop in our sales month into the row labels, our financial year into the column labels, and then our sales into the values area. And let's just double-click in there to make it even, and then just put it into the center and we can just make it a little bit bigger like that. So we have our values here, but what we can do now is drop in our slicer. So go to options, insert slicer, and let's drop in this scenario slicer and press okay. Now let's make a couple changes to this. Let's make it into four columns and then we'll just drag it across like that. And then right-click in there in slicer settings, and let's get rid of the display header, 'cause we don't have to save that. And let's just put it like that and put it on the top there. So we'll have all our scenarios here. So if you choose the actual case, then we just see the actual numbers for 2014. If you choose the base case, because we had the numbers in 2014 in base case as well, we can see that 2014 shown there and we've got it 2015 to 2017 base case scenarios, but we've got the best case and the worst case. So finally what we're gonna do is it drop in a value calculation to see the difference between the 2014 numbers. So click in the Pivot Table, grab the sales, drop into the values area. From the dropdown box, choose value field settings, show values as. From the dropdown box, we choose the percentage difference from. Now, the base field is gonna be the financial year and the base item will be 2014. So we're gonna show the values as the percentage difference from 2014 financial year. Now the custom name we'll just change that to percentage variance from 2014, and then in the number format, the custom, let's just choose this format here and before the semicolon, let's put in that percentage and the same thing there, let's put in a percentage and press okay, and then okay there. Let's just reduce this a bit. So we see the worst case scenario for 2015 is minus 5% on 2014, 2016 will be even, and 2017 is a 5% increase. If we go to our best case scenario, we see the different increases there. We have our best case scenario as well, and we can see the changes. (upbeat music) A calculated field is a newly created data field. This is created when you make a calculation with your existing fields. So in essence, you're adding a virtual column to your data set. And to create a calculated field, you gotta click anywhere in your Pivot Table, and then in the options tab under the calculations group in the field items and set dropdown, choose a calculated field, which is the first option and you get your insert calculated field dialog box. Now in the fields here, you have all the fields that are in your Pivot Table field list. Okay, so you can choose any one of them. Now on the top, we have the name and this we can change to customize it. So what we're gonna do now is get our cost of goods sold, which is our costs divided by our sales. Now the name, let's change it to cost of goods sold or short, COGS. Now in the formula, you have the zero there. You gotta get rid of this. Backspace to delete it. Now the next step is, choose your field. So to do that, we'll get our costs. We can click once and press insert field. And now we can use the mathematical science that we use in Excel. So we can use divide. We can also use the minus, plus, multiplication, we can use percentage, we can use to the power of, and also smaller than, bigger than or equals to. We're gonna use the divide. So cost divided by sales. Now let's find our sales and we can press insert field or double-click, and then we can add this. So it's added in our list here. And then we can press okay. Now when we press okay, you'll see that a new column will be created, and also COGS will be added into our field list as a virtual field. Press okay. So COG is added there and also in here in our values. Now, one thing we need to do is to right-click in here and number format, because it's a percentage, we need to use the percentage and press okay. So just to format it there. So we have our cost of goods sold there. And finally, we can go into our values area and change the name from sum of COGS to COGS. Now click on the dropdown box and choose the value field settings. And in here we can get rid of this. Now, what I usually do is put in an asterisks there, just so I can distinguish that it's a calculated field. Because if not, then you may confuse, you may think that this COGS might be a summarized value, or it could be a calculation. So it's always good to put some kind of sign beforehand just to distinguish it and to show us that it is a calculated field. Now let's press okay. And we have our COGS in there. So what we can do now is when we filter our Pivot Table, then this calculated field changes as well. Now if I put in there the sales month in there, then that will change as well. If I take out the financial year in there, we have our COGS which gets recalculated. So it's embedded into the pivot cache just like a grand total. (upbeat music) Now, we can use any existing calculated field to create a new calculation within our calculated field. And to do this, let's click in our Pivot Table and go to the options tab and under calculations, choose fields, items and sets, and choose calculated fields. What we want to do is calculate our sales margins. So the calculation will be one minus COGS. First of all, let's change the name and call it sales margin. And in our formula, you get rid of the zero. And then put in one minus. And here we're gonna choose COGS. So our previously created calculated field is included in our field as well as our field list. So let's double-click on COGS and press okay. So we get our sales margin there. Now we need to format the numbers into percentages, right-click and press number format, and percentage, and this put one decimal place just to activate the percentage symbol. Finally, we're gonna put in an asterisk to our sales margin just to distinguish it, so that we know it is a calculated field. To do that, click in our dropdown arrow, and choose a value field settings. In here, we get rid of sum of sales. And if we get rid of these and press okay, we'll get an error message, that the Pivot Table field name already exists. Well, that's correct because it exists in our field list down here because we created that in our calculated field. So we'll need to distinguish it. Now we can put in a space and that will work because Excel recognizes space as a character, but instead of a space, because we want to distinguish this calculation as being a calculated field, then we'll just put in an asterisk, and then press okay. So we have the sales margin there, which is our calculated field, just like our COGS. And up here, we have our sales margin and our COGS. So we've used one calculated field to create a second calculated field. (upbeat music) If you made a mistake whilst creating a calculated field, then you can go back and edit it. Now to do that, you click anywhere in the Pivot Table and choose the options tab and then fields, items, and sets, and calculated field. In here from the dropdown box, you've got your calculated fields. Now we can choose our sales margin. We can modify or delete. If we press delete, then it'll delete the calculated field from our Pivot Table and our pivot cache. Now let's press that just to see, and press okay. So you can see that it's gone from there. And sales margin is also gone from our pivot cache and our values area there. If you press Control + Z, you can't go back. You have to go and recreate it. So once you delete it, make sure that you're certain that you don't want the calculated field before you proceed. Now to modify our calculated field, we can choose calculated fields. And from our dropdown box, we choose our COGS. Now, first of all, we gotta press the modified button. So in here we can make our changes. So instead of costs divided by sales, we can say, for example, one minus costs, and then we can press okay. And you can see here the change we've made. Now one minus cost, it means nothing. I'm just showing an example that you can go there and modify it. We can go back and change that. Once again, COGS, modify, instead of one minus cost, it'll be cost divided by sales, and then press okay. So the changes we made and the calculated field also remains in our Pivot Table field list and our values area. (upbeat music) Within a calculated field, we can use any Excel functions like a sum, an if, an or, an and, or an average as an example, as long as I don't reference external cells. Now, let's create an if statement. Click in our Pivot Table and go to options and fields, items, and sets, and calculated field. Now in the name, we're gonna change that. So what we want to see are rebate given if our sales are more than 700,000. So if our sales are more than 700,000, then we're gonna give a rebate of 3%. So the name will be rebates given, and the formula, we'll get rid of zero. Now we'll start typing in the if statement just like we would in our Excel workbook. Now, one thing in here is when you're typing in an Excel function, you don't get the help bar. So you gotta make sure that you know what each step within a function needs to be. So within and if function, the first step is our argument. So if sales are more than 700,000, then we have to give a 3% rebate on sales. So would be sales times 3%. If not, then zero rebate, close brackets and press okay. So you can see there, we have our rebates given for anything over 700,000, anything less than 700,000 is zero. Now just make a note that we have to get rid of the sub-totals and the grand totals, because what's happening is that when you're doing a calculated field, that it's also calculating each sub-total. Now this is not correct because our sub-total for January is 23,000. That's the only a rebate that was given. But here we're getting 81,000. So make a note of that when you're doing calculated fields, and you have an if statement where you can get zero values, then you gotta make sure that the sub-total is turned off. So to do that, we just go into the design, sub-totals, do not show sub-totals, and then grand totals, off for rows and columns. One final step is to rename our rebates given in our values area. From the dropdown arrow, choose value field settings, because we want to distinguish our calculated field. Then we just put in there an asterisk, and then press okay. So we have our rebates given. So it's that easy to create a calculated field with an Excel function. (upbeat music) A calculated item is a virtual data item, created by using a row label or a column label item. So calculations will be based on the items in the months row label and also the years in the columns labels. Now, when we did the calculated fields, we used the field list to do our calculations, but now we're gonna use the items within the field list. So let's click anywhere in our row label or column label. So if we go to options and field items and sets and choose calculated item, we'll get our dialog box. Now on the left-hand side, we have the fields and on the right-hand side, we have the items. So we're gonna use our items to create a formula. Now, what we wanna do is create a bonus scheme. So for the first half of the year, we give a 10% bonus. And for the second half of the year, we give another 10% bonus. So our formula name will be H1 Bonus, and then in the formula, we get rid of zero. And we're gonna put 10% times, now in here we can put any mathematical equations that we will normally use in an Excel function. So we can use the times, the plus, the minus, the power, less than, more than and equals to. In our example, we'll use the times. So 10% times and a bracket. So the first half of the year, it'll be January plus February, plus March, plus April, plus May, plus June, close bracket and we're gonna add this. Okay, so we've added this in there. Now we again create a new formula for H2. So we can override this, that's fine. So let's get rid of the content in there. And what we need to do is choose a sales month. Now it gets added in here. Now that's fine. If you press okay, it's not gonna work because we're in calculated items and it can only take in the items. So let's get rid of this. And let's put in our months from July to December. July plus August, plus September, plus October, plus November, plus December. Now, you'll see here that our calculation that we did before is included in items within the sales month. And we can use this later on to make further calculated items. Okay, so we've done our H2 Bonus and press add. And we'll see, it's gonna get added in the bottom of our row labels. Press add, and then okay. So we have our H1 Bonus which is 10% of the first half of the year. Now we see our sum there is 5,011,116. So our bonus will be 10% of that, which is here, which is correct. And from July to December, our sum is 5.3 million and we have the same there. And it calculates it for each year as well. Now the grand total, make sure that that's where you stop, because if you add this, it adds the H1 Bonus and the H2 Bonus as well into the grand total. Now that's a shortcoming of calculated items. So we have to delete the grand totals or any sub-totals that you may have. So to do that, go to the design, grand totals off for rows and columns. (upbeat music) We can use an existing calculated item within their new calculation. What we wanna do is get our H1 Bonus and see what our average is for the six months. So it'll be the H1 Bonus divided by six and the same thing for the H2 Bonus. And to do this, let's click in our row labels, and go to the options tab and choose the field items and sets and the calculated items. In the name, we're gonna call it average H1 Bonus. In the formula, get rid of zero. And we're gonna choose the H1 Bonus. I wanna divide it by six, and then we can add this. Next we're gonna get the average H2 Bonus. We can just override these and get rid of this first, and let's go back to our sales month. Okay. And get rid of sales month. Now, let's choose our H2 Bonus, insert item, and divide it by six. And we can add this and press okay. So we have our average H1 Bonus, which is 101,000, and our H2 Bonus 89,000 for 2012. For 2013, we have the same values. And 2014, we have the calculated item as well. So you can use previously created calculated items and you use them in your new calculations. (upbeat music) There's a couple of ways to edit a calculated item. First of all, let's click in our row label, go to options and fields, items, and sets, and calculated items. From the dropdown box, let's choose the average H2 Bonus. Now in here, if you want to delete it, you can just press delete, and press okay. Now that's gone forever. So before you deleted anything, make sure that you really wanna delete it. If not, you gotta go back and recreate the calculated item. Now, if you wanna modify a calculated item, just go back and choose calculated item. And for a dropdown arrow, choose average H1 Bonus. Now we can make changes to the formula here. That's fine. We change that to eight or 12 or anything like that, but if we make any changes to the name, for example, we change that one letter, then it adds whatever we're making here as a new calculated item. So if you wanna modify a calculated item, you can only modify whatever is in the formula. So let's go back and press S. So for example, instead of six, we can change it to 12 and modify and press okay. And you see that changes there. Okay. Another way where we can make a change is within the Pivot Table. Now the formula is there. So we can go back and change that to six and press enter. What happens is it only changes that for that here. So you need to go and change it for each subsequent year. You can also change the name there. Instead of average H1 Bonus, you can call that average bonus. And if we go back to our calculated item, then you see the name there has changed as well. It can be a little bit tricky when you're modifying within a calculated item. So just make sure you take care before you make any changes. (upbeat music) We can also use Excel functions to calculate an item, as long as they don't reference any external cells. So you can use functions like sum, if, or, and, average, and so on. Now to do this, let's click in our row label and go to options and fields, items, and sets and calculated items. So what we're gonna do here is get the average for 2012, 2013 and 2014. So in our name, we can call that average. And in our formula, we can go back, get rid of the zero. Let's put in average, open brackets and put in January, February, March, April, May, June, July, August, September, October, November, and December and close bracket, and we can just press okay. And then we'll get out average here for each year. And we can check this. Let's highlight Jan to December and in our status bar. We have our metric set. Now, if you don't wanna have this just right-click, and you can choose here, the average count, numerical count, minimum, maximum or sum to activate it. Now we can see that our average is 865. If we go back 865. So the same thing for 2013 and 2014. (upbeat music) We've been using calculated items in our row labels. We're gonna also use them in our column labels. So to activate that we can just click anywhere in the column labels and then go to the options tab, fields, items, and sets and choose calculated item. Now in here, we can create our formula. So what we're gonna do is get the variance between 2014 and 2013, and also 2014 and 2012. So put in here variance 14 versus 13, and get rid of the zero and the formula will be 2014 minus 2013. And let's add this. And let's do another one. Variance 14 versus 12, and in here financial year. Okay, let's get rid of financial year and choose 2014 minus 2012, add, okay. So we have our newly created calculated items that give the difference in our column items. And it's important that we name them as we have, because if we filter, for example, take away 2012, then we'll know what these values relate to. And to go back, we just filter off. Another thing is that we can put him in there sales regions, add it in there, and that calculated item will also calculate in there. Also we can go to design and add in our sub-totals to the top of the group. And again, we have our calculated item working there as well. And you can also do this if you had actuals versus budget instead of years. It just depends on what items you have within your data source. And if you put them across the column labels, well, you can do your calculated items there. (upbeat music) There are a couple of limitations when you're using calculated items. One of them is if you have the average sales here, like we do average of sales in our values. And also you can see there, we've summarized it by the average. And say, we want to go into our row label and calculated item from there, we get a warning that averages, standard deviations, and variances are not supported when a pivot has calculated items. So that's one short form. Now, if you had a calculated item in here already, and you wanted to add in there an average standard deviation or a variance, then that also could not be done. Let's go to our next shortcoming here, grouped items. We have group sales here. Now let's go into our field items and try to put in that calculated item. Again, we get a warning that we cannot do this because the Pivot Table report field is grouped. Now, if we had a calculated item in there and wanted to group anything with a calculated item in there, then that also will not work. And finally, when you're in a row label here, you can only do a calculated item for the actual row label that you're in. So with selected products, you can go and create a calculated item for salesperson. To do that, you gotta click in salesperson and then go to fields, items and sets, and choose calculated item. If you wanna do it for products, you gotta click in products and then choose calculated items. (upbeat music) I'm gonna create a couple of calculated items. One for the row labels and one for the column labels. And then I'll show you how we can use the solve order to get around a problem that can occur. So, first of all, let's do a calculated item for our month, click in the row labels there and go to the options and fields, items, and sets and choose calculated item. And our formula will be the December sales divided by all of the year sales. So we want to see the weight of sales in December. So let's change the name to December portion percentage. And in here, we're gonna choose December and then we're gonna divide it by the sum of all the months. Close bracket and press okay. Just to make this a bit bigger and in here. So we'll go to the home tab and then we just put in a percentage in there and we just put a decimal place if you like. And next let's sum the different regions that we have. So we're gonna sum Americas and Africa into West and Europe and Asia into East. So to do this, we just gotta click anywhere in that column label and go to the options in the fields, items and sets, choose calculated item. In here, we're gonna call first formula East, and we're gonna choose Europe plus Asia and we'll add. The next formula will be West. And in here we're gonna choose Americas and Africa, and press okay. So finally we change this around. So Americas and Africa we can put together along with West. And then Europe and Asia are together and the totals are there. Okay. Now let's just format this a bit. Okay. And in here, we'll put up a bold for the West and for the East, we can bold that. So we can see our results. And we have a problem here in that the calculation that's down here is not the same calculation that's in the December portion. It's giving us a wrong calculation. So we can fix this. Let's go to the options and fields, items and sets, and choose solve order. Now in here in solve order, it says, if the value in a pivot cell is affected by two or more calculated items, the value is determined by the last formula in the solve order. So we have two different calculated items. So what it's doing, it's taking the last calculation that we did, the West, which is Americas plus Africa. So it's taking that calculation to calculate this. We don't want that. Now we're gonna move the December portion percentage to the end so it can take effect. Now to do that we click and then move it down and press close. And you can see the percentages have changed. And also you can see there that the formula has changed, and in there the formula has changed. So can you use a solve order if you have two or more calculated items that are clashing. (upbeat music) Every time you create a calculated item or a calculated field, then the formulas that you use are listed. Now to check that you just click anywhere in the Pivot Table, go to options, fields, items, and sets, and then choose a list of formulas. Now, in here, we have our calculated item formula for the December portion. Also we have the calculated item for our column labels. Choose that, and we can see the East formula equals Europe plus Asia. The West formula equals Americas plus Africa, and with December portion percentage, equals December divided by the sum of the whole year. And they're listed in order of one, two, three. So the December portion is the last solve order, and that takes precedence when there are two or more calculated items that clash. So this is a good way to see what calculated items or calculated fields that you have in your Pivot Table. (upbeat music) Now we have our calculated field here, which we created earlier. Now we're gonna remove this temporarily. If you can see here on the right-hand side, on the Pivot Table field list, we have the COGS calculated field in our pivot cache. We can just uncheck and remove it. And then we can go and do some adjustments to our Pivot Table. For example, we can take out the sales region and sales month, and we just bring in here the quarters. And if you want to bring in the COGS again, then we can bring it in there. And the only thing is that we just need to format this into a percentage, press percent and press okay. So you can temporarily check or uncheck the calculated fields. (upbeat music) The order of operations is a rule used to clarify which procedures should be performed first in a given mathematical expression. The calculations in a Pivot Table also follow this order of operations. For example, we have our table here called order operations listed by first to last. So the bracket take precedent, then the percentages, then be exponents, then we have the division and multiplication come next. Now these are equal in precedence. Addition and subtraction, come next. Now these are also equal in precedence. And then we have the comparisons. Now let's go to our example up here, just to have a look. We have the formula two plus four times five. So in here, the multiplication has a higher order than the addition. So this will get calculated first. So the four times five will get calculated first. So four times five is 20, and then it'll add the two because the addition comes after the multiplication in the order so we have 22. Now in the next example, we have put brackets between two and four. So obviously the bracket which come first in the order of operations take precedent. So it will calculate two plus four first, which is six, and then it'll multiply it. So six times five is 30. Now this order of operations is also used in Excel and in your calculated items and fields. So when you're making your formula, just make sure that to look at this order of operations, if your formula is not working properly. (upbeat music) In this chapter, we're gonna create a P&L where we show the revenue, COGS, gross profit, expenses, and then get our operating profit over the 12 months. And what we're gonna do is add in a trend line by inserting some sparklines. And also we're gonna put in a slicer to see the different years. Now, we're gonna include calculated items in here and the calculated items are the gross profit. So the calculation will be revenue minus COGS. And then the second calculated item is down here, which is operating profit, which will be the calculation, gross profit minus expenses. So we have our data in here and we have our months going down on the month column. We have our different years. We have a different P&L types, separated COGS, expenses and revenues, and they're separated into the different items. So we have different expense items as you can see in a normal business. And we have the actual values and the plan of values. So this is a typical P&L that you find in most businesses. Now, from in here, we can create a Pivot Table. We go to insert, and Pivot Table, and we'll put it into a new worksheet, and press okay. In the row labels, we're gonna drop in the P&L type. And then we can drop in the item at the bottom. And then on the column labels, we'll put in our months and in the values area, we'll put in the actual dollars. And let's close this, and we have our P&L taking shape. Now let's just make a few design changes. We can choose this Pivot Table design, got to view and get rid of the gridlines, but we can reduce this to about 80%. Now, the grand total, we don't want that. We can just click on grand total, right-click, and then remove grand total. So we have our P&L here. Now let's click on COGS, and we can actually bring the revenue up there by just typing in revenue. REV, and you'll see, it gives us the revenue option. And then press tab. So it automatically moves the revenue from the bottom to the top. We have our COGS, and that's fine. Let's minimize that. And now we have the expenses there. So what we're gonna do now is get the gross profit. So let's click anywhere in our P&L type item. And then go to the options and fields, items, and sets. And in here, which choose calculated item. Now, the calculated item we're gonna do is gonna be called gross profit. So it's gonna be revenue minus COGS. So the name is gross profit. And the formula we just click there, and backspace to get rid of zero. And then we're gonna get the revenue. Double-click, the minus sign, and then double-click on COGS. And then we'll press okay. And you can see it's added it down here, gross profit. Now it's calculated all the different items that belong in the revenue, but we don't want that. So what we're gonna do is the actual values are within the sub-totals in here. So let's minimize gross profit and let's go up here. And then we can just click on there and grab it and just put in there. Now let's right-click and to show the field list. And from the values area, let's just format the numbers. So we're gonna put in there a comma. Let's choose number format, and then number, no decimal places and use 1000 Separator, and put a negative red font there. Okay. So we've entered our first calculated item called gross profit. Now we're gonna add in our second calculated item, and it's gonna be called operating profit, and it's gonna be the calculation of gross profit minus expenses. So firstly, we have to put in our cursor in one of the items within the field name called P&L type. And anyway, here in the blue area, we can choose and then go to options, fields, items and sets, calculated item. Now from the dropdown you see we have the gross profit, but we wanna create a new calculated item, and we wanna call it operating profit. In the formula, let's get rid of the zero. And then in the items we have the gross profit, which was the calculated item that we created earlier. Let's double-click there and then press minus and then double-click in expenses and then press okay. And we'll see we have the different calculations for the operating profit. Now in our operating profit here, we have the expenses being deducted from the gross profit amount. Okay. So now let's go to the operating profit. Now we don't actually need these numbers here, they don't mean anything to us. We just need the sub-total there. So let's minimize operating profit and then go all the way up. Now, one thing is, let's get rid of the grand total there. We can go to design, grand totals, and off for rows and columns. Now let's select the months there and right-click, and column width let's choose 12. Now in here, we're gonna put in our trend. So we're gonna put in some sparklines to see our months and how they're trending. So let's type in trend and we can click there and format the painter and just bring it in there. Now, one thing let's make this centered, okay. And we can just the format there. Okay, so now let's go into insert and sparklines. Let's choose a column for our sub-totals. The data range will be January to December. Press enter and then press okay. So we have the sparkline, let's make this a little bit bigger. Now let's choose a different color. We just get a light color there and then under the marker color for the high points, we want a red. So we wanna see the highest points. So we'll see here that our fifth month was the highest point. Now what we're gonna do is press Control + Copy and highlight this area, hold on the Control key, and then highlight the operating profit. Let go of the Control key, and now I just press Control + V. And it fills in these sparklines for the respective sub-totals. Now we're gonna put in a sparkline in here. So go into insert and let's put a line, data range, January to December, press enter, and then okay. Now once again, the color will go blue color and that high point we'll make it red. And again, Control + Copy, select that, hold the Control key down, and then select the other range. Let go of everything, now Control + V. So we have entered the different sparklines there. Now, last thing we wanna do is put in a slicer on the top here so we can tell the years. So click in your Pivot Table, options, insert slicer, let's choose a year and press okay. So from in here, we can actually now this is selected, choose the columns two, three, and then we can just make it a little bit bigger, and right-click in there and then slicer settings, let's get rid of the display header, and press okay, and we can bring that like that. And let's put it in the corner there. Okay. So we have our P&L here with our sparkline trends, and our years here. So if we choose a year, 2012, the numbers change, the sparklines change, the same for 2013 and the same for 2014. And I think your boss would be pretty proud of the final product. (upbeat music) in this chapter we wanna create a variance report for our sales regions and products over the different quarters. And we've used the calculated fields to calculate our variance. So what we've done is we've got the actual versus the plan. Now you can see that in yellow for each of the quarters and also for the total on the right-hand side there. And with our slicer, we can actually change the months and our calculated fields change as well. So let's go over to our data table and I'll explain to you how we can set this variance report up. So here we are in our data source. We have the customer, product, salesperson, sales region, as we had before, the order date. And here we have the actual and plan. And we're gonna use these fields here to calculate our calculated field. So we're gonna say the actual minus the plan will give us our new calculated field. Now let's click anywhere in our data table and go to insert, and Pivot Table. And we'll go in and put it into a new worksheet and press okay. Now the row labels, we're gonna put in the sales region and the products. On the sales value, we're gonna put in the actual and the plan. And in their column labels, we're gonna put in there the sales month. And let's grab the sales month and just bring it on top there on the column labels. Now this view, we're gonna see the actual and then the plan. And then we're gonna add the calculated field in the next column down here. It's gonna say actual minus the plan and will give us the variance. So let's close in here and do some cosmetic changes. And we'll go to view and get rid of the gridlines. And then let's minimize this. Let's go all the way down like that, like that just for now. And we can make the changes later. 'Cause another way in our Pivot Table, we can just go to the options and choose the fields, items and sets, and then choose a calculated field. Now in here the name, we're gonna call it actual versus plan. Actual versus plan. And the formula, let's get rid of the zero, and we're gonna double-click on the actual field, put the minus, and then double-click on the plan field, and then press okay. So you can see there the sum of actual versus plan has been added for each of the months. We go right across there. You can see that's been added there. Now, let's click and right-click on show field list. Now the sum of actual versus plan, the calculated field has been added into the values area. Now let's choose a drop-down, go to value field settings. And instead of calling it sum of actual versus plan, let's get rid of this, and let's put in an asterisk. Just to distinguish this that it is a calculated field. And then just press okay. Let's go to select entire Pivot Table, then select values and then press Control + 1 to bring up the format cells dialog box. And in the number, let's just format the number, get rid of decimal places, the 1000 Separator and the red and negative font and press okay. You see that changes that for everything there. Now what we wanna do is a group our months into quarters. So let's highlight the months that we wanna group, right-click click in there and press group. Now the default name, Group 1 is shown, but we can overwrite that by just typing in Q1 in the keyboard and pressing enter. Let's do the same thing for the other months. Let's grab April, May and June, right-click, group and call it Q2. Let's grab July, August, September, and call it Q3. And then finally, October, November and December, right-click, group and call it Q4. Let's just make this a little bit neater. Okay. Let's pull up on the left. 'Cause now that everything's grouped, we can just right-click and expand, collapse, collapse entire field. So it collapses all the fields and we have the actual versus plan for each of the quarters now. So let's highlight the actual versus plan. Hold the Control key down on your keyboard, and let's just select the calculated field. And then in the font, let's put in a yellow font, just to distinguish it. Now, if we hover over the actual versus plan calculated field, we get a little black arrow. Now press the mouse, and then it highlights everything. Press Control + 1, and we get the format cells in the border. We can put in there a black or a blue border. Let's put in a blue one. And then on the right-hand side, just to show where the actual versus plan finishes. In the column labels and the row labels, we don't want that. Let's go to options and then get rid of the field headers. Now, finally, we're gonna put in a slicer just to see the different years. So let's make a bit of space in there to put in the slicer. Click around in the Pivot Table, go to options, insert slicer, and let's grab the sales here. So financial year and press okay. Now right-click in there, go to slicer settings and click in there just to get rid of the display header and press okay. Now let's move this like that. And then the columns let's make it into three columns there. And we can move it over there and we can change. So with a slicer, we choose 2012, the actual versus plan calculated field which changes for each quarter and the total. 2013, the same thing, and 2014 as well. So here's a quick variance report created by using a calculated field for your actual versus plan fields. (upbeat music) With chats, you can roughly see your data and can easily see trends within your data. Now in a Pivot Table, you can insert pivot charts. Now this is a visual way to see your Pivot Table data. A pivot chart is an extension of your Pivot Table. So as you're making changes to your Pivot Table, then your chart also gets changed. So let's insert a pivot chart. Well, first, we have to click in our Pivot Table and in our Pivot Table tools tab in our ribbon, we choose the options and on the right-hand side under tools, we have pivot chart, and then we choose there. Now we get our insert chart dialog box, and we have the different charts on the left. Now let's insert a simple column chart and press okay. So now we have our chart in here. And note that the X-axis has the sales region. So all the row labels are always in the X-axis. And then the Y-axis, we have our years and our values. If we wanna move around the sales regions to the column labels, we can do that. And you'll see that our pivot chart will also change. So let's get the sales region from the row labels to the column labels, and then the financial year down to the row labels. As you can see now in the X-axis we have our financial year and on the Y-axis, we are showing our regions. And you'll also note that when you're using a pivot chart, that the names change here. So instead of row labels, we have axis fields categories. Instead of column labels, we have legend fields series. Another thing that you will notice is that we'll get our filters in our pivot chart. So we can actually filter from in here. So we can choose the financial year just to include two years, and that gets changed, as well as our Pivot Table. So they're both connected. So this pivot chart is an extension of the Pivot Table. Now we can make the changes from the Pivot Table and select all and pivot chart gets changed as well. Sales regions, we can just choose one. This gets amended and so does our Pivot Table. We can also go back to our Pivot Table and make the changes there. Now these report filters within our chart takes up space. So I like to get rid of them. Now, just hover over one of the report filters and right-click, and then choose the hide all field buttons on chart. So now we're just showing our chart. Now we can use our Pivot Table to control the filters, and change our chart. Go back and select all. So this pivot charts give us the power to visually see our data within our Pivot Table. (upbeat music) Now, if we click on our pivot chart, we get the pivot chart tools on the ribbon here. And we have the design layout format and analyze. Now let's click on analyze. In here, we can see the field buttons. So we can show all or we can hide it all. We'll choose whichever ones we want to see. We also have the option to see our field list. We can clear all or clear all filters from here. We can also refresh the data and we can insert slicers. Let's insert a slicer. Now we've covered slicers in our chapter seven. Okay, so let's go and choose our sales quarter. And then we can also choose our salesperson and press okay. So we'll have our two slicers added in here. And we can just move them a bit like this. Okay, so as we choose the salesperson, then the chart and the Pivot Table gets filtered automatically. Now the same thing for the sales quarters. If you wanna say Q1, Q2, Q3, and Q4. So the slicers, it gives us a visual way to see our filters that we have selected. Now we can also click in our Pivot Table and choose options and insert slicer, and from in here we can choose our financial year and press okay. And now we can choose 2011, 2013 and 2014. So there's a couple ways to insert a slicer. And once you insert them, they're all connected to the pivot chart and also the Pivot Table. (upbeat music) If you click in your pivot chart, you get the pivot chart tools tab. And we have analyze, format, layout and design. Now under the design, we have a few different options here. First of all, we can change the chart type if we click in there. We can choose any of these charts to change them to. Let's choose pie chart and press okay. And you see that that has changed. We can go back, choose aligned and then that changes as well. Let's choose an XY scatter and press okay. Now we'll get a warning that we can not use an XY scatter, bubble or stock chart type with a pivot chart. So that's the only limitation to choosing a chart, is there'll be cannot choose these three charts. Press okay, and we can go back. Now we have some more information here. We can switch the row column. So we have the years in our row labels and our regions in our column labels. And we can switch that around by pressing this. As you can see, the Pivot Table has changed and so has our pivot chart. You can press it again to switch it back. Now in the chart layout, in the dropdown arrow here, you have 11 different layouts to choose. We either have the chart title, the axes titles, the legend, and the data labels in different formats. So you can pick and choose from in here, whichever format you like. And some of them work well, others not, but you have the option to have a look. Okay. Another thing that we can do is choose a different chart style. So from these dropdown arrow, you have the multi-colors here. You have the gray look and let's move that over here. So you can look at the different colors. Now we can choose in there. This is a 3D look. Of course you can choose these different styles here, just depending on what you're trying to achieve. Personal preferences. I like this style here. And finally, on the far right-hand side, we have the location where we can move the chart. So if you click on there, you have the option to move the chart, it says, choose where you want the chart to be placed. We can create a new sheet or we can move it within one of our existing sheets. Now the pivot is a pivot sheet here, and our data table is a data table sheet there. We can move it to a new sheet and then press okay, and then move it into a brand new sheet and it's called the chart 5. Now in here, if you go to your Pivot Table and you choose a quarter and you go back, then this changes accordingly. Now we can go back to our analyze and put in our field buttons from in here, and then we can choose our filters from in here. If you wanna move it back, go back to the design, move chart, object in, pivot where we were before. And it moves it back in here. (upbeat music) When we click in our pivot chart under pivot chart tools, we have our layout tab. Now in here, we have the different labels, axes, background, and analysis that we can choose. Now for labels, we have the chart title. The first option is none. Then we can center it overlay title, and then we can center above chat. Under the axes titles, first of all, the primary horizontal axis, which is on the bottom of the chart, we can choose the title below the axis, or we can have none. We can also choose more options in here where we can format it. Go to the vertical axis on the left-hand side of the pivot chart, we can have the rotated view, the vertical title and the horizontal title. And once again, we can go to more primary options down here. In the legend, we can turn it off. We can show it on the right, at the top, left, at the bottom of the chart, we can overlay it at the right, or we can overlay it at the left. And we can choose more options here where we can format it. And the data labels, we can switch them off. We can center them, inside end, inside base and outside end. And more options there. On the data table, we can show data table at the bottom, we can show with legend keys. More options down there. On the axes, the horizontal axis, which is the bottom. We can have none, we can show left to right, we can show axis without labeling, we can show right to left axis. The vertical axis, we can have none, we can show default axis, show axis in thousands. We can show axis in millions, in billions, and show axis with log scale. Let's go back here and set it up to the left to right and default axis. In the gridlines, we can have minor gridlines, major and minor gridlines. In the vertical gridlines, we can have major gridlines, minor gridlines, and major and minor gridlines. In the plot area, we can have none, we can show the plot area. We also have more plot area options. Now, in here in the analysis, you can choose a trend line. So we can put in that linear trend line, and it gives us the option of which region to choose. Let's choose Americas, and we'll get the trend line there. You can have an exponential trend line, a linear forecast trend line, and the two period moving average. In error bars, we can have error bars with standard error. We can have error bars with percentage, and also with a standard deviation. And finally, the chart name, chart 1, we can change it to our own name, regional chart and press okay. You can see this changes here and also in the name box, our chart changes there. So there's a few different ways where you can lay out your chart to make it look more appealing and have information stand out so people can analyze it quickly. (upbeat music) Now to format our pivot chart, we just have to click in there and we'll get the pivot chart tools tab. And then we choose the format tab. On the far left hand side, we have the dropdown box where we can choose which part of the pivot chart we can format. So first of all is a chart area. And in here we can use a different shape fils. Okay. So what I'll do now is I just put in a slight background, like this. We can also change the text from in here. What I'll use is a slight gray. So you have all these options here where you can change a text in the shape fill and also the different colors from in there. Borders and fields from in there. Okay. It's got a different variety of options that you can choose. Now, let's go through our next area, which is the horizontal category axis. Now you see the border there. Okay. So I wanna put in there a text fill to make it a little bit darker. Okay. Now the legend we can put in there a shape fill, like that. The plot area. Now we're gonna use the same shape fill as we have for our whole area. Okay. Next is our vertical value axis. And in there we can change the way that the text font is. We can put up a little bit darker, just like that. Now the vertical value axis major gridlines, now these are the gridlines here, I usually like to have them a little bit lighter in the background. So you don't see them that much, and you can choose these different styles. You're gonna have them as dark as you want so they can stand out. But I like to have them a little bit lighter. So the shape outline, with a white background, which will look nice as well, or you can put a slight gray background. Next is the series Americas. Now in here, you can actually change the color of the column chart. On the shape fill, we can choose different colors, or we can go to the gradient and choose different gradient variations. And you see the live preview. Okay. If you go to more gradients, then you can choose from in here some different options. Now you can do the same thing for Europe, Asia, and Africa. Okay. Now let's go back to the chat area and the show outline. Let's put a border in there. So I wanna put a dark border like this. Go back in, the weight, I wanna make it a little bit thicker. I did like that. We'll go back in. You can actually put dashes if you like. Now, back in here under more lines, under the cap type, I wanna make that round and then round here. So we'll get the round edges okay. And then around corners. And you can make it thicker like this. Usually have it about five points, and then close. Now there's another way where you can change your graph. If you click in there and press Control + 1 from your keyboard, it actually brings up the dialog box. So you can change it from in here. You can put in the fills, border color, border style, shadows, glow and soft edges, 3-D format, the size properties and alternative texts. So you've got a few options there. Now you can actually click where you want to change, and this dialog box changes as well. So the solid line, we can go back and put in a white line and we change. Let's click on our axis. So it brings in the format axis. So in here we have the minimum and maximum points that we can choose. Now, if we keep it an order, you'll be at auto, but say, we want to change it to 1.6 million. So the maximum amount, let's fix that. Instead of 1.8, let's put a 1.6 and we'll see what happens. You see that, it changes like that. So you can have it fixed, or you can have it auto. If it's a one off graph, you can fix it. But if it gets updated automatically, then keep it at auto. You can also have the major tick marks outside, inside, across. Now these are the marks in here. The same thing, if you click on the bottom there, you've got the cross you can choose, or you got the minor tick mark you can have inside. No, you can't see it there. But if we go in here in the minor tick mark, let's make it inside, you can see that there. Now if we want to go to our graph, we can choose there and make our color changes, or we can go here on our axis or our labels there. So you can use this option as well. So it's important to spend some time to make your graph more attractive, because you never know who's gonna end up looking at it. The more appealing it is, the better it looks on you. (upbeat music) Pivot charts have come a long way since Excel 2007. In 2010, we have more formatting options. First of all, you don't lose the formatting when the Pivot Table changes. And then you also have the option to your slicers as your filters. Now, one thing you can do is insert XY scatter, Bubble chart, or stock charts from your Pivot Table. But there's a work around. What we can do is reference the cells outside the Pivot Table. Now to do this, make sure that when you're in the Pivot Table under options and the dropdown box, if you generate GETPIVOTDATA, it's switched off just like this. There's no tick option there. So let's go outside our Pivot Table and press plus or equals, and then choose row labels. Then grab the row labels, drag all the way down, and then drag it all the way across. So we have that in there. Now, what you can do is Control + Copy if you like, and then right-click and paste the values so you can hard copy them, or you can just keep it like this. So it can be linked to the Pivot Table. Now, what we can do is go to insert and scatter chart from in there. So now we have our scatter chart inserted. So if we go to our Pivot Table here and we filter by regions, our pivot chart changes accordingly and as well, we just want to choose a few other months we can, and that changes as well. We can go back and select all. So this workaround works well if you want to use XY scatter charts, bubble charts, or stock charts. (upbeat music) In chapter 9.5, we created this chart here. And now I wanna save this chart as a template and then use it next time I create a pivot chart. So I don't have to go again through all the steps to create this beautiful looking chart. So, first of all what we need to do is save this chart as a template, click on the chat and go to design. On the far left hand side, there's a button here called save as template. Now it brings us to this extension, which is Microsoft, templates, charts. We have to save it in there so we can access it later on. Now, let's name this to cool column chart. You can name this to whatever you like and press save. Okay, so now let's go back to our Pivot Table and insert a pivot chart. Like this you can put a column and press okay, and move it up here. Now, what we need to do is go to the change chart type and under templates we have our previously saved template. If you hover over there, you see the name cool column chart and press okay. And it changes it accordingly. It also works on other charts. So instead of a column chart, we can change it to a pie chart and press okay. And it keeps those formats in there as well. (upbeat music) If you click on your pivot chart and then right-click, you have these options here that you can choose. So you can refresh the data. You can cut and paste the pivot chart somewhere else. Now you can use the font there. You can also change the chart type from in here. So you can choose different charts. Another thing you can do is select the data. So it brings up the data here and you can switch the row and column from in there. So you have the Americas now on the x-axis and if you go again, you have the years on the x-axis. Press okay. Right-click again, you can move the chart to a new sheet or to a existing workbook. You can also format the chat area from in here. So you have the option there and you can click anywhere in your chart to change the area that you can format. And another way to format, is to go to format and format selection, and from there you can make changes or you can choose which part you want to make the changes. (upbeat music) We're gonna set a chart title, and then link that to one of our Pivot Table cells. So every time we filter, then the chart changes as well. So let's go to our layout and then choose chart title and put it above the chart. And we'll have the chart title there. We can actually go into a formula box and press equals and then choose the filter there and press okay. So now when we go and choose Q1, it changes to Q1. When we choose Q2, it changes to Q2. Now the only thing is if we have multiple values, it'll show us multiple items. And then if we put it all, it'll show as all. But it works well if you wanna show each quarter and take a snapshot and send it over to your manager to have a look at it. (upbeat music) There's a couple of ways that you can copy a chart. You can click in the current chart and press Control + Copy from your keyboard and then click anywhere else in your workbook and press Control + V. Control + Z to go back. Another way is to click in your pivot chart and then hold the Control key while your mouse is selecting the chart and then move across like this and let go of your mouse. And now let go of your Control key. And you've copied the chart in there. And now you can go to design and change the chart type. You can change it to a pie chart. (upbeat music) There's a quick way to insert a pivot chart. All you need to do is click in your Pivot Table and press the F11 key on your keyboard. And it puts the pivot chart into a new worksheet called chart number three. And from in here, you can make your changes and also your Pivot Table changes accordingly. And if you go back, you can see the changes that you've made there. We're back in our Pivot Table. If we click in here and we'll press ALT + F1, create a pivot chart on the same page. (upbeat music) we can create a pivot chart directly from our data source. All we need to do is click in our data source and go to the insert tab. Now from the Pivot Table, dropdown arrow, we choose pivot chart, and then we select to put into a new worksheet and press okay. Now we have our empty Pivot Table and pivot chart. And now we can start creating our pivot chart. Now let's drop in our X-axis into our row labels. Let's drop in our Y-axis into our column labels, and let's drop in our values into our values area. So now we've created our Pivot Table, as well as our pivot chart all in one go. (upbeat music) You can take the pivot chart and email it to one of your colleagues or your managers and click in your pivot chart and press Control + Copy from your keyboard. And then go to your email Outlook, or whatever email that you're using, and in your new message, you can just press Control + V and then it gets inserted in there and you can send it to your boss for review. Now let's get rid of that. Another way you can do it is go into your insert and screenshot and then go to screen clippings. Now, if you choose that, it'll go to your previous screen. So we're using the Excel screen, and then from in here, you can actually take a snapshot like this. And then that gets embedded into your email body. And from in here, you can format it whichever way you like, and then email it from there. (upbeat music) We can copy and paste a pivot chart into a PowerPoint presentation, and then make the changes back into the Excel sheet. And then from there, update the PowerPoint. Now to do this, just click in your pivot chart, press Control + Copy. Let's go into our open presentation and right-click, and then choose the keep source formatting and the link data, and press okay. So in here you can make different changes if you like, let's go back and close our file here. So what we can also do is edit the data. So next time you open this and you wanna edit the data, you can just press that and it opens up the information. So from in here, we can actually make our choices instead of Q3, we can choose Q2. You can see that changes automatically and also we can change the way this looks, so we can move financial year there and sales regions there. And that changes as well. Or we can put in there some products, and then our pivot chart changes in our PowerPoint presentation. So we can save this, get rid of it. And then we have the updated chart in there for our presentation. (upbeat music) There are a couple of ways to print your pivot chart. If you have your Pivot Table and your pivot chart in one worksheet, and then you can just click in your pivot chart and go to the file, and print. Now in here, you can see that we have the view on our right-hand side. Under settings, we have pre selected chart. So it'll print this little chart and we can press print and you can print it to your printer or if you choose PDF, you can actually save it as a PDF format. Let's press print and I'll show you here, and press okay. And we just reduce this and we'll see it's printed into PDF, and you can save it or email it to whoever you like as a PDF format. And let's get out of this. Now, another way you can print the pivot chart is if you click in your Pivot Table and press F11, then it creates a another chart or to a separate worksheet. Now, when you're in here, you can go to file, and press print, and you can see here now, the view is a little bit bigger than before. So it's much better using this format. And from in here, you can print to your printer or to a PDF document. (upbeat music) Sparklines are new in Excel 2010, and what they are are small graphical representations of each data row. So to insert, we're got to click outside our Pivot Table and go to insert, and sparklines. Now it asks us here our data range. So let's select the first row and then location is F5. That's fine, press okay. And now we can just drag it all the way down. So you see there, our graphical presentation for each of our rows, we have our troughs and peaks. If we click in there, we can actually change it to a column chart, and then we can do a light color there. And if we go to the market color, we can actually highlight the high point. You just make it a little bit darker so you can see the high points there. Now we can also, if we choose Q1, you'll only collect Q1 data. Q2, and then choose all. We'll see all the data. So it gives us a quick snapshot of our troughs and peaks without having to insert a pivot chart. (upbeat music) There are few tips to follow when making a nice pivot chart. First of all, make sure that you have a title here. What I've done is I've linked the title to a reference cell here. And what I've said is it equals the report filter. So 2012 and I put the and sign and then in brackets I put my title in there. Okay, so if we change these to 2013, then that gets changed automatically. So always have a title in there. And another thing we need to do is sort the pivot chart in descending order or ascending order. But I like descending order because you see the best performer first. So to do that, you go onto your pivot chart, right-click, sort largest to smallest. So we have the largest to smallest there. And the next one is to make sure that we start at zero. Now, this starting point is at 2.4 million. Now we can see here that it seems that Europe is twice the size of Americas, but that's not the case because the value for Europe is 2.6 million and the value for Americas is 2.5 million. And to fix this problem, you click in your axis, press Control + 1, and then the minimum amount, the fixed change to zero and press okay. And finally, instead of having numbers in your axis, we can actually get rid of them and put some and data labels. Now to insert data labels, just click in your graphs and make sure they're all selected, right-click and add data labels. So we've added the amounts there. Now let's click on the data labels. We can actually click twice to edit one, or we can click out and go back into edit all of them. Press Control + 1, and in here we can move them wherever we want but let's put them on the top there. We can also choose the category name there, and we'll leave it as is. Now we can click on access there and press delete to get rid of that, and also in our gridlines, click and delete. And now we can just sort, right-click and sort largest to smallest. And then when you click in here and we can just make that a little bit darker. And always try to keep your graphs simple. And this is more when you're working with pivot charts. (upbeat music) What we've done here is created three different charts. And with our slicers, we can actually choose which chart to show based on a named range formula that we used here. And then we can also use slicers to change the data if you need the chart chosen. Now, this is a similar concept to chapter 7.11 for the interactive employee photos with slicers. Now, instead of inserting photos, we're gonna insert pivot charts. So I can go on to the how to section and explain how it's done. Now first of all, we have to create a table. So number one, two, three, and the charts we've named regional sales, orders received, and top five channels. So second is to create a Pivot Table. So we can highlight this and insert a Pivot Table. And let's put into our existing worksheet just out here on the right. And we'll want to put in there the row labels tow equal numbers. So grab the numbers of the row labels. And let's get rid of the grand total just to here. So now that we're moved to the pivot table here, we need to name the first row, number of cells down. So this will tell us if it's selection number one, it'll move one row down. If it's selection, number two, it'll move two rows down. If it's selection number three, it will move three rows down. So to name the range, we need to go into our name box in there and call it number of cells down. And let's put an underscore and press enter. So if click out of there and click back in, we'll see that named range. So the next step now is to insert a slicer. To do this we'll go to the options, insert slicer, and choose a chart. So we have the three different charts. So what we need to do next is to define a name for the starting position. So this is our starting position, and we're gonna name it, start here. Let's call it, start here and underscore, okay. The next step is to make this row 230 high. So let's grab the three different rows that we're gonna put in our charts, make the height at 230. So the pivot charts can fit in there perfectly. Number six is to insert the pivot charts. So all we can do is go back in here and grab the charts that we made before. So all these charts are from in here. Okay. So we can grab these and copy them instead of redoing it again. Control + Copy, and then we'll can put them in here. Control + V and escape. Okay, so they're in here and we just gotta make sure that they are within the boundaries. Okay. So we may need to just adjust that a little bit. Move this there and this in here. Okay. So this should be fine now. So step number seven is define the name for the formula that would drive the pictures. So in here, we need to go to the formula and name manager, and we're gonna name this, show chart. So let's go to the new and call it show_chart and underscore. And this will refer to this function here. It will be offset. And then we're saying, where's our starting position? Well, we named the range previously and we said it was start here. So we can put in the start here. The next argument is how many cells down? But we've named the range, number of cells down, and that was named in the Pivot Table. So we can type that in. Number of cells down, and then the next argument is how many columns to the left or right? Well, we'll put in the zero and then comma and close bracket and press okay. And then close. So we've named that. Next is to copy the pivot chart and paste the picture link. So to copy the pivot chart all we need to do is just go in our cell here and press Control + Copy. Go up here, click in there. We've made this a 230 as well. So as big as those, so we'll go right-click and choose here, link the picture. So we'll paste in the linked picture from our first chart. Now we could grab any of the three, but we just use the first chart for now. Now the next step is to reference the picture to our offset and named the range. So all we need to do is grab this show chart define name, which we did before and link it to the chart here. So we can actually link named ranges to pictures. So we can say, show, and when we put that, we'll get the options here so we can double-click the second one and press enter. Okay, so now it's working, and let's go to number 10. Is to insert the slicer from the pivot chart and connect them. Okay, so first of all, let's grab our first slicer and we can move it up here, and we just to make sure it's working properly. Orders received, regional sales, top five channels. So that's correct. Now we can go in and grab the slicers that we have here. So these slicers were created from in here, by going on to options and insert slicers. Sales region, the financial year and the salesperson, and press okay. Hold down the Control key, Control + X, and we'll go in here and press Control + V, escape, okay. So we have our slicers in here. So grab the slicers and put them in there. And all we need to do is connect these slicers to our Pivot Tables. Okay, we can put it like this for now. So right-click Pivot Table connections, and they're all connected. Just to make sure they're all connected, right-click, Pivot Table connections all connected. Okay, they're all connected. So these slicers here are connected to the pivot charts and this slicer here changes the chat type. So if we click 2012, that gets changed. If we click by salesperson that gets changed, and by sales region. Based on what we've learned in this chapter, if we put everything together, we can make some interactive charts here, which are very powerful and you can start making some dashboards. So have some fun and let me know what you think about them. (upbeat music) With a pivot chart, you can not create an XY scatter, but I will show you how to do this via a workaround using the index function to get our sum of sales and our sum of costs. And then with a slicer create an option where we select sum of sales and then the graph changes to that. And then also select the cost. And then the graph changes to reflect the cost information. Now first of all what you do is create another Pivot Table, which includes sales and cost in there. And I've numbered them one and two. So let's select that and go to insert, and Pivot Table. Then we'll go to an existing worksheet, and we can put it in here and press okay. So I'm gonna drop into the field in the row labels and the number in the values area. And what I'll do now is from in here, go to insert slicer and insert the field name in there. So we have created our slicer, and let's bring it up here. Now, all we need to do is create an index function where we get the sales information or the cost information, depending on the column that we choose. So if it's column one, it'll be sales, if it's column two, it'll be cost. So let's press index, and then the array is gonna be in here, the sales and costs. Press F4 to lock the area in there. The row number, we're not gonna have a row number. Now the column number will be the link to the Pivot Table selection. So let's move this up here and press F4 to lock it in there and enter. So now if I double-click in here and press costs, that means it's looking at column two and returning all the values in column two, from our array. If I press sales, it's returning all the values from column one in our array. So now we can create a scatter graph from here, just go to the insert and scatter, like this. And we just put in there. So we choose the cost. We have the cost scatter graph, which is a sales. We'll get our sales scatter graph. (upbeat music) In this chapter we're gonna create a P&L Pivot Table report with graphs. Now we have our Pivot Table here that we created in our chapter eight. And what we've done here was eventually put in some pivot charts for the expenses at the bottom here. And you can see the month going across from left to right. And then we have another pivot chart for the revenues going from left to right. And then we've added in our slicers in there for the years. So each time we change the slicer, so let's choose to 2013, the pivot chart will change and so will the Pivot Table here. So press that, you see that changes, and then 2014, that changes as well. So it gives us a nice graphical representation of where our revenues and expenses are for each of the months. Now let's go to our data source and I'll show you how you can create these. So this is our Pivot Table that we created in chapter eight. And now all you need to do is just right-click in there and go to expand collapse, and collapse entire field, because we don't wanna see every little detail there. Okay. Now let's go to the well data source. And in here we have our accounting P&L report. Let's create a Pivot Table, go to insert, and Pivot Table, and let's go to a new worksheet. Now in the row labels, we're gonna add in the month. In the column labels, we're gonna add in the P&L type and the item and the values we're gonna add in the actual in there. And in the column labels, we only wanna see the expenses. So from the dropdown arrow, let's choose only the expenses and press okay. Let's minimize this a little bit. So now that we have our Pivot Table, we can create our pivot chart because we know that anything in the row labels will be in the X-axis. So we'll go on the bottom, and anything on the column label will be on the Y-axis. So let's go to options and pivot chart. And in here, we're gonna create a stack column chart and press okay. So here is our chart here and now let's right-click in the filters there and go to hide all field buttons on chart. And then let's just make this a little bit bigger. So we have our chart in there. Now let's format this a little bit better. Click on the Y-axis and from the home button, we can just make that gray, press Control + 1, and the number, let's just put in there a separator with zero decimal places. Now click in the gridlines there and press Control + 1 again. And the line color will be a solid line, but you'll just go a light gray. Now in the months here and choose from in here, just a blue color there. Now let's go on the pivot chart tools and let's choose in here the layout and gridlines, primary vertical gridlines. And let's put in some major gridlines there, so we can separate the months. So in other words, click on our pivot chart, press Control + X, and let's go back to our pivot. And down here let's press Control + V. Okay, so we're gonna add that in. So we have our expense graph there and we'll just align and so we can put in the months next to the months in there, just like that. And we'll just probably move it into the left there. Finally, let's get rid of the border. Press Control + 1, border color, no line. So it just is like this. Okay, so we're happy with this. We're gonna use the same format for the revenue pivot chart. Now click in the graph, go to design and save the template as. Now in here, it automatically takes you to the Microsoft templates and charts directory. You can name this chart to whatever you like. Let's call it P&L Pivot Table, and press enter. Now the next step is to create a second Pivot Table for the revenue, and from there, we're gonna create a pivot chart. So go to insert, and Pivot Table, a new worksheet. And we're gonna drop in the months in a row labels, the P&L type and the column labels and the item in the column labels and the actuals in the value area. Just like we had before. Now, the only anything here, we want to show the revenue annually. So let's just take the revenue like that. Let's go to pivot chart, and let's put in a clustered column and press okay. Now, whilst we're in here, we can go to change chart type. And then from the templates folder, we can hover across to our P&L Pivot Table that we just saved previously, click on that and press okay. And you can see that changes accordingly. So now we can grab that, press Control + X, go to our pivot, scroll all the way up and then Control + V to include it in there. Now, one thing we gotta do is click in the months and press delete 'cause we've done our saving. And then we can just double-click in the home tab, just to minimize that. We can actually minimize it from in here. Just so we can have a bit more room. Now let's move this across. So we're gonna align that into the months. Just like we have before that. Now in here, we can add in right-click and insert, and press F4, again, just to have a bit more space. Let's click in our Pivot Table, go to options and then insert slicer. And let's insert that year slicer and press okay. And we can right-click slicer settings, get rid of the header. From the options tab, let's move the columns up to three. Now from here, we can just move it like this, and we can change the color if we like. And we can put it up here, and we can just delete this so we can move it up a bit. And from in here, we can bring this up, just so it can fit into the same page. And finally, let's right-click in our slicer and go to Pivot Table connections. And what we'll need to do is connect the different Pivot Tables to the slicer. So by clicking the Pivot Table number two in sheet one, and also the Pivot Table number three in sheet two, we're connecting the Pivot Tables and respective pivot charts to the slicer. Press okay. So now when we press 2012, the slicer changes, the pivot charts change and the Pivot Table changes accordingly. 2013 the same, and 2014 the same. Finally, we'll forgot just to make this a different chart. Right-click, change the chart type, and let's go to the first type there. It just looks a little bit neater that way. Do another test, and there we go. So here's a great example of how you can use a Pivot Table with different pivot charts and put it all into one page and then control that with a slicer to get some graphical analytics with your Pivot Table. (upbeat music) In this chapter, we've created a pivot chart dashboard. We've done this by creating three different Pivot Tables, one for our top five channel partner, which you can see in here. And then we've created the pivot chart and cut and pasted it into here. The same thing for the number of sales group. We create another Pivot Table and a pivot chart. We've cut it out in, put it in here. And the same thing for the sales and cost per month. We have a separate Pivot Table. We create a pivot chart and then we've placed it in here. What we've also done is inserted four different slicers and we've connected them. And by choosing the different years the pivot charts change automatically. So you get a nice looking dashboard with lots of metrics. You can choose for different months. You can also choose the different regions. Let's highlight everything again. And you can also choose the different sales ranges. With this dashboard, you are sure to wow your boss and get noticed. And I'll show you how to do this in a few steps. So this is our data set that we've been using. And we have all the different information here for the channel partners, sales, the different regions, salesperson, and so forth. So now we're gonna create three different Pivot Tables. And from there we're gonna create three separate pivot charts. One for the top five channel partners, the next one for the different sales groups, and the last one for sales and costs. So let's go to the first one and create the top five channel partners. Let's go to insert Pivot Table and put into a new worksheet. So let's get our channel partners and put into that row labels. We'll get our sales and drop it into the values. So we have our Pivot Table here. Now, first of all, let's right-click in the values and we're sort it from largest to smallest. And from the dropdown box, let's go to value filters and we'll do the top five. So let's put in there top five items and press okay. So we have our top five channel partners. Now let's go to options and pivot chart and insert a pivot chart from in here. Let's choose a bar and press okay. Now let's just make some changes. Let's get rid of these buttons by right-clicking in there. And let's get rid of the total there. Click and press delete. Let's got a design and let's choose this here with a white outline. And click on the gridlines and press delete. Now let's click on the Y-axis and go to home. And let's put in a dark font in there. And from in here, we can delete that because we don't want it. Now, let's click once in your graph and right-click, and let's add some data labels in there. Now we can color them in. Let's put it into a blue there and then press Control + 1. In the number, let's put in 1000 Separator and zero decimal places. In the title, just double-click in there and change the name to top five channels partners. And double-click to highlight, and let's put it into a dark gray there. Okay, now let's right-click in the chart and then let's fill it in with a light gray background. And again, within the graph click on there, right-click, and once again, let's fill it with a light gray. Now let's click on the edges and then press Control + 1. And the border color, we do a solid line and we'll have a white border, and the border style, we can just put in number five and let's make round corners in here, and press okay. So you see our chart is taking shape. Now we're gonna use this similar format for the other chart. So all we can do now to save this template, and then when we create the next pivot chart, we can apply these different formats. So we don't have to go through all the steps again. So once you click on your chart, go to design and save template as. You get this directory here, and it goes to Microsoft templates and charts. And in here, you can save your chart. And let's call it dashboard chart, and press save. Okay, so we've created our first chat. While it's clicked, press Control + X, go to our dashboard, click anywhere in there, press Control + V. So this is our first chart in there. And let's just put it just like that, and we can reorganize that later. So let's go to our data table and create a second Pivot Table and pivot chart, which is gonna be sales groups. So go to insert, Pivot Table, new worksheet. In here, we're gonna put in the sales in our row labels, and from in here right-click and press group. And once you group that into ranges starting from 10,000, all the way to 100,000. And then the increase will be 10,000, we'll leave like that and press okay. Now again, go to sales and drop it into the values area. And because we've grouped the sales, we automatically get a count of sales. And leave it like that, that's fine because that's what we want to use. Now let's include in there a pivot chart. Click the pivot chart, and we're gonna use a column, and press okay. Now let's go to the change chart type. And in our templates, let's get the previous template that we created, which is this one here called the dashboard chart, click on that and press okay. So you see, we get the format as we had before, but now we can just right-click in there and again, change the chart type. And let's put it into a column and press okay. So we've got the same format, but we have the different chart type. Now in here, just double-click and rename this to the number of sales per group. You can name it whatever you like. And let's put that in gray. Okay let's click on the chat, press Control + X, and go to a dashboard. Click anywhere in here, press Control + V. Or we can just bring it all the way up here. And you see now we have our second pivot chart in there. Let's go back to our data table. And we're gonna create a final pivot chart for sales and costs. Go to insert Pivot Table and press okay. In our row labels, we're gonna put the financial year. and the sales month. In the values we're gonna put in there, the sales. And then the costs. Now, we get a count of sales because before we grouped our sales. So once we group our sales, the next time we create a Pivot Table, we get a count of sales. But that's okay. From the dropdown arrow, go to value field settings and choose sum. Let's go to our pivot chart and insert a column chart and press okay. And let's get rid of the buttons there. Now we're not gonna use the same chart style as before 'cause if we do that, it'll mess things up and it won't look good. So let's go back and I'll show you how it's done, and press okay. It just doesn't make it nice. So let's press Control + Z and get out of that. And now we're just gonna manually make some updates here. So we have our sales and our cost here. I want to put our costs as a line on the secondary axis here on the right-hand side. So to do that, we've clicked in our sum of costs, which are in red, press Control + 1, and then plot series on, put secondary axis, and press close and then change chart type. And let's put a line and press okay. So now we have the two charts on different axes. So the sales are in blue and they're depicted on the left hand side axis here. So let's put it in our blue color there to distinguish that. Like this, press Control + 1, number, and we can just put like that. Now on the right-hand side, we have our sum of costs. So let's click on that. And then let's put in a red color there, and again, Control + 1 and let's format the number. Now let's click on layout and go to axis titles. The primary vertical access, let's choose that and we can put in there sales. We can right-click in there and just put it in a blue color. Now let's go again to the axis titles and go to the secondary vertical axis titles just like that. And put in that cost just to distinguish them. And let's put that in red, let's click in there and press Control + 1, and we can move the legend to the bottom and press close. Now let's click on our grids there, and we can delete that. Let's click in our axis there and put in a blue color. And now let's click in our line and press Control + 1. And the line color, let's put it into this light red color, and then the marker options, let's put in a circle, and the marker fill, again we just put it in like that into a light red color and press okay. Let's go on to our layout and put in a chart title, choose above chart, then double-click in there. We're gonna call that sales and costs per month. And double-click in there and we'll put into a gray color. Okay, now let's put in a gray background for our graph. Just click anywhere there, right-click and then in here, we choose a slight gray, then click within the graph. And you can press F4 and it'll repeat the last action. So we have our graph there and now one last step is to put in a border. Click on the border, press Control + 1, the border color, we put in a white color, and the border style, we'll make it a bit thick, number five and then put round corners and press close. So we have our chart there. And now all we gotta do is just click on that, press Control + X and Control + V, and we have it there. Or we can just resize that just to make it a little bit bigger. Okay, so now let's just double-click in the home tab just to get a bit more space so we can see that. So we have our three different pivot charts there that we created from the three separate Pivot Tables. Now, the final thing we need to do is insert slicers and then connect them. So every time we change the slicer, the three pivot charts are in sync. So to do that, we can simply click on any chart. So let's go analyze and insert slicer, and let's put in there the financial year sales month, the sales region, and a sales and press okay. So we have our four different slicers there. So let's grab the financial year and bring it up here and we'll just make some adjustments to one. Let's put it into three different columns and then let's make it dark. And we can move it like this, right-click and slicer settings. Get rid of the display header. Let's make the height for the buttons a little bit bigger. So we have one slicer there. Let's grab our sales month. And again, right-click just to get rid of the header. And from the options, let's put into three different columns, that shows the different quarters. And then we can just resize it in here, just like that. And then once again, let's make the buttons a little bit bigger, and then we can put in there a dark color. The next one are the sales regions. Let's grab it in here, get rid of the display header. And then let's put into two different columns and resize that accordingly. And then again, let's make this a little bit, the buttons little bit bigger. We can put in a different color if we like, just to distinguish that. And finally we have there sales. Now they're grouped into the different ranges. Let's get rid of the header. And then let's put it into separate groups. Then again, resize this and we can make it a little bit bigger again. Let's drop it into two columns just so we can see that better. Okay, all the way to the bottom there. And then the color, let's choose that. Let's click on the different slicers, press Control key and click on all of them just to align them. Go to align, we can say align center. Now we need to connect the slicers because if we choose one slicer, it's only gonna change the bottom one, because that's a chart that we chose to insert the slicer. So let's right-click in each of the slicers and go to Pivot Table connections. And let's pick on the empty boxes. So what we're doing here is we're saying that Pivot Table number three in sheet two, and Pivot Table number two in sheet one have been connected. Press okay. The same thing for all of them. If we choose 2012, the chart changes 2013, and 2014. The same thing for the months. Let's highlight all of them like that. And then we have the different regions, and also we have the different sales ranges there as well. Now you can see there, we've got the different sales ranges. If we go to our first sheet, we can see the different size ranges. So as we choose that, it changes the Pivot Table accordingly. So this gets updated even though you don't see it, it's another sheet, it gets filtered accordingly. Let's go back in here. Now let's highlight everything just by holding down the mouse and selecting it all. So you can see we've created a pretty impressive dashboard in just a few steps. And I'm sure that with this dashboard you're gonna get noticed. By the next round of promotions, I'm sure that your name will be mentioned. (upbeat music) In Excel 2010, you can add the new conditional formatting options like data bars, color scales and icon sets. The conditional formatting is embedded within the Pivot Table structure. So if you update and refresh the Pivot Table, then so does the conditional formatting. And to insert conditional format, you gotta click anywhere in your Pivot Table, and then from the home tab, choose conditional formatting. And let's choose highlight cells rules. And we choose greater than. So in here we get a dialog box, and we can choose the amount to put in there. So let's say anything greater than 600,000. Now we can format it with a light red fill, with dark red text, and you got a few other options there. Now we can also custom format. Now we get the format cells dialog box and under fill, we can choose the different color to format with. And let's choose a red and press okay. And then, okay. Now we get this dropdown box here that says apply formatting rule to. We can choose selected cells. We can choose all cells showing sum of values. If you choose that, it'll also highlight the sub-totals and grand totals. And the third option is all sales showing sum of sales, and also the values that are in the row and column labels. Now this third option is not gonna highlight any sub-totals or grand totals. So most of the time you're gonna choose the third option. So we have the values there that are more than 600,000, and to make changes to this conditional format, we'll go back into their conditional formatting option and we can choose clear rules, and from in here, clear rules from this Pivot Table, we can just click on that. Or we can go to manage rules so we can edit the rule. We can change the dollar value from in here. We can also change where the rule applies to. Let's cancel out of there. We can create a new rule or we can actually delete a rule from in here. Let's press okay, just to get out of there. So with conditional formatting, it gives you the option to highlight the values that will make your analysis much easier to do. (upbeat music) To highlight cell rules based on their values, you would actually click in the values within your Pivot Table. You need to go to the home tab and under conditional formatting, choose highlight cells rules. And from in here, you got four different options. Greater than, less than, between and equal to. Now, let's choose the between option there. And we want to format the cells that are between 400,000 and 500,000. And we'll use a light red fill with dark red text, that's available to us. And then we press okay. Now from the dropdown arrow here, we choose the last option. So it shows us the two values that are between that range. So let's go to conditional formatting and manage rules. So in here it says, applies to. So it applies to the sum of sales that are within the sales quarter and financial year. So if we take out the sales quarter and the financial year, then this conditional format will not work. So if you change your column and row label fields, then you've got to reapply the conditional formatting for those new fields. (upbeat music) We can actually highlight cell rules based on text labels. Now we have our quarters here in our row labels. Now let's highlight all of them and then go to the home tab and conditional formatting. Highlight cell rules. Now because we've highlighted the text, then it gives us the option to highlight text that contains. So in here let's highlight texts that contains Q1 and press okay. And then we can go back and highlight again, texts that contains Q3, press okay, and go back there. So it gives us the option to highlight row label or column label text items. (upbeat music) We can also highlight cell rules based on date labels. Now in our Pivot Table, we have our order date dates. We can have any dates that could relate to when a payment is due or when an invoice from a customer is meant to be paid. So we can put a conditional format that'll show us which dates relate to a particular month. Now to do that, we need to highlight in our Pivot Table and select all the dates. Now we'll go to the home tab and conditional formatting, highlight cells rules, and then choose a date occurring. And in here you have the option to choose the different dates. Now I wanna choose this month and we'll want to put it in here in a green fill with dark green text, and press okay. Scroll down all the way. You can see that these three dates are due to be paid this month. And so that you open this Pivot Table on a future date, then this conditional format will be refreshed automatically and apply to your current date's values. (upbeat music) We can use conditional formatting to highlight the top and bottom cell values. Now let's click in our Pivot Table anywhere in our values and go to the home tab and conditional formatting, and choose a top bottom rules. And let's start by choosing the top 10 items. And instead of the 10 items, you can actually choose a top five and then we'll keep it with this formatting and press okay. Now from this formatting options, we select the last option. So we can see all the values except for the sub-totals and grand totals. So we have our top five items there for our three years of financial data. Let's go back and use conditional formatting, and we can clear the rule by choosing the last option, clear rules from this Pivot Table. And then we'll go back here and let's create another rule. Let's choose the top 10%. So in here we can choose a different percentage. For example, the top 25% of sales for the three years, press okay. And then from this dropdown formatting rule, let's choose the last option. So it shows us here the top 25% values from our three years. To go back, and we can go and clear the rule. Let's apply another rule here, above average. So in here, based on our selection, it's gonna give us the values which are above the average and press okay. And then let's apply it to everywhere. So what it's done, it just calculated the average over the three years and the values which are above that average will be highlighted in red. Okay, let's go back and clear the rules. Now we've got the option to do the bottom 10 items or the bottom 10% or the below average. And let's go to the more rules in here, and let's choose the apply rule to, let's choose the third option once again. And in here, let's choose the top. We can actually choose the bottom as well. So let's choose the bottom one item for each column group. And we're gonna format that in red and press okay. So this is a one column group and it's highlighting the last value. That's another column group. So is that, and so is this. So it's showing us the bottom value based on that. Let's go back and clear this rule. And then finally let's go the more rules. And in here, let's choose the third option and bottom one and each row group, and let's format it in red and press okay and okay. So what it shows us here is that the bottom value from this group, the bottom value from the selection and the bottom value from this selection. And it does the same thing for each of the different regions. So the top and bottom rules in conditional formatting are a great feature and your data really does stand out. (upbeat music) Data bars, color scales and icon sets are new in Excel 2010. And they're a quality feature on the conditional formatting. Now let's highlight our Pivot Table values here and go to the home tab and conditional formatting, and then choose data bars. And here you got the option of a gradient fill in different colors. And as I'm scrolling, you can see the live preview in the Pivot Table. And you've got the solid fill as well. So here it highlights the values automatically by highest to lowest. Let's go to the more rules option, and let's apply this rule to the last option, which means all the values except the sub-totals and grand totals. And here will be only show the bar. If we press okay, you can see that the values go and we can see the bar only. And let's go back to your conditional formatting, manage rules and choose Pivot Table two, and double-click in there just so we can make some changes. Now in here, we can actually choose lowest value. We can actually put in a number, a percent, a formula, a percentile or automatic. Now let's put in a percent in there. And let's put 50% and the maximum we'll put 50%. And then we can have a solid fill or a gradient fill, we can choose a color in here. And let's put in there a light blue. We can have a border or a solid border, and then the color of the border as well. And in the bar direction we can go left to right, and you'll see the preview here for right to left. Just keep it in context. And you've got some options for negative values and axes. Let's untick the show bar only 'cause we wanna see the values and then press okay and okay. So we'll see the values there. So in here it's highlighted the top 50% in a blue color and the bottom 50% in a blank background. Now let's press Control + Z to go back. And let's go back to conditional formatting and choose color scales. So in here you have the different scales here. And you can see automatically that the lowest value is 599 and that's highlighted in red. Choose the second option. The lowest amount is in green and the highest is in red. And you've got these different options there. Now this is good for resourcing or popularity scores. And let's go to the more rules here, and the format style can use a two color scale or a three color scale. And then once again, we can choose the lowest value. The mid point and the maximum there. And we can leave it like this. The lowest value will be in red. The mid point, the 50 percentile mark, will be in yellow and the highest value will be in green. And press okay. And we can see that there. We can press Control + Z to go back. And then finally we have the icon sets. Now these are good for when you have some budget values and you wanna see whether you've achieved your values or you have certain scores, or if you have a project and to indicate whether you have any risks or opportunities. So you got a lot of different ways where you can highlight the numbers. Now, under more rules we can actually choose to show the icons only instead of the numbers. And in here, we've got the option of the different icons to choose as we saw previously. Now under here, we can actually change our values. So it says here, give us a green when the value is more than or equal to 67%. Now we can change this percent to a number, to a formula or to a percentile. Now it says here, when it's between 67 and 33%, then it'll give us an orange. And when it's less than 33%, give us a red color. So we can change the as well and even change the numbers. So we can say 50, and then when it's 50, give us a red. So anything that's below 50 will be a red, and let's press okay, and you see that. And we can go back and just do one more thing under manage rules. Double-click in there and say that we had a budget. So anything that's over 800,000, we get a green mark because our budget was 800,000 per month. So anything above 800,000 is green, anything less is red. Now we can do this by saying, first of all, number bigger than or equals to 800,000 is green. If it's less than 800,000 and zero number, then it's a red. So let's press okay and okay. And quickly here, we can see that all the values that did not meet our budget are in red, and the ones that do are in green. So these data bars, color scales and icon sets are fantastic if you want to quickly show and highlight relevant numbers. And your numbers really do stand out, which makes your analysis that much easier to do. (upbeat music) In our Pivot Table we have all our sales people and we have their sales per year and per quarter. And we'll want to give them a bonus if they've earned more than $700,000 of sales in one quarter. Now, first of all, we need to highlight those people so we can identify them and then we can give them a bonus. Now to do this, we can insert a conditional format, which is format cells that contain. Now from the home tab, we'll go to conditional formatting and we can highlight cells rules that are greater than. But instead of going there, we're gonna go to create a new rule. Now we want to apply the last rule, which means all the cells apart from the sub-totals and grand totals, and then we'll choose the format only cells that contain. And in here, we'll keep it at cell value and then we'll choose here greater than or equal to. And in here, we're gonna reference a cell. We put in here at 700,000, press enter and then format. We can choose a green color and press okay, and then okay. So automatically it shows us the salespeople that have earned more than $700,000 of sale in one quarter. I said that this metric changes, we can say anything that's bigger than 750,000. Then the conditional formatting in the Pivot Table gets updated automatically. (upbeat music) In Pivot Table, we have our list of channel partners. And there are sales from 2012, all the way to 2014. And what we wanna do is give our top three channel partners per year an award so they can go away on a trip. Now to do this, we can actually click in our Pivot Table and go to conditional formatting. And on the top bottom rows, we can choose the top items there. But we can also go under new rules and then the apply rule to will be the last option. So show all values except grand totals or sub-totals. And then choose the format only top or bottom red values. Now we're gonna choose the top three, and therefore all values we're gonna change that, we wanna choose each row group. So what that means that it'll show us a top three in each year. And it will highlight it in the color that we choose. Let's just choose a green, and press okay, and then okay. As you can see there, we have the colored. You go all the way down. You can quickly highlight and see which were the top three channel partners for each year. And we can send them a trip and thank them for their contribution over the last few years. (upbeat music) We have our salespeople and their respective sales per year. And what we wanna do is see the salespeople that have been performing above average for three consecutive years. Now those salespeople will get a promotion. To do this, we click in our conditional formatting. We can actually choose the top bottom rules and choose above average from here, but let's go to the new rule. Let's choose the last option. So we can highlight the values except the grand totals and sub-totals. And from in here, we choose the format only values that are above or below average. Now let's choose above average and then we're gonna select the all values there. So what it's gonna do is get the average for all the values, and then whoever is above that average will get highlighted in the color that we select. Now let's choose a green, and press okay, and then okay here. So let's have a look here. If we highlight everything, and on the bottom status bar, we'll say the average is 2.672. If you don't have this just right-click, and can you can click it into action there. So 2.672. So any sales that are more than 2.672, will get highlighted in green, and that's evident there. So the only sales manager that has exceeded expectations has been Ian Wright. So he'll receive a big promotion in 2015. (upbeat music) What we're having our Pivot Table are our 2013 sales and our 2014 sales. And we'll want to compare to say where that our 2014 sales were bigger than the previous year per month. So to do this, we've gotta highlight the 2014 column. Go to conditional formatting and then choose new rules. For the apply rule to, we'll keep it to selected cells because we just want to conditionally format the selected cells. And then the rule type we choose the use a formula to determine which cells to format. Now in our formula here, we're gonna put 2014 is bigger than 2013. If that's true, then it'll highlight in green. And then the next rule would be is 2014 for February, bigger than 2013 for February? If that's true, highlight in green, if not, do not highlight. So first of all, let's click in C3 and then we're gonna press the F4 button three times, just so we can get rid of the absolute reference. Because we need to apply the argument for each row. So if we had the dollar signs or the absolute reference, then it'll only have this argument here for row three and not the rest. Okay, so let's do bigger than, and then B3 and again, press the F4 sign to get rid of the absolute reference. And then we press that and press format in green and press okay and then press okay. So can see here quickly that we have January, July, September, October and November months, that were bigger than the previous year's totals. And let's go back to conditional formatting to manage rules. And we can see this under the Pivot Table that the rule applies to the selection, which is correct. And the formula is C3 is bigger than B3. Because we don't have the dollar signs or absolute reference it means that you have to go into each row and calculate that argument and return back the true or false into the 2014 column. If it's true, it'll give us green. If not, it'll be blank. (upbeat music) In chapter 10.10, we selected the 2014 values there. And we said is 2014 bigger than 2013? If yes, then highlight in green, if not, then don't highlight. Now can see this by going in to the conditional formatting under manage rules. And we can see if we double-click there, that we've applied the rules to these selected cells. And this is the formula, C3 is bigger than B3, and press okay. Now what we can do is actually take out the sales month and drop in some other fields. And this conditional formatting will still apply to that. Let's have a look. Take that out and bring in customer. You see that works fine there. Send people products, salesperson, sales region, we're can can see the sales quarters. And then the channel partners. We'll scroll all the way down. We'll see whether it was highlighted green, means that 2014 was bigger than 2013. So when you apply the rules to the selected cells, then you can expand the conditional formatting rule to other fields. So what it does is it gives you more flexibility to analyze with more fields. (upbeat music) We had the 2013 and 2014 sales, and the months here as well. And we want to highlight the top five sales for this. And then what we want to do is take out the sales month and drop in the customers and keep the conditional formatting alive. Now to do this, we highlight in our values there, and go to conditional formatting, new rule, and we selected the second option. All cells showing sum of sales values. So what we're gonna do is keep the conditional formatting for the values live every time that we chop and change our fields. Now let's put in our rule and we're just gonna say our top five and then format. And let's put it in that color there and press okay. So we have our sales month there and let's take that out and put in our customer, you see that's highlighted. Our products, our salesperson, our sales region, our sales quarter, and then our channel partners. So we scroll down, we get our top five channel partners. So if you choose the all cells showing values, then you can apply that conditional formatting to one field. You can chop and change that field. And the conditional formatting will still apply to the new field. (upbeat music) We're gonna create a conditional format for our values here that says, highlight the top X% of values. And we're gonna control that conditional format with some slicers. So as we choose their percentage on the slicers that the conditional format will get changed as well. Now let's create a Pivot Table. Let's highlight the percentage list that we created here. Go to insert, and Pivot Table and existing location, and we can just put it there for now. Now what we're gonna do is throw in their percentage into our row labels. Our grand total, we can get rid of that. And what we're gonna do is reference this first cell here to our conditional formatting rule. Now, what we're gonna do is insert some slicers, go to insert, and percentage slicers, and then we can just add some more columns. And we can just put it there. Change the color. Let's click in our Pivot Table here and go to conditional formatting, new rule. And let's choose all sales, showing sum of sales value, and then the format our cells based on values. And let's choose the three color scale. The loss value we'll have a 0%. The mid point will be a 50 percentile, and the maximum will be a percentage. And we're gonna reference this to the first cell here, and press enter. Now the color, we're gonna change to green and red, and press okay. So now as we press 50, our sale reference is here. So it'll show the 50% on our maximum value. And then we would go 55, 60, 65, 70, 75, 80, 85, 90, and then 95. So what is showing here is the top 95% of the values as you can see here. So the top two or three values there are highlighted in red. The midpoint is in yellow and the low point is in green. So you can do some pretty funky stuff with slicers and conditional formatting just by referencing the selection chosen by the slicer back to your conditional formatting rules. (upbeat music) We can show texts in the values area of the Pivot Table with a bit of conditional formatting magic. Now, to do this, we need to set up a couple of rules. Now, what I've done here is I've added in a new column called region code, and I've coded the regions as Africa being number one, Americas being number two, Asia being number three and Europe being number four. Now also each row of data relates to a unique date. So I've got one for every two days. I've got a unique transaction. Okay, what I've done now is I've gone to our Pivot Table here and I've included our order dates on the left-hand side and our products on the top. And then what I've done is I put in the max of region. So what that means is for each region I get the maximum value. So obviously the maximum value will be a one for Africa, a two for Americas, a three for Asia, and a number four for Europe. So that's the second step there. Now third step is to do a conditional format where we're saying that if the value equals a number one, then show me Africa. If the value equals number two, show me Americas and so on. Now to do this, we're gonna click in our Pivot Table. So let's start on the top left-hand corner of our values being cell B5. Go to conditional formatting, put a new rule and then select the third option here. So we can see all our values. Now let's use a formula to determine which cells to format. So all we're saying is B5 and let's press F4 three times. So it's not an absolute reference. And then we'll say if B5 equals one, then let's go to the format area and under number, let's choose the custom. And in here, under type let's get rid of that. And let's put in brackets, if it equals one, close brackets, then Africa, and then let's put in their general. Okay, so that's a trick there, and press okay. Now we can also format this in terms of a fill color. So let's put in a fill of a light color like this, and then press okay. So now you see all the number ones have changed to Africa. Let's do the next rule, new rule. We'll say again the same thing. If it equals to two this time, and let's format. And in here I'll paste what I had before and I just changed the values. So number two equals Americas. And then we'll put in a color like this and press okay, and okay. You see that's changed there. Let's do the next one. So equals three will be Asia. Asia, and then we'll fill with this. Like that. You see that, and then finally, we'll do the rule for number four. Equals four, let's format and let's paste the rule. This changes number four and it'll be Europe. And then we could fill it in with this color there. And okay, so there you go. Now we can see for each transaction that in which region it belong to for all the different products. (upbeat music) So we have our order date in our row labels and our products going across, and I'm gonna drop in our sales in there and want to get the count of the sales. So press okay there. Okay, so we have different counts there in our products and our order dates. And now we want to highlight the blank cells. So if there's any blank cells, put that in red so they can stand out. So just click anywhere in our values. Go to conditional formatting, new rule, and then apply a rule to the all cells showing count of sales values for order dates and products. So that means it's gonna show it for all the values except the sub-totals. Now choose the format only cells that contain. Now from the dropdown box, choose blanks, and under format, choose any color you want. Let's choose a red here and press okay, and then press okay. So it highlights everything that doesn't contain a value. So you can quickly see which dates don't include any values. (upbeat music) In this chapter, we're gonna create an accounts receivable ageing report, and it's gonna show us when the receivables were meant to be paid and how long they've be an outstanding. We have our receivables due date in here, and we have the actual receivable date in the next column here. And we can create a matrix report. Simply click in the data source, go to insert Pivot Table and go to new. On the row labels, we're gonna include the receivables due dates, on the column labels we're gonna put in there receivable actual date. We click in the date and we're gonna group that into the months and the year. So right-click, press group, and then choose months and years and press okay. Now, as soon as we've done that, a new field has been created called years. Now we do the same thing for the receivable actual date. Let's go on out column area, right-click and group. Let's choose years and press okay. And you can see there years 2 has been included into our field list and also in the column labels area. And let's get out of here. And in the row labels, we have the original due date and we just wanna see 2012. So let's just choose 2012. And in the grand total, click in there, right-click and remove grand total. And let's get rid of the gridlines. Let's right-click and show field list. And in the values area, we're gonna drop in our sales. So grab the sales and drop it in there. So we have our matrix-looking the Pivot Table. So in the values area, let's right-click and show values as percentage of row total. Let's just the center this like that. Okay, now we have zero in there, but I wanna get rid of it. so we can get rid of those zeros by using conditional format. So let's go to conditional formatting and go to new rules, and let's choose the third option there. And this will apply the conditional format to the values and not the sub-totals. And then in here we choose format cells that contain, cell value equal to and in here let's put a zero. Now, the format we're gonna put in there a color of the white, because the background is white, it's gonna get rid of the zeros, and press okay. So one thing is just to get rid of the grand total down here, go to design, grand totals off for rows and columns. So what it says here is that receivables that were due to be paid in February, 2012, 20% of them were paid during that month. 31% were paid in March, 4% in April, 35% in May and 8% in June. And if you select all these, you see the sum is at 100%. So we can see that the ageing is pretty bad because it lacks about three to four months. And we'll get the same trend here all the way down for the different months. Now, what we're gonna do is highlight the percentages that were received in the particular month. So for February receivables that were received in February, we're gonna highlight in green. For March receivables that were actually paid in March, we're gonna highlight in green and so forth. So we're gonna highlight the receivables that were received on the actual due date. Now for that we'll need to do some conditional formatting. Let's go to the home tab and press conditional format, and create a new rule. Let's choose the third option there, just so we can highlight all the values except the sub-totals. And then let's use that formula to determine which cells to format. And in here, we're gonna put a if formula. So we're gonna say if February equals February, then highlight the values in green. So to do this let's type in the if formula, and we're gonna say if A7, click on there and press F4 twice, just so we can lock in column A. So if A7 equals B5, now press F4 once, just so we can lock in the row number five. So if A7 equals B5, then true or else false. Now let's put in here on equal sign, we forgot that. Now, if this is true, then the format we're gonna fill it in a green color there. Press okay there, and you can see all the receivables that are due within the actual due date are highlighted in green. Everything else is overdue and what's paid on a later date. Now we're gonna do another Pivot Table report and we wanna see the distribution of the accounts receivable over the months. So let's highlight the Pivot Table, press Control + Copy and we'll just go down here and press Control + V. So we have the same Pivot Table here. And let's click anywhere in the values. Right-click and show values as. Let's change that to include percentage of grand total. And now we're gonna go to design, grand totals and we'll have it on for rows and columns. And what it says here is if we highlight everything, we're gonna get a hundred just like that. So it shows us the distribution of the age receivables over the months and years. Now finally, we can put in that heat map down here, and we can just highlight there, go to condition format, and a color scale, and let's put in there this one here. So this is 100%. Now it says that out of the age receivables that were due in 2012, about 15% were actually received in January, 2013. And the rest, you can see the distribution in May. So conditional formatting allows you to highlight problem data, and you can take some action to improve your business. (upbeat music) We have our sales results for our regions and our products going across the years, and we have the grand total here as well. And we're gonna put in there some conditional formatting just to show the highest and lowest sales values throughout the years and throughout the regions. So, first of all, we're gonna put a data bar just within the values here. So to do that, just click anywhere in the values and go to conditional format and go to data bars. Let's choose a gradient fill like that. Now we're getting this dropdown box here, and then we're gonna apply the formatting rule two. And this third option here means that it will only conditional format the values and not be sub-total. So click there and then we can go back to conditional formatting, manage rules and double-click just so we can change that color here. So the color, we can leave it like this and the border, let's put in a blank border and we can get a preview here and then press okay and apply, and then press okay there. Next we're gonna put in a three color scale on our grand total. So let's highlight the grand total there, press Control key from the keyboard and then with the mouse, highlight the rest of the grand totals, but exclude the sub-totals. Go to conditional formatting and go to color scales, and we'll include this second one in here. And finally, we're gonna insert some slicers in there. So in your Pivot Table, go to options and select slicer. We're gonna put in the financial year, the sales quarter and the sales month, and press okay. And let's grab the financial year, right-click slicer settings and get rid of the display header. And we can just put it like this, and move it in the corner there. Now what we're gonna do is just double-click in here, just so we can have a bit more space and then highlight the rows and insert just like that. So we have the years there. Let's put in our sales quarter, let's get rid of the display name again, and then we can just bring this up and then put it there. And then the sales mark, again, let's get rid of the display header. And then from the options, we're gonna choose the three different columns. So that means each quarter is separated. And we can just put it like this, just make it a little bit bigger. Okay. And move it up there, and there we have it. So we can click on the slicer, hold the Control key, click on all of them, go to options. And then we can choose whichever color that we want. Okay, so now that we have the slicers, if we choose one here, the conditional format applies to that year as well and it changes accordingly. If we go to Q1, the same thing. Now we can hold the mouse key and scroll down to highlight everything again. We can choose each month individually, and quickly see which are how high and low sales values. So with conditional formatting, you can put some visuals on your Pivot Table and your data does stand out. (upbeat music) GETPIVOTDATA is a formula that uses the Pivot Table to create customized reports that give the user more flexibility. It uses the Pivot Table as its engine to spit out numbers based on the user's needs. There are certain advantages of using a GETPIVOTDATA formula. You can produce a report to your liking. So you're not limited to the Pivot Table format. When the pivot data source changes, then all you got to do is refresh the Pivot Table and your report will update as well. You can also format your report and upon refreshing your Pivot Table, you will never lose its formatting. And finally, you can add extra columns for business metrics that are unable within a Pivot Table. There are lots of people that don't use the GETPIVOTDATA formula. It's because they don't know the power that it can have. The reason is that most people will actually go outside the Pivot Table and try to do a quick sum formula, for example, 2013 plus 2014 like this. And when they try to scroll down, then they get the same number. And then they look at this formula and they're saying, well, it's a GETPIVOTDATA, I don't like it, I don't understand it, so I'm not gonna use it, which is fair enough. But I'll show you ways where you can use GETPIVOTDATA, to enhance your reports. Let's press Control + Z to get out of there. Now to activate the GETPIVOTDATA, you got to click in your Pivot Table, go to options and the options from the dropdown arrow choose generate GETPIVOTDATA. That's ticked, it means it's on. If you uncheck and you click anywhere inside your pivot data, then you get a cell reference. If you want to use, GETPIVOTDATA, make sure that it's selected. So let's get a number from within our Pivot Table and press enter. Now let's go to our function in here. Just click anywhere in there and we can move this around here. Move up here. Now, if you wanna get the explanation of GETPIVOTDATA, just click on there and you get the Excel help, or you get the details about the function and what it does. Now, the data fields, these are the values that you want to return. For example, sum of sales, count or average. Now in here, it gets the sales, which is the sum of sales here. So it's the sum of sales that we are showing. And the second argument is the actual Pivot Table. So in here you can click anywhere in the Pivot Table, but we usually click on the top left hand corner. Now the third argument, this is the field name. So we're looking at salesperson. We have here salesperson, and we also have the quarters. So the field name is first of all the salesperson, and then within salesperson, we have the item, which is in, right. So we've selected cell D12, so it's in right as a salesperson, the over to the second field, which is the financial year, which is up here. And the item within the financial year, it's 2014 because we've checked in there. Finally, the third field is a sales quarters. So we have the sales quarters in the row labels then item three, we have the actual sell that we've chosen, relates to Q4. So it puts it in that order and you get put up to 126 different combinations there. Let's press enter and we'll get our value out there. And the power that comes with a good pivot data formula is with the item numbers, we can actually reference them to a cell. So instead of say, 2014, we can change it to 2013 and see what happens. The value changes to 670. This change Q4 to Q3, it changes to 624. And finally, instead of the Ian Wright, let's put in John Michaloudis. So you get, John Michaloudis's 2013 sales. So based on this, you can see how you can create a report in here where you can reference your items with your own custom format, your own metrics, and every time the Pivot Table gets updated, all you got to do is refresh and then your data gets updated here. And I'll show you how to do this in the next chapters. (upbeat music) Now, we're gonna create a custom report with the GETPIVOTDATA formula and what we're gonna do is reference our formula to the items that we have here. So the years, 2013, 2014, the quarters, and then the regions that we have there, and we're gonna paste the formulas into the empty boxes. We're gonna get our totals and then our variance or Delta amounts. And then we're gonna use this combo box to change the variance based on our selection. So, first of all, let's go and choose Americas Q1 2013. So the equal sign or the plus to activate our formula, Americas Q1 2013, let's click in there. Now let's go into our Pivot Table. So it's taking out sales data and the Pivot Table is A1, which is correct. Field number one is sales region, correct. Item number one is Americas. Now instead of having Americas there, we can actually reference it to here. Now let's press F4 three times so we can fix the columns. Now let's go to the next field, financial year 2013, same thing, get rid of that and let's get the reference in there. Now let's press F4 twice so we can fix the rows. And then we have field three and item three, get rid of that again, reference it in there and press F4 twice so we can fix the rows. Now, press enter and we get the amount of 652,159 which is there. What we're gonna do now is drag this down to get our values and you can see that match in here. Now sometimes your formula may not work and it happens sometime when for example, you have some leading or trailing spaces. So let's double-click in there and put in that space and press enter, we'll get a reference. So sometimes when you're copying and pasting texts or values, make sure that there are no leading spaces. Control + Z to go back. Okay, so let's drag this across in there and we'll have our values there, Control + Copy, and then Control + V. So we have our totals there and we have our variances there. So quick and simple, in a matter of minutes, we've created our own custom report with our own metrics and we can extend this to add some more metrics at the bottom if you like. If you had data changes, then this will get updated as well. So let's go back to our data source and change Americas Q1 2013. Let's change the value so we can see if it gets picked up here. So data table or in Americas, 2013 Q1. And let's put it in our (indistinct) like a million dollars. We'll go back. So this will get updated here when we refresh the Pivot Table, right click, refresh, and see if that automatically get updated. Now, finally, we've put in here our metric, which is the variance. And what I've done here is I've put in a form control from the developer tab. So I went in there and pressed insert, form control, I chose the combo box. And I place it in there. And then if I right click in there, under format control, the input range is this here. So it's Q1, Q2, Q3, Q4, total. The cell link is there, so when Q1 is chosen, it'll be number one, when Q2 is chosen, it'll be number two and so forth. And then dropdown lines I've chosen five and 3D shading. So as we changed this, our values change. So what I've done is a formula in here, which is an index formula with array formula. So what I've said is area 2014, so the array is in here in blue, 2014, the column selection, I've named it range, which is number two. So in this array is choosing the second column two, because I said Q2 equals two. So you're choosing the second column and then using the same thing in 2013, it's choosing the second column. So the second column in 2014, minus the second column in 2013, we get our value. Now to make this work all the way down, what I did is I highlighted all the rows here and then I press Control + Shift + Enter to turn it into an array formula. You can see that we get the live results as we're changing our selection. So call it a trick there that you can do outside the Pivot Table. And another great reason why GETPIVOTDATA is fantastic because you can add things that you normally wouldn't be able to in your Pivot Table. (upbeat music) We can also reference dates with the GETPIVOTDATA formula. In our Pivot Table here, I've got our order date in our row labels, and our sum of sales in our values area. And what I've done is I've taken the date of the first order, so the order is sorted from the earliest date all the way down to the last date. So I've taken the first date and typed it in here, and now what we can do is type in out GETPIVOTDATA formula, and cell reference, this cell in here. So let's press equals or plus and write in a GETPIVOT and then press the Tab key. Now the data field is gonna be sales so we need to, with the brackets, type in sales, close brackets, the Pivot Table, we can click anywhere in here. We usually click on the top left hand corner and press F4 just so we can fix that value in there. And comma. Next is the field name. So we have the order dates, as we said before. So let's type it in order date and make sure the spelling is the same and the item number one, well, that'll be this reference here. So all we've got to do is just click in there, close the parenthesis and presenter. And you see you get the value there. Now, the data that you put in here, you gotta make sure that it actually exists within your data source. If it doesn't exist, then you're not gonna get a value. For example, we had the third of the first and then our next transaction is on the 12th of the first. So all we can do is for example, let's put in the 4th of January in there, you get a reference because the data doesn't exist. Instead of giving us a zero, it gives us a reference there. So let's put in the second valid transaction. There you go. We have the value there. Another way that you can do this is actually putting the date formula. So I'll press Control + D just to copy what's up there. So it's the same formula there. Now, instead of referencing the cell here, which we did before, what we're gonna do is put in there the date formula. so let's type in date, D-A-T-E, press the Tab and the year, or we can type in 2012, the month is January, and put in one, and the day is 12. And then we'll go out here and we can close the parentheses and press Enter. And we'll get our value. So there's a couple of ways that you can reference dates with GETPIVOTDATA, just make a note that your dates do have values, if not, then you get a REF error. (upbeat music) We can use data validation to make out GETPIVOTDATA formula interactive. What we're gonna do is create two dropdown lists, one for the months and another one for the regions. And then incorporate those into the GETPIVOTDATA formula by way of self referencing. And then once we change the months and regions from our dropdown list, then our GETPIVOTDATA results will also change. So let's grab our months from in here, Control + Copy, right click and paste the values. Next we'll choose our regions. So click in Americas hold on Control key, choose Europe, and then again, hold onto Control key, choose Asia, and then hold on the Control key and choose Africa, press Control + Copy, come up here, right click and paste the values. Now what we're gonna do is create our data validation. So in our data tab, we choose data validation. And then in the dropdown box, we choose the list and our source will be our months in here and press okay. And we've created our list of all the months in there. Now let's do the same thing for region. So again, data validation, choose the list, our source is in here, press okay. And we have our list for the regions created. Now let's create our GETPIVOTDATA formula just by referencing it in our Pivot Table. So we have our value there. So now what we're gonna do is instead of using the January argument in our formula, we're gonna get rid of it, and we're gonna reference it in our data validation list. Now for Americas in the regions, we'll do the same thing, backspace to get rid of that. Choose our data validation list and press Enter. So we have our value there. So now as we changed our months, the formula gets updated. And also as we change our regions, our formula gets updated as well. So I call it a trick that you use when you're creating customer reports with GETPIVOTDATA formula. (upbeat music) Then GETPIVOTDATA, it does have a shortfall. And let's reference our pivot data for Q1 Americas, and press enter. And we have our formula in here and say that we'll want to add in the sales month of January into this formula, and let's see what happens. So in there we'll put in sales month, and then January, and press Enter. We get an error message. So if the sales month is not part of our Pivot Table in here, anywhere in our column labels or row labels, if it's not part of our Pivot Table, then it's not gonna give us a result. So what we're gonna make sure is to grab the sales month and drop it in there, and then we have our GETPIVOTDATA updated. Now in here, we have our sales quarter Q1 as part of our formula. So we grab our sales quarter and we'll take it out. The reference is valid because our data is not part of our Pivot Table. So to fix this, we just got to make sure that you get rid of that argument there and press Enter. So if you wanna make sure that your GETPIVOTDATA formulas is working, then make sure that you drop in all the fields into your areas here so they can work properly. Another thing to note is that if you drop in fields into the report filter, then your GETPIVOTDATA is not gonna pick that information up. (upbeat music) We have our Pivot Table here with our regions on our row labels and our months on our column labels. And it goes all the way to the right-hand side there. So what I wanna do is bring these grand totals to the left-hand side of the Pivot Table. Now to do that press equals or plus, and we'll go all the way to the grand total and enter that in there. So we'll get our grand total there. Now, if we drag it down, then it's fixed to the Americas grand total. So what we need to do in here, instead of having this Americas name, we just got to reference the cell C3, and then we can just drag it all the way down there. Now for the grand total to work, we just got to do the same clicking the grand total. If you see in the argument here for our grand total, it only has the data field, which is grabbing the sales values and the Pivot Table location, which is C1. Now this works well if you keep the format like this. But say that you want to add in some more fields, like the quarter in there, well, this doesn't work. First what we wanted to do is say that if the first cell here C3 equals to grand total, then we need to put in this formula here. If not, then put in that formula there. So let's grab this formula from in here, Control + Copy, and then in here we'll say, if C3 equals bracket grand total, then let's press Control + V and put in our formula that we took from the bottom. So if you C3 equals to grand total, then it would give us the grand total amount there. If not, then it would give us all the regional totals. And then close parentheses and press Enter. And now we can just drag all the way down here. You can drag all the way down if you want, if you're gonna add some more items in there. So that fixes that problem. And we'll have another problem with the REF error. Now to fix that, all if to put in there is an if error formula, if you're using Excel 2010 or beyond. If you're using Excel 2007, then you've got to pull if is error, I'm using a 2010, so I'll put in if error, go to the end, comma value if error, well, the brackets, so it means blank. Then I'm here, double-click, and then you can see we have our grand totals for our regions and also our grand total in there. So call it dope workaround if you wanna see your grand totals on the left-hand side of your Pivot Table. (upbeat music) We've got our Pivot Table on the top here, and we've included our sales regions and our sales months and years on the top and the actual and plan in the values area. If we go right across you can see it all the months there all the way across. Now it's pretty ugly looking. Now, we're gonna do a better report here at the bottom, by using the GETPIVOTDATA formula. Now let's close the field list there, and what we've done here is we're putting the months from January all the way through December here, we just type that in. And we're gonna use that later in our formula. And in there, we've actually put in the months and if I press Control + One, you can see that we've entered the mmm and that puts in Jan, if we press in another M, you put in the whole month, it doesn't really matter, we just wanna show that it is January, even though the actual date is the first of the first, 2014, and then the first of the second, 2014 and so on. Then we're gonna us these to determine whether our action month is an actual or a planned month based on the end of month date. So let's go into the end of month date and in there, we're gonna put in a formula called end of month and today. So press Plus, end of month. And then the start date, we'll just put in there another formula which says today and close brackets, comma, and the month we don't want any full months, we just want today's month. So today's end of month is the 31st of the fifth, 2014. We know that because if we go here, today's the 21st of the fifth, 2014, so the end of the month is gonna be the 31st of May. Now in here, we're gonna put actual or plan based on what today's date is. So if today is less than the end of month date, then it's actual, if it's not, then it's planned. So in here, we have to put in a if formula. So let's put in if, and let's click in there. So if B15, so if January, now let's press F4 twice so we can lock it in because we're gonna drag the formula down. So if January is less than or equal to the end of month date, let's press a F4 once to lock it in. So if that is true, then return us an actual in text, if false, we return us to the plan. So anything from May onwards will be plan, and before that, it will be actual, as you can see there. So now we can create our GETPIVOTDATA, and based on this actual or plan detail, you'll return us the values from within the Pivot Table, press plus or equals and click in the Pivot Table there next to Americas, it doesn't matter that it's 2012, we can change those values later and we'll get the GETPIVOTDATA. Now what we're gonna do is we have the actual there in brackets, so the first argument is the data field. So it's taking the data from the actual, but we want it to reference this cell here, if we press Enter, we get a reference. Now I'll show you a trick that will give us the actual data. So it's B16, let's press the and sign and then the two parentheses and that means that it'll lock it in as text. You see that it works. So we've got the actual there, now let's go into B16 and press F4 twice so we get lock in the row 16. The second argument is the Pivot Table and the defaults to A2, it could be anywhere in the Pivot Table, let's leave that, that's fine. The sales region is Americas, but let's get rid of this, and then let's reference it in here, and then press F4 three times to lock in the column A. And the financial year, 2012, but we can actually put an actual formula there and we can say, year and then we can go in there. So we're getting the year from January, which is 2014 and let's press F4 twice to lock in the row 15 and then close bracket. And then sales month, we've got January, let's get rid of this and then let's reference it to January. So, as I told you before, we're gonna use the months names in there in our formula and here it's where it's gonna help us out. And then press F4 twice to lock in the row and then press Enter. So we get 260,257. So we can see that Jan, 2014 actual is 260,257 so that's correct. So our formula works, all we're gotta do is just drag it across there and then drag it all the way down. And I've what I've got here are some sub-totals. Now we're gonna put in some conditional formatting here, so if it's planned, then it's gonna be grayed out, if not, it'll be blank. So let's highlight all the cells there and go to conditional formatting, new rule, and then use a formula to determine which cells to format. Let's put in there an if function, so if B16 and press F4, so if B16 equals plan then true or else false. So we're saying, yes, if it's plan, then we're gonna format it in gray. If not, it'll be blank. Let's format and let us put in a gray color there, press okay and okay there. So you see that it's grayed out. Now let's test to see if this works. So let's say we'll go into our next month and let's put in the 30th of the 6th, 2014, and you're gonna see that this plan here changes from plan to actual and the values change from the plan, it gives us the actual values for 2014 in June and the conditional format as well, gets blanked out. So let's put in there one month ahead and press Enter. And you see, we get the live change there. Again, let's go two months ahead, and that changes accordingly. So you're gonna have a situation where your actual data gets inputted in here, and all you need to do is just go to the Pivot Table, right click, refresh and then the information will get updated accordingly. And when you go into the end of month date, then the values change. So the GETPIVOTDATA formula gives you some awesome power to create some live reports, and you can print this out and send it off to your boss on a monthly basis and you don't have to recreate this each month. (upbeat music) We have listed our channel partners on the left-hand side here, and we've got the different months, and we've got the individual values for the years. And on the right-hand side here is we have a report that we'll want to compare each channel partner and based on the base year that we choose, and the comparative year, we wanna see the variance. Now we'll need to do this by inserting a GETPIVOTDATA formula, and I'll show you how to do this in a second. Now, the first thing we need to do is create some Pivot Tables. Now we've got the month base year and comparative year. Now let's highlight the month and go to insert and Pivot Table, and let's go to an existing worksheet and we'll just put it in there just for the moment. And it's drop in the month in the row labels, so we have our Pivot Table there. And then we can go to move Pivot Table and let's put there. Now we'll do the same thing for the base year, insert Pivot Table, and let's put it in here and I press okay. And then the base year into the row labels, and then let's move it in May, and then finally, we go to comparative year and let's do the same for that. Because that's the first step done, let's go to our report up here. Now, the base year, so let's reference that to the months Pivot Table. So the first entry there and press Enter and the same thing for the comparative year. Now we're gonna use slicers later on to control the months. And I'll show you how to do that in a second. Now in the base year we're gonna reference that to the base year Pivot Table, so the first entry there, and then the comparative year, and we'll do the same thing and then enter there. The next step is to put in there a GETPIVOTDATA formula. So let's press Enter and then choose anywhere in there. So we're taking the sales as being the data field, which is correct 'cause we are using the sales information there. Our Pivot Table is in A3 and the financial year instead of having 2012, let's get rid of that to here and then press F4 twice to lock in the row number. Your sales month is January, but then let's get rid of that and then we can reference that to I12 and press F4 twice to lock that in. And the channel partners, we can get rid of that. We can go in there and just go up one and press the F4 three times to lock in the column and then press Enter. So we can check this now that ABC telecom in January, 2012 was 103,000, so 2012 January, ABC Telecom 103,501. So let's put in there an if error, because if we get an error then we'll get a zero because some channel partners that don't have any values and press Enter. Drag this across press Control + Copy, and then highlight this area right-click and then put the FX in there. So we'll have our values there. The final step is to insert a slicer. So let's click on our Pivot Table and go to options and insert slicer, and then press the month. So we have a month there, now let's put that into three groups and we can move it up there. Let's do the same thing for the base year, insert slicer and then move that up here as well. And then finally, put the comparative year, click in there and insert the slicer. And let's move that in there. So then we'll have our slicers if we choose the base year, you can see that this changes and so there is the GETPIVOTDATA for the base year column, 2013 and 2014. Comparative year the same thing happens, the information changes, and you can see that because it takes the first entry in the Pivot Table. And we've referenced that in here. Now let's choose a value there. And now we can also do the months as well. So then do the analysis based on the different months. And we get the variance dollar and the variance percentage. So by using the GETPIVOTDATA in some slicers, we can do some comparative reports on channel partners, and it's not only limited to them, you can do comparative analysis on products, on employees, on whatever metrics that you like. (upbeat music) Macros enable you to record steps that you do in Excel, and then run those steps automatically with the press of a button. You can create these macros for your clients or colleagues to give them the analysis power that they wouldn't normally have. And to create a macro, assumingly to go into your ribbon and then choose view. And on the far right hand side, you have the macros button and you can press the record macro button from in here. Another way you can do it is through the developer tab. Now you may not have this activated, but I'll show you how to do this. First, you go to file, then options, then under the customize ribbon option, on the right-hand side, you have the developer box there. Now it may be unchecked if that's the case, just check it and press okay. And that will activate it. Now, another thing you've got to take into consideration is the trust center. So click in there, then under trust center settings, click that and choose macro settings. Now in here, you have different macro settings. If you choose the disable macros, then once you open your workbook, the macros will be disabled and then you'll need to enable them. Now, if you want to enable them with a notification, that means that on top of the formula bar, you're gonna get a yellow strip that says enable. Well, choose this option. If you wanna disable all macros without notification, choose the first option. And if you wanna disabled all macros except digital sign macros, then choose this option. Now, the last option is not recommended. That means enable whole macros when you open the workbook. Now you may have some dangerous code in there, so never choose this. So let's choose the second option and press okay, and okay. And now in your developer tab, you have the code here, the macros that you've recorded, you have also the addings here that come from your computer, and also you can insert some form controls in here. So there's a few options in here under the developer tab. The main thing is the record macro, or bringing up the macros that you've already recorded. (upbeat music) We're gonna record a simple macro to refresh a Pivot Table. Now to do this, first of all, we need to go to the record macro button under the developer tab, or you can go to view macros and record macro. So let's do it from here. And then it brings up the dialog box, and in here you need to name your macro. So let's call it RefreshPivot, make sure there are no spaces. You can put in here a short key just to activate that macro, next time you want to run it. And also you've got the option here to store the macro in. If you choose this workbook, then that means that you can share this macro with other people. So if you email these documents to someone else like a client or a colleague, then choose this option. If you want to keep it just for yourself, then choose the personal macro workbook. And if you want to store it into a new workbook, then choose that, we'll choose this workbook, so that can be embedded into this workbook. And description, you can just write in a short description, if you like, we're not gonna have to write anything we'll press okay. So now the macro is running and we know that because on the bottom here, we have the blue box that says, "A macro is currently recording." And we can press that to stop it. Now, if we go to the developer tab, then you can see that it's running there and it says "stop recording." So we'll know that it's recording. Now, all we're gonna do is click in our Pivot Table, right click and press refresh and stop recording. That's our macro. Now to see our macro, let's go to macros in there and you can see the refresh pivot there. Next in all open workbooks, or we can choose this workbook and it comes there. So now we can run it from in here and we can edit it or delete it from in there. Let's cancel out of there. What we're gonna do is insert a shape and then we're gonna attach that macro in there. So let's put in a shape, and then from the shape styles, let's choose a button like this. And then in here we (indistinct) to right-click and choose assign a macro, and then from in here, we can just choose our RefreshPivot macro and press okay. Now, once we've done that, you can see that the hand has been activated. So if you click that, you will refresh the Pivot Table. Now let's right-click and then type in there refresh Pivot Table. Press Control + A and let's format this a bit, let's make it a little bit bigger and then put this in the yellow and then step out of it. So if we go to our data table, and then we change the amount here to say 10 Million, and then we need to refresh our Pivot Table, we just go in there and press refresh. It's very simple to create a quick macro. Now, another thing you've got to make sure is if you go to file and save, it'll give you a dialog box that says, because this is a macro you need to save it as a macro enabled workbook. So to continue saving as a macro free workbook click yes, that's not advisable let's click no and then it brings up our save as dialog box and then from in here, all we're gonna do is just from the dropdown box, choose Excel Macro-Enabled Workbook, and then press save. And let's get out of this. And now we're in here and you can see that this Macro-Enabled Workbook, the type is macro-enabled workbook and also you get the exclamation mark. So let's double-click to get back in. And now we have the enable content. So for the macro to work again, if you click here, it's not gonna work, we would click enable content and then refresh Pivot Table and you'll refresh again. (upbeat music) Now we wanna create a macro where we filter our dates, so we can see this month's values. This quarter's values, and also the year to date values. Now we have the order dates here in our row labels, but it can be invoices due or customer payments to be received. It could be any dates. Now to create this macro, first of all we're got to clear whatever is in the filter and then run the macro for each of the three filters. So let's choose any day filter. Now let's go into our developer tab and press record macro. So the first macro will be called this month, and we'll keep it into this workbook and press okay. So the macro is recording, the first action would be to clear the Pivot Table. So let's go in there and press clear filter, and then let's create the date filter for this month. So click on the dropdown box, date filter, and choose this month and then stop recording. That's our first macro. Let's create our second macro, press record macro and call it this quarter and press okay. First step is to clear the filter, the second step is to choose this quarter filter and then press stop recording, record macro for year to date, record macro, call it year to date, press okay. Let's clear the filter, let's go back in, date filter, year to date and stop recording. So now we've created our three macros and now we're gonna put in some buttons and assign those macros to each of the buttons. And let's insert shape and we can insert this color shape there, and let's choose the start here. So what we can do now is just click on the shape with our left mouse button, press Control + Shift. And then this moves that across, let go of the mouse button, you're still holding on Control + Shift and then click and drag across. So we've created our three shapes. Now in here, we're gonna call this month, in there we'll call it this quarter and the next shape we'll call it year to date. We can click on one shape, press the Control key and select the three shapes. And then we can edit it from in here. We can center it, we can make it bigger, we can make it into a yellow color, and then we'll go to the format and text effects we can put in their a shadow if you like. And then we may just drop it down a bit like that. So we have about three different buttons. And now let's assign the macros. right-click, assign macro, this month, okay. Right-click, assign macro, this quarter, assign macro, year to date. So let's see if this works. This month, if I click this quarter or the step was to clear the filter and run the date filter for this quarter. So it does that and then year to date. Now today's date is the 20th of March, so obviously we're in the 1st quarter. So year to date and this quarter will be the same. So here you have a quick macro, to see your date filters, so when you open this workbook next month, or in a few months down the track, then Excel is smart enough to know your current date and then recalculate the date filters based on your current date. (upbeat music) We're gonna record a macro, where we're gonna get different Pivot Table views depending on the button that we're going to press. Now, the trick to this is that the first step of the macro is to clear the Pivot Table and the the second step is to create the Pivot Table. So let's go and record our first macro and call it region by quarter and press okay. So the first step is go to the options tab, clear, clear all, the second step is to create the regions by quarter. So grab the quarter's, region and then we'll grab the sales twice into the values area. Now from the dropdown arrow, we choose value field settings, and then we put in here average and press okay. Finally, select everything, go to the home tab and just put in a comma and go to the decimal places and then we can go to developer and stop recording. That's our first macro done. The second macro is gonna be called year to date sales by month, so press record and call it year to date sales by month and press okay. The first step, once again, go to options, clear, clear all, the second step is to create the Pivot Table, let's grab the years in the row labels, sales month as well, and drop in the sales twice into the values area. And from the dropdown arrow, the value field settings and show values as, and from the dropdown box here, we're gonna show values as a running total in and the base field will be sales month. And the custom name we'll change it to year to date and press okay. And then once again, click in here, go to the home tab and customize it a bit like this, develop a tab, stop recording, the third macro is gonna be called top 10 channels, press okay, options, clear all, grab our regions and our channel partners on the left and our sales in our values area, and then from the channel partners, we can filter it by value filters and top 10 and just press okay. And then finally, in the Pivot Table, we just right-click and so largest to smallest and go to develop a tab and stop recording. So we've done our three macros. Now all that's left to do is to insert the shapes and assign the macros to the shapes. So let's do this insert shape in there, and we'll get one set in there. Now let's choose the color of the shape like this, now hold down with your mouse key and then press Control + Shift and drag down with your mouse, let go of the mouse key then while the Control + Shift key is still being pressed, click the mouse, drag down and then let go of the mouse key. So we've created three similar shapes. Now let's name them. Region by quarter, sales and average, year to date sales by month, and then top 10 channels. Now let's click in one here. Press Control + A, so we can format the shapes. And then in here we can just choose a color. I like color like this and press Bold and we can just make it a little bit bigger like that. Escape. So now let's assign the macros. Right-click, assign macro and in here we wanna choose region by quarter, and then the second one is year to date sales, and the third one is the channel partners. Now all that's left is to press the button, sit back and enjoy the magic of the macros. So we have the region by a quarter sales and average, the year to date sales by a month, and then the top 10 channels by region sorted from largest to smallest. (upbeat music) We're gonna record our macro where we're gonna see our top customers by using eight scroll bar. So as we scroll up or down, then the number of customers in our Pivot Table changes as well. So our macro will be to clear an actual filter and then create the filter of the top X customers. Now let's go to the developer tab and record macro, and call it top customers, and press enter. And in here, make sure that you have the filtered Pivot Table. So the first step will be to clear the filter. The next step is go to our value filter, choose top 10, and then just press okay from in here. And then stop the recording. So that's our macro done. The next step is to insert a scroll bar. So in the developer tab under insert, let's choose this scroll bar here, and then we can just simply put it in there, just like this. Okay. So right-click in there and format control. The minimum value will be one, the maximum you can do as high as you want, just depending on your customers. We'll put in there a maximum of 100. The incremental change will be one. So as you move the scroll bar, it moves by one. And the page change will be 10, keep it at that. Now the cell link, we have to link it into the cell, A1. And press okay. So now as we're moving this, you see that the number changes automatically. Okay, up or down, or we just take this and move it all the way up or down like this. Okay. We've got 100 there, let's make this a little bit bigger. So now let's go into our visual basic button, and then under modules, choose this and double-click. And the value that we have here instead of one, let's get rid of that and we're gonna type in there ActiveSheet.Range, and then put in there the parenthesis and in brackets we gonna put in there E1. So (*E1*).Value. You can save this and close it. So what we're saying is, as this number changes, then our macro filter will change as well. The final step is to right-click in our scroll bar and assign the macro top customers, press okay. So now we can move this up or down and you can see that our customers and the values change as well as the grand total. So a cool little trick that you can use to see your top customers. (upbeat music) In our chapter 12.3, we created three different data filters. And now what we're gonna do is put these macros into our quick access toolbar, which is over here. And then we can access them from there rather than having buttons. So let's go to file and options, and then quick access toolbar. Choose here from the dropdown box macros, and you have the three different macros. So we can just select the macros and add, and add, and add. And then from in here, now press modify. And in here we can choose whatever design we like. So just up to you, there's all these different designs. Now I just use a different color like this. And for in here, I'll use another color and a year to date, I can just use that. Press okay, and then you can see that the macros are here. If you hover over it, you'll see what it relates to. Just press that and they change automatically. (upbeat music) One way to reduce your file size is to copy an existing Pivot Table into a different worksheet. Now we have our Pivot Table here and we can go to that file and look at our properties, and our size is 45 meg. Let's escape out of there. So what we can do now is go to options and select entire pivot, press Control + Copy. Now we'll go to file and new blank workbook, and press Control + V. And here we have our new Pivot Table. And if we go to file and save, we can save this as book three, that's fine. Now, if we go back into the backend, we can see that our size has reduced to 11.8 megs. Now let's just go out of there. Now, if we go to options and change data source, it's linked back to our data source in our other workbook. That's fine. Now we can also see our data set if we just go to the grand total and double-click, and it comes up in this workbook. Okay, so that's a quick workaround where you can reduce your file size by copying it into a new workbook. (upbeat music) Another way to reduce the memory size is to delete the data source. Now because our Pivot Table is run by the pivot cache, then we can make the changes without having the data source there. But the only thing is that we cannot refresh the Pivot Table. Let's look it out file size, which is 45 meg. And let's go to our data source, right-click and delete and press okay. So we deleted out data source. If we go to options and refresh, well, we cannot refresh because our data source is gone. But what we can do, we can actually rearrange this Pivot Table because it's written by the pivot cache and then put in there the regions. So we can make changes to our Pivot Table. That's not a problem. I'm gonna press save. Let's go and see our five size now, which is 12 meg. So it's reduced dramatically. Let's go back. Now if we want to see our data source again, all we're gonna do is click in our grand total on the bottom right-hand corner, double-click, and our data source has been included in there. Now we can connect the Pivot Table, just go to options, change data source, and then select our table here, and press okay. And we have our data source connected once again. (upbeat music) A good way to reduce file memory is by saving your Excel file as an Excel Binary Workbook. Now these files store information in binary format since .XLSB files are binary that can be read from and written to much faster, making them extremely useful for very large spreadsheets. Now our file size is 45 meg. Now, if we save this as a binary format all we gotta do is choose the format from in here. And the third option is Excel Binary Workbook, click that, press okay. And now let's go to the file tab and have a look that our size has reduced to 26 meg. (upbeat music) If you have over a million rows of data, then it's best to use Microsoft Access to create a Pivot Table. Excel only allows you 1,048,576 rows of data that you can input. So anything above that you'll need to put it into a database like Access. In here, we have an Access database with over 1 million rows of data. So we've got about 1.5 million rows of data here. And what we're gonna do is we're gonna import that into an Excel worksheet and create a Pivot Table. Now let's get out of this and go to our Excel workbook. And from in here, we gonna go to insert a Pivot Table, now we're gonna choose the use an external data source option, and then click on choose a connection. We're gonna browse for more. And then what we're gonna do is go on to our directory where our file is kept. So here it is here, we're gonna double-click that, and we're gonna create a cell A1, press okay. So from in here, we have all of our fields and we can simply drop in and create our Pivot Table just like that. So we have all our data there that you can see. Now just to make sure that everything is there, we can drop in the sales again, and then you use account just to count the number of transactions that are there. We can go all the way down, you'll see we've got 1.5 million rows of transaction as we had in the Access database. So as your Access database gets amended, then all you do is press refresh to make the updates, or you can go to your connection properties, and in there choose refresh every X number of minutes, or refresh data when opening the file. Another advantage is that if we'll save this, then our file size is small. Let's have a look, file and we've got 28 Meg of data. (upbeat music) Now there are a few compatibility issues with Excel 2007 and Excel 2010. Now Excel 2010 has slicers. In Excel 2007, they're not visible. So if you create an Excel file with slicers in Excel 2010, and you open an Excel 2007, they're not visible. A box will appear instead stating that the slicer cannot be viewed in Excel 2007. Also Excel 2010 has six different calculations. Now if these calculations were created in Excel 2010 and opened an Excel 2007, you will see the results, but if you refresh, then these go away. And in Excel 2010 under the report and layout, the repeat all items labels option, if these calculations were created in Excel 2010 and opened in Excel 2007, then you will see the results, but if you refresh, it'll go away. And finally, if you've saved an Excel file in Excel 2007 as compatibility mode, and you open that in Excel 2010, then you need to refresh the pivot in order to have the full Excel 2010 pivot features. (upbeat music) Now you can share a Pivot Table via Microsoft's OneDrive. Now OneDrive is the same as SkyDrive, they've recently changed the name. And before that to have access to it, you needed to set up an account with live.com. So all you need to do is have access to OneDrive via Microsoft, and then you can upload all your files in there, which I've done here, and then you can share it. So if you click on this creating a custom style Excel workbook, and then go to share, we've got the option to invite people or get a link. Now we have three options. The person can view only, they can edit, or it can be public to everyone. Now let's go to edit and create link. So now, what I can do is go to invite people and then I've got here, I can write a note that please see my Pivot Table for this year's results. And then here you got the recipients can edit, which is the step that I chose before, but you can click there and you can do the view only, but let's do edit. And in there recipients don't need in a Microsoft account. So you don't really have to have Microsoft account to access it, you can open it in a web browser. Now let's press share, and then press close. And now I'm gonna go into my inbox. And now that I'm in my inbox, you can see that I received this email and it says here, John has a document to share with you on OneDrive. To view it, click the link below. So I'm going to click this link, and it opens up a web browser. So you don't have to have an account there. And in here we have our Pivot Table with our slicers that work. Now in here, I can just right-click and show field list. And then I can take out the information here. So financial year goes out, and then I'll put in there the sales quarter, and that gets updated as well. So you can make changes there with your field list. Also, if you want to save this on your computer, you can just go to file and then save as, and then save it onto your computer there. So this is a good way to send information and view your Pivot Table with the slicers over the web, and it eliminates sending emails. (upbeat music) We have our data source here and in our financial year, we have data just for the year 2014. And what we wanna do is create a sales forecast based on a 5%, 10% and 20% increase on the 2014 actual financial year. So let's go to our Pivot Table here. And we've created a Pivot Table with our sales regions and our months going on top, and we have that up there. So now we can create a sales forecast simply by going into the calculated field. So now we're in anywhere in our Pivot Table, we can go to options and then fields, items and sets, calculated field. So from in here, we can create our different calculated fields. The first one is gonna be forecast next year at 5%, forecast next year at 5%. So the formula will be the field with the actuals, and then let's use the multiplication sign and press 1.05. So that's a 5% increase. And we can add that. Now let's set another one at 10%. And in here, we're gonna bring in the sales and then 1.1 and press add. So we've got that there. And then we'll do another one at 20%, and then 1.2 and press add. So we'll have the three different scenarios there, and press okay. So we can see here in our values that there've been added in here. Let's just make this a little bit bigger. So we can see that there. And let's go in there into each one, the value field settings. And in here we can put in an asterisk just to distinguish that it's a calculated field and press okay. We'll do the same for the next one. And then last for that one there and press okay. So we can reduce that a bit there, and like this. Now they've also been added to our field list. Okay, let's get out of here. And we can see if we just double-click in between the columns that we have the actuals, the forecast at 5% increase, the forecast at 10% increase, and the forecast at 20% increase. And it goes all the way across each month. And then we have the totals. So now, right-click and go back into the show field list. So what we can do is actually take out the sum of actual and just leave in that 5% amount. So we can see from in here if we can just double-click to reduce it, we have the 11 million. Now right-click to show the field list again. And let's take out 5% and let's put in there the 10% figure and see what we get, we get the 11 million grand total. Okay, we take that out and we put in the 20% and we get 12.7 million there. So with calculated fields, you can put in different scenarios based on your actual data, use a multiplication sign and then put an increase or a decrease, and you can do some different sales forecasting models. We can just highlight all that, press Control + Copy, and Control + V in there and Control + V there. Okay, so the first one we can put in the 5% scenario. In the second one, we'll put in the 10% scenario and click on your third one and we'll leave it at 20% there. So we have our three different scenarios and you can make your decision on which one to use based on what your business sees as feasible. (upbeat music) With a Pivot Table wizard, we can actually consolidate information into one Pivot Table. Now we have here four different salespersons data, and they're all in a similar format. You see their salesperson one, salesperson two, salesperson three and salesperson four. Now, if they're all in the same format, then we can consolidate. Let's go to the consolidated report. Now the pivot chart wizard, there's two ways to bring it up. One is to press ALT + D + P, and we can bring it up like that. Let's cancel out of there. The other way is to go into the quick access toolbar, commands not in ribbon, and then put in Pivot Table and pivot chart wizard. Now to do that, we'll go to file and options, quick access toolbar, and then from the dropdown box commands not in ribbon, and then click in there and put P to go all the way down. And then we can just choose the Pivot Table and pivot chart wizard and press add, press okay, and then it's added in here. So let's press that to start our wizard. And it gives us three options. The first option is Microsoft Excel list or database. The second option is external data source. And the third option is multiple consolidation ranges. And we choose the Pivot Table and press next. And then in here to create a page field, choose I will create the page fields, and press next. So now the first step is to select the range and let's go in here and select that, and press enter, and then add. Go to the second sales range, select data then add it. The third salesperson's data select that, add. And then finally the fourth sale information there, and then press add. Now how many page fields do you want? We're put in there zero, 'cause weren't gonna use any page fields. And then press next. And then finally it asks us, where do you wanna put the Pivot Table report? Let's choose somewhere there and press finish. And you see the Pivot Table field list here has got a row, column and a value, because it's defaulted to those names. Now the values we can just choose a dropdown arrow, go to value field settings, and then a number format. And go to number, no decimal places, 1000 separator, and press okay, and then okay there. So here we have our consolidated report from the four different salespeople. Now, if we go into one report here and let's just say, there's a change that was made. For example, let's put in a big amount, 1 million, and press enter. Put that back here. All you need to do is right-click and refresh. And then you see the value change on the bottom right-hand corner there from 127 to about 128 million, press refresh, and see that gets updated. So each time your salesperson sends you an updated report, you can just refresh this Pivot Table and you get the consolidated data. I'll show you another cool little trick. Say you receive your data like this in this format, and you want to put it into a tabular format. For example, in the first column, you want to show the regions, the second column you wanna have all the months, and the third column, you wanna show the values. Now to do this, we have to bring in our Pivot Table wizard and then choose multiple consolidation ranges, press next. I will create the page fields, press next. In the range just choose this, okay. Press enter, and then next. And we can just put it in there and press finish. So it brings up our consolidated range, but we already consolidated one piece of information, that's fine. The trick to this is you've gotta double-click in your grand total. And then you see here that you get your tabular layout. So you have your regions in the first column, you can change this to regions instead of having a row. The column, you can change that to months, and we have the values, and go all the way down there. So it's a good workaround when you get information that comes in on tabular formatted style, and you wanna put it back into a Pivot Table tabular format. (upbeat music) Sometimes in finance or accounting you wanna do a frequency distribution to see how your sales or costs are distributed depending on different groups. Now we have our information here without actual dollar sales and let's create a Pivot Table, we'll go into insert, and the Pivot Table, and let's put it into our existing worksheet in there and press okay. Now from in here, we're gonna put in now actual dollars in our row labels and then drop it again into the values area. And from in here, we just wanna get a count. So we'll see how many transactions fall in between a different group. So let's click in our row label and right-click, and only to group here our sales, and we have a automatic starting and ending point based on the minimum and maximum amounts. Now we can change that to put in 10,000, and then ending at 100,000. And increment, we can have 10, that's fine. Press okay. So we have our sales ranges there and we can see the amount of transactions that we have in the values area there. Now we can put that in the graph by going into options and pivot chart, and we can choose a column and press okay. Now just right-click there and hide all field buttons on chart. And let's make this a little bit bigger. And we can call this frequency distribution of sales. Okay. And then you can just get rid of that. So now we have our graph, and we can see the amount of times that we have sales between 10,000 and 19,999, you can see it there if you hover over this 22. And you've got the different sales groups, and we'll have our frequency distribution in the graph. And you quickly see which sales ranges are more popular and which sales ranges are not. (upbeat music) We can do a breakeven analysis with a Pivot Table. We have a scenario and item and a value table here. So in our scenario, we have three different scenarios, slow production, normal production, and fast production. For each scenario, we have a variable cost per unit and a total fixed cost. And we see the values there. Now we can create a Pivot Table from here. Just click anywhere in there and go to insert and Pivot Table, and we just put it down here for now. In our row labels, we'll put in there the item, and the value, will go into the values area. Now let's drop in a slicer for the scenario and press okay. So we have our slicer there. So as we choose the different productions, the Pivot Table changes. And by this, we can go into our breakeven model and then reference the sales to the total fixed cost, and the variable cost per unit. And as we change these scenarios, then our break even model gets updated accordingly. So let's grab our slicer, press Control + X and go into our breakeven point and Control + V to put it in there. Now we'll have our breakeven model, which is a price per unit, which is a manual entry we're gonna pull. The unit sold, again, a manual entry. And the total sales is the price per unit times the unit sold. The cost is the variable costs, and in here, we're gonna put the units times the variable cost per unit that's in our Pivot Table. So let's choose the units and then press times and go to our scenario to get the variable cost per unit, which is in there and press enter. Now, the fixed cost would just be the fixed cost total from the Pivot Table. So go in there and grab that and press enter. So now we're gonna put in a price. Let's put in $10 and the unit sold, let's put in there 2,000 and press enter. So on a slow production, we're making a profit. On a normal production our profit reduces because our variable cost has increased and our total fixed cost has increased. And under a fast production, we have a breakeven point there. Now you can change these amounts just to play around with the numbers, but based on this analysis and using a slicer, you see how you can put in different scenarios and determine what your breakeven point is for your product or a new business model. (upbeat music) Now in here, I've created several different slicers that you can copy and paste into a new workbook and apply to your current slicers. Now, for that, you need to go on to chapter 7.4, copy a custom style into a new workbook, to see how you can do that. But here, I'm gonna show you the different styles that I've created and also shows you the flexibility that you have when creating a custom slicer. You have many options and I'll give you some ideas to see what things you can do. Okay, so let's click in our slicer there and go to options. And in here on the top, I've created eight different slicers. So the first one is to this, and you see the things that they can do. Let's go to the second one. We got to the third one there. The next one. Then in here. So you see the different styles and fonts that you can use. And finally, we have this one here. So depending on your creativity, probably yours is much better than mine. You can create different styles. Now I've created this, it's pretty quick. You have the guide here on the left to see what you need to change. And once you do one, you can actually do many more. So once again, in chapter 7.4, I teach you how to copy a custom style into a new workbook. And in chapter 7.3, how you can create a custom style. (upbeat music) With a Pivot Table and slicers, we can create a balance sheet that's interactive. Now I've created the one here and what I've got in there are four different Pivot Tables. I've got two graphs that I connected and also some metrics up here. And then with a slicer, once I make the change, the metrics change, the graph changes and so do the Pivot Tables. So I can see my different status as at every month. So you can see, you can do some pretty powerful reports, and it's not that hard. I will show you in the next couple of minutes, how to do this. So the first thing you need to do is when you're creating a dashboard or a interactive slicer with charts, you gotta make sure that you set out your canvas and then separate it into different areas. So on the top here, we're gonna put in there the slicers. And then second, we're gonna put the metrics. At the bottom, we're gonna have the graphs and down here we're gonna have our Pivot Tables. So let's go onto our data. And we have our data here which has the months. And we have the years for 2014 only. And we have our balance sheet items into current assets, current liabilities and non-current assets and non-current liabilities. And the type here, we have the different types of assets and liabilities as defined in a normal accounting business structure, and press okay. And we have the actual amounts there. So from in here, we can create a Pivot Table, go to insert Pivot Table and existing worksheet, and let's put it in here and press okay. So we're gonna drop in our balance sheet into the row labels and type into the row labels. So you can see it's like this. Now we'll make some space here so we can fit it in. Now, from in here, make sure that under options and options, the auto-fit column is switched off. And the design sub-totals, do not show sub-totals, and then field headers, we can get rid of them. And also the no buttons. Now, one thing we've gotta drop in are the actuals into the values area. Now, from in here, we can actually get rid of that and then just press a space. So it recognizes that as a character and it's a work around to having a blank header. In the grand total, we're gonna change that to total current assets, and press enter, and that's fine. Let's go back to our values and we can put in there the dollar signs into the number format. Let's go to currency and choose dollar signs with a negative red and zero decimal places, and press okay there. Now we can filter this just for the asset. So when we go into the balance sheet, we can just select the current assets, and press okay. So it just gives us the current assets and in the design, we can choose this one in there. Now we can click and go to options and select entire Pivot Table and press Control + Copy. And in there, press Control + V. We've pasted the similar format in here. So we'll have to go and redo all the formatting again. So the only thing now is instead of the balance type being assets, we can just choose current liabilities. And that changes there. Now let's do the same for the non-current asset. So again, click there, select entire Pivot Table, Control + Copy, and down here press Control + V. And we can do the same thing there. So let's click in the non-current assets. Let's change that to select the non-current assets. And in here let's select to include the non-current liabilities. Now let's delete this space here. And then in here, we can just highlight it and put in a light gray. And the total assets, let's do the sum, which is the current assets plus the total current assets. Now we get up and GETPIVOTDATA. So let's escape out of there. Let's click in a Pivot Table, go to options, and from the dropdown option, let's get rid of GETPIVOTDATA 'cause we don't want that. Once again, let's click in there. And then we'll do the same thing for the liabilities. So we have our Pivot Tables there for the assets and the liabilities. We can actually highlight all of this and choose a different font if you like. Okay, so the next step now is going to put the ratios there. So the current ratio is current assets divided by current liabilities. The quick ratio is the current assets minus the inventory divided by the current liabilities. So we'll get that minus that inventory, and then divided by the current liabilities. Now the debt equity ratio equals the total liabilities divided by the owner's equity. So let's go to the total liabilities there, and divide it by the owner's equity. And the owner's equity is simply total assets minus total liabilities. So total assets minus total liabilities. So we have our numbers there. And in here, we can just adjust that if you like. Now, one thing I noticed here that we didn't change the names for the grand totals here. So here it should be total on current assets. Here it should be total current liabilities. And in here total non-current liabilities. The next thing is to put in here the chart that relate to the total liabilities. So let's highlight total liabilities and the amount there, and got to insert and bar chart, and we can include that in there. So let's just start in here for the moment. We can get rid of the totals there. And then the gridlines, let's make this a little bit bigger. And then highlight that and get rid of it. So there's a click in our bar chart and press Control + 1. And then from in here, we can go to fill and pattern fill, and then choose this format there. And then we can choose the red color and then let's click outside of the border there. And then the border color have no line as well. Now from the X-axis, click on that, press Control + 1. Maximum, you can leave it as automatic, but we can put it into maximum of 1 million. And the major unit will be 200,000. Display unit, we're gonna put that in hundreds. And then the minor tick mark we'll have that cross. We'll show display units on global chat, that's fine, and press okay. And finally, let's make this in gray color and this as well. So we've created the chart or we can just make it a little bit smaller or bigger just depending on the size there. So we're gonna do the same thing for the other chart. So instead of going through the same process, we're gonna save this chart. So go to design, save template as, now when you do that, it goes to the Microsoft templates and charts, and we're gonna call it in the interactive balance sheet. So let's create the other chart. Let's click on the total assets and go to insert and bar, and bar, and we'll have that there. So let's go to the change chart type from the template. Let's hover over here and go on to our interactive balance sheet and press okay. Now we're gonna change this to a green color, and also it's gonna go from right to left as well. Let's click in the chart, press Control + 1. And then the fill is gonna be a green color. And let's click in here and the values are gonna be in reverse order, and press okay. One thing you'll notice is that we have hundreds and let's click in here and press Control + 1, and we change it to thousands. And the same thing for that, let's click the X-axis and change that to thousands. So now we can put the charts in our dashboard and we can reduce it like this, just to make it fit. We can change that later on. Okay. Now the same thing for this. We can just put in there. Okay, now one thing is that background should be great. So click there and then put in the light gray background, click in the graph, press F4 to repeat, the same thing in there, press F4 to repeat. And we have our chart in there. The final thing we'll need to do is put in that right slicer so we can control the months. So click anywhere in the Pivot Table, go to options and insert a slicer, and let's choose month and press okay. And from in here, we can put it into six columns. We can drag it across like that. Right-click, slicer settings, get rid of the display header. Now let's choose the custom slicer, which I created earlier called Johns Wicked Slicer. And we can read this like this, or we can just make the buttons a little bit bigger. So we're gonna fit it in there. So that's fine in there. Now, one thing we need to do is connect the slicer to the four different Pivot Tables. So and click on the slicer then right-click, and Pivot Table connections and just check all the boxes. So we're connecting all the Pivot Tables to the slicer, and press okay. So now we can press January, the Pivot Tables change, the totals update and so do our metrics. So we have our live and interactive dashboard. You can see at any time how your business is doing, which is a pretty powerful tool to use, but it is pretty easy to create this once you know how to use Pivot Tables, slicers, and a couple of charts. And by going through this course, you're gonna find out how to do all this stuff here. And it's not that hard. It looks pretty fascinating to you use the Pivot Table principles and some common sense and then you can create a dashboard just like this. (upbeat music) Here we're gonna create a monthly sales manager performance, where we see the sales for each sales manager on the left-hand side going all the way down the rows, and then get a percentage variance from the previous month. So we track each salesperson's progress from one month to the next, to see whether they've increased the sales or decreased the sales from their previous month. And we're gonna use some conditional formatting to show the variances visually. Now let's create this. Click anywhere in our data set, go to insert and Pivot Table, and go to new worksheet. On the left-hand side, we're gonna put in the financial year, then the sales month, the salesperson will go on the column labels. And we're gonna put in there, the sales twice. Now let's close that. Let's reduce this a bit. Now go to design and grand totals off for rows and columns. Let's make a few adjustments here. Let's just make this centered. Okay, now let's bring in our field list and we have our sum of sales there. Now let's click in there just to format our numbers. And in here we can click and choose show values as, and we get the different from percentage difference from the previous month. So we're gonna show values as a percentage difference from the previous sales month and press okay. We can go back in there and just format the numbers. Let's go to custom and choose a red in there. And then before the semi-colon we'll put in a percentage. And press okay, and okay. Let's change the name here. Instead of sum of sales, let's call it delta or variance, I'll call it a delta and that changes there. And here, instead of sum of sales, let's call it sales. That already exist. Let's press okay, and put a space. And then we have that in there. Now we need to put in there a conditional format. So let's click in the variance column and go to conditional formatting and choose the icon set. And let's choose these arrows here. Now, from this dropdown box, let's choose the last option just so we can see the conditional format only on the values and not the sub-totals. Now finally, we need to go back to conditional format, manage rules, double-click in here and let's show icon only. So we don't wanna see the percentages, we just wanna see the icon. And the values here, when the value is bigger than zero, a number and also zero and number. So it's bigger than zero it will be green. If it's zero, it'll be orange, and if it's less than zero it'll be red. Now let's press okay. Apply this, okay, it works perfect, and okay once again. We can see here that 294 is bigger than 170, 312 is bigger that 294, and then 229 is the less than 312. So it goes down. So you see the delta for Homer Simpson, the delta for Ian Wright and so forth. Now, finally, let's go and put in a slicer. Let's make some space up here so we can put it in there. Let's got to options, insert slicer and got to salesperson. Now let's make it like this. And we can go to columns, just make it a little bit bigger, and we can increase the size a bit. And we can change it to a color like that. We can put in there to make it a little bit bigger. Okay, so we have that salesperson there. So now if we choose Homer Simpson, we see his values there. We can just make this a little bit smaller so you can see it goes all the way down there. Okay. Now let's double-click here so we can get a bit more space. Ian Wright, John Michaloudis, and if you wanna see all of them again, just clear the filter. So by using show values as, some conditional formatting and some slicers, you can do some impressive sales manager performance reports. (upbeat music) We have a list of customers here, and we have the payments column here. And in black, we have the outstanding receivables and in red, we have the payments that we have received from them. Now we can do a reconciliation by going into customers and sorting from A to Z. So we can have all the customers sorted alphabetically, and then we can go to the payments column and then manually see whether that equals to zero. And we can see down here that it does equal to zero. But imagine if we had 1,000 customers, we'll be here all day doing this. And there's a quick way to reconciling customer payments. Let's go to insert Pivot Table, and we can just put it in here in existing worksheet and let's drop the customers in the row labels, and then the payments in our values. Now, by doing this, it sums up the credits and the debits, and it gives us a zero amount if our customers have paid. And then we can see here that 123 Warehousing and ABC Telecom have paid the bills. Now Acme Corp, we have $3,467 outstanding. So they still owe us some money, but in Ajax we have a negative 2,900. So they overpaid us. And we can have a look here. If we highlight that, we can see that there were two payments of 3,200. So it shows us there that our customer has overpaid us and wanted to return the money. So by doing a Pivot Table, you can quickly analyze a bank reconciliation instead of doing it the manual way, and you're sure to save heaps of time. (upbeat music) Now, I'm gonna show you a great add-in that will save you heaps of time when you're working with Pivot Tables. It's called pivot power and an add-in from contextures.com. Now, Debra Dalgleish is the one that invented these add-in and it's absolutely fabulous. And she's written lots of books on Excel Pivot Tables, and has been around the game for many years. And based on her experiences, she's come up with this little gem where it's gonna save you heaps of time. Now I've got a 20% discount for you. So if you stick around at the end of this video, I'll show you the code where you can use and purchase it from her website. I'll show you some quick benefits of this add-in. Now when we have a Pivot Table and we create it into a new worksheet or any worksheet. Say we wanna put in there some fields. For example, let's put in our quarters in our row labels, and then let's put in our sales month down here as well. Then the years on the column labels, and then the sales here. So we'll have our Pivot Table here, and that's the default Pivot Table. And it's pretty ugly looking. You have this star here, which is not very nice. The numbers are not formatted with a comma, and you have the gridlines in the back, which looks pretty ugly. So every time you do a Pivot Table you gotta go into the design, choose your favorite design. Then you gotta go in to here, value field settings, and then change the number format from in here. So you see there, you've got about three, four steps to choose. And then view and get rid of the gridlines. So you got a few steps here every time you do a Pivot Table. So imagine you had a default setting. So you press one button and then it gets updated automatically. This is where that Pivot Power comes in. So the add in is in here. So once you purchase it and you download it, you've got all these different features here. And I'll talk about it, just a couple of them now. So you've got the set default. So in here is where you see your default of how you want your Pivot Table to look. And then next time you come in there, all you gotta press the apply default, and it will apply to all your Pivot Tables. So in here we can choose the format, auto-fit column widths. We can get rid of that because every time you refresh, you don't want it to reduce the column size. You wanna keep it the way that you want it. You've gotta get some grand totals as well. Now, the good thing here is the sort field list from A to Z. So you can sort it automatically. So from A to Z, imagine you had a big list and it wasn't sorted alphabetically, then it'd be a mess to get in there and trying to find some fields. You've got some printing settings there. Now in the report layout, you can choose a compact tabular outline. Now I personally like the compact, but I know a lot of people like the tabular and the outline format. So you can choose whichever one you like. I'll keep it compact. And the style, you got all the different styles there. Okay. So if you go into your design, and then hover, whichever one you like, you see you get your style number. So this is called medium two. So I can go back in there and say, I want to show the medium two. Okay. So medium two, you got everything in there. You choose whatever one you like, I'll keep it there. Okay, so let's go back here and just do the compact. We had the auto-fit columns off. Now in here, you got a few other things that you can do refresh data on file open. You can keep it like that. Now let's go to the pivot field. You got a few settings in here that you can choose. And also if you've got a number format, here, you got the different formats. So you got number, accounting, percentage, now I like a number with a zero decimal. And I'll apply this selected number format all the time. You also have the workbook settings here. And in here, you got the option to show gridlines or not show. I hate gridlines, so I'm not gonna show them. Let's press save and apply. And look at that, it's applied that to our Pivot Table. So you wanna go back to your data table and do another Pivot Table in to a new worksheet. You just drop a few things in here, it doesn't have to be an order. Whatever you like. What you gonna do is go back to your Pivot Power add-in and say, apply default, and apply our defaults, and it updates it automatically, and you save heaps of time. So you have a Pivot Table here, and you just want to quickly put in some number formats. Or you go to Pivot Power and apply this number or format, and it does automatically and saves you heaps of steps. In this Pivot Table, I've got some counts of sales and average of sales. And if you look in there, right-click, you have your different values there. And so when we wanna change all of these into your sales, we'll have to go back into one value field settings, sales and do the same thing for each one of them. Imagine you had about 10 different metrics there, and you just want the sales. Well, in Pivot Power, you go to Pivot Power and choose the sum all. And it changes it to the sum, and go to number format and it puts in the format in there. Now let's drop in some filters in here. And then we can just quickly choose a few of the filters. And then sales region, choose a couple. Okay, so we'll have a few of our filters there. Now say you wanna clear them, you gotta go in and press all and then go in and press all. And that's a long way. Let's press Control + Z and we'll go back. And so we had, okay, a couple of more filters here, a lot of our customers, and choose a couple. Now a quick way to clear the filter is Pivot Power, and then go to clear all filters with one step. Another things is the GETPIVOTDATA is just right there. So you can turn it on or off. A great feature is on the Pivot Table. You go to Pivot Table and list or Pivot Tables, and it shows you in a separate sheet, which Pivot Table that you have active in the workbook. And it also shows you the pivot cache number in there. And also the last refresh date. We'll go back in here, you go to cache, you go to cache list. It shows you how many caches you have. And here we have cash index number one. So if you've got an array of different buttons, that will save you heaps of time when you're working with Pivot Tables. Whether you're new to Pivot Tables or an advanced user, this was definitely a great add-in. And because you've purchased my Extreme Pivot Table Course, then Deborah and I will give you a 20% discount if you put in this code in here, M-E-R-X-P-T-C. And that's short for My Excel Online Extreme Pivot Table Course. So you put in those seven letters when you go to the checkout, which is also listed now. You'll get a 20% discount upon checkout. So if you have any queries or any issues, you can send me an email and then I'll be glad to answer any questions that you may have. (upbeat music) So we have Excel 2013 on the top here. We have the ribbon here and we have Excel 2010 at the bottom half here. And I'm just gonna through a couple of the cosmetic changes in Excel 2013. When we click in the Pivot Table, we get that Pivot Table tools option in Excel 2010. And we have the options and design tab. In Excel 2013, options has been changed to analyze. So you can see that it's called analyze, and 2010 it's called options. That's pretty much the major difference. Everything else has remained the same. It's just a name change just to confuse us. But apart from that, nothing else has changed. So another thing you see in 2013, we have the insert timeline, which I wanna talk about shortly. That's a new feature in Excel 2013, and also the recommended Pivot Tables over here. I've got a design and then go to design in Excel 2010 here, nothing much has changed. Everything else has remained the same there. So the major change is a name from options to analyze, but that is just a simple name change, and a couple of extra features that have been added into Excel 2013, which I'll talk about. Now let's talk about the Pivot Table field list here. So now on the left hand side, I have the 2013 Excel version. On the right-hand side, I have 2010. So we see the different pivot field lists. Nothing has changed there. Now, one thing you see here is more tables here. Now this is the data model in Excel 2013, which I will explain. That's the more tables option here. And the other thing we can see here is, in Excel 2010, it's called row labels. In Excel 2013 it's called rows. In Excel 2010 it's called column labels, in Excel 2013 it's called columns. Now they're just simple main changes. Apart from that, everything else seems the same. (upbeat music) We have an Excel table here, and let's go insert a Pivot Table. Go to insert, and you can see here in Excel 2013 is recommended Pivot Tables here. Now, if you don't know which Pivot Table layout will be best to use with your data, then I highly recommend you apply this recommended Pivot Table options. Now click on that. And it has the 10 different ways that you're gonna summarize the Excel table that we have here. And you can scroll all the way down, and then choose with your mouse. And then you can see it over here. So it's a count of sales by products, count of sales by sales. So it gives you a preview of the different layout that can be applied with the data that you have. Let us click down here. So this is quite good, especially if you have a lot of data and you don't know what to stay, you think, okay. So what goes in the rows? What goes in the columns? This will definitely help you to get started, especially if you're a newbie, even if you're an intermediate or even advanced user, sometimes you get caught up with all the data and it's good to sit back and see the different options that are available. And it may just you to create a Pivot Table that you never thought you would have created previously. Now you click here on a blank Pivot Table, and it gives you just a blank Pivot Table. You can start from fresh. You can also change your data source and you can get another data source if you like, but just choose one of them here. Let's choose this, I like that, press okay. And you see that, it's already done it for you. It's put in the fields in the rows and in the values here. So it's just to save you lots of dragging and clicking. And if you don't like this, well, you can just move it around. So, great, great new feature in Excel 2013, which is gonna save you lots of time and expand your Pivot Table horizons. (upbeat music) If you want to do a distinct count using Excel 2010, you have to put in a complex sum product formula. But in Excel 2013, you can do this quickly using the data model feature. Now we have our sales table here and there's a lot of order dates here. You go all the way down to about 3,000 rows. And as you can see, a lot of dates are duplicated. And we wanna know how many distinct or unique counts we have in the order date. To do this, we'll need to create a Pivot Table. Go to insert, and Pivot Table, and then add this to the data model. Now let's put in our order to date in the rows column there. And again, the order date in the values here. Now this will count it here. So it'll show the total number of transactions. And let's drop it in again here. And what we wanna do now in the second one, we'll not do the distinct count. So let's click in the drop-down, choose value field settings, and then in the summarize values by, there's a new distinct count calculation here that's been added, and that is just fabulous. So all we're gonna do is we can just change this here, distinct count and press okay. So there you have it. All right, number one, just to confirm that that works properly. (upbeat music) Excel 2013 extends slicers for date fields, and these are called timelines. Now a new timeline slicer enables you to easily filter your Pivot Table by month, quarter, or year. In our Excel table here, we have order dates. So our timeline slicer will be created because you need a date to create that. So let's go to insert and Pivot Table and put into a new worksheet and press okay. Let's put in some sales in our values area over there, and put in the sales regions like that. Now we're in the Pivot Table, Pivot Table tools, analyze, and here insert timeline. Let's read these. Use a timeline to filter data interactively. Timelines make it faster and easier to select time periods in order to filter Pivot Tables, pivot charts, and cube functions. Let's press that. Now it gives us the slicer, the only slicer that's available is order date because that is a date. If I had more columns with dates, it'll bring it up. Because I've only got one date column, it gives me only one option, click that press okay. And here we have it, how nice is this? So the order date is the field name there. And if you scroll all the way to the left there, we have Jan, 2012 all the way to December, 2014. And that is the range that we have here. So that's the data range that we have from 2012 to 2014. And it shows it here. These are the available filters that we have based on our data. And you can expand that and make it bigger like this. And so you can scroll all the way there. And let's choose January, February and see how it changes. And here it gives you the option to expand and include other months. So we can do the first quarter in January. And you see, when I did that, it says Q1 2012. Let's click on April and hold down the left mouse key. And it automatically puts Q2 over there. Now let's clear to filter here, and let's go if we want by years. So it automatically puts it by years, and you can say 2012, 2013, 2014. Let's put it by quarters. And let's go Q1 two, three, four, and you can highlight all that. Let's clear the filter, let's go to months and it gives us the months. And then we go all the way down to days, all the way down to days. Day one from January. So this is really good filter if you wanna drill down and expand on your analysis, this is a great, great tool and a great feature in Excel 2013. Now let's go back to quarters over here. And just sort of timeline tools. When you click on that and click out, let's click back into it. It gives us a timeline tools option here, and we can color it like a slicer. We can use different slicers as there with different colors. And we had several other timelines, we can use this report connections to connect them. That's creating a dashboard. And I talked about that in previous chapters. So if you have different timelines slicers, then you can connect them and create an interactive dashboard. Now you can move the height, the width, include the header title, get rid of that, the selection label, the scroll bar, and also the time label. So different stuff there. This is very, very nice, I like it. And you can also create a new timeline style, by clicking in there. And we talked about how you create slicer styles. The same thing applies here to timelines. This is a great feature. Go for it, insert it, play around with it and wow your boss. (upbeat music) An Excel data model is new in Excel 2013. And it allows you to take information from different Excel tables and create a Pivot Table from it. Now, before this, you had to use VLOOKUPs or SUMIFs, and it got a bit messy, but if there's a relationship between each of the tables, then you can create a data model. So we have an Excel tab here, and if you click on it and go to the design, it's called sales data. The same thing here for customer, are called the customer data and product are called the product data. So let's go to the sales here. So this has, if we scroll all the way down, it has nearly 50,000 transactions. So these are daily transactions and it's usually what we download from our ERP system. And it has a product key and a customer number. Now the customer number here, you can see it's depicted by 1001 all the way to 1010. And in our customer table here, we have the customer numbers, 1001, all the way to 1010. And these are distinct values. Now, if these are distinct values, then we can create a relationship. If we had, for example, two rows with 1001 and a different customer name, then this wouldn't work. For a data model to work, one of the table has to have distinct values. And the other one, for example the sales can have as many values as it wants. So this is the one to many relationship. So the one is this unique Excel table here with the unique customer numbers. And then the many is the sales transactional Excel table with many customer numbers. So we have customer number here and we can create a relationship within the customer here. Now we also have a product key here. So we have a product key. It goes all the way down from one to 20. And then our product table, we have these unique entries and that means that we can create a data model relationship. Now to do this, let's click in any one of our tables. Let's click sales and go to insert, and a Pivot Table. And we get our create Pivot Table dialog box. Now, what I can do is put in here, add this to the data model and press okay. So you can see here, it's loading to the data model. So that loads it all the way there into the data model. And if you got it all. Now in all, we have all the different tables that are available so now for us to create a Pivot Table. So we created a data model and what we need to do now is to create a relationship. So to create a relationship under analyze and relationships, and go to new. Now, the table here is the table that has all the transactions. So that'd be the sales down here. So let's click on the sales data and let's create a relationship. So we said that the customer number is unique to sales and also to the customer table. Now the related table will be the customer data. And the related column will be the customer number in this Excel table there. Now the primary key is the table that has the unique identifiers. If there are any duplicates in there, it's not gonna work. So this is the primary means of the one. The foreign means many, so it's a one to many relationship. So if you ever get confused, always put your Excel table that doesn't have duplicates into the primary area. And then if you have a sales data table which has many rows, then obviously we'll have duplicates, put it into the foreign area. Now let's press okay. So that's created that relationship. Let's add another one. Let's go to new, so our sales data, we're going into the many side, which is the foreign side, and we're gonna put the product key now because we're gonna relate it to the product data Excel table. And then in here, the product key was the unique identifier. So it's one to many relationship, and press okay. Now you see when I did that here on the right-hand side, that the top of this diagram went gray. That means that there is a relationship and is now loaded to the data model. Then I wanna change this around here, just so again for our purposes. Okay, so we can see it much better, and that's great. So now all we can do is get the sales data, the sales amounts from the sales, that will bring the values there. And we can get another field in here. We have the product key in the sales item, but we don't know where the product name is. Because of the product key and the product key are related here, that and that are related, we can get any of these fields and drop them in here and create a Pivot Table analysis. So let's get a product name and then let's put it in the row labels. And you can see that it shows us the sales per product name. So it's taken two Excel tables and created a Pivot Table from that. And without using any VLOOKUP. We can also go in here and put in a customer name if we like, because we've said the name is linked to the customer number. So if the customer number and the customer number here, are linked then we can take any of these fields and bring them into our analysis. Let's put in the name in the columns area and there you have it over there. Let's just put that over there. And that's our analysis that we have our three Excel tables that are linked together, and we can choose which fields to use because they're all related to each other, and it gives us the power to do all this great analysis. (upbeat music) A new feature in Excel 2016 is the ability to auto-group a date column. Now we have our table here and we have our order date there. Now let's create a Pivot Table and I'll show you how this works. Let's got to insert Pivot Table and a new worksheet, and we have here our, let's make it a little bit bigger. Okay, so you can see. Okay we have our order date there and let's put in sales first in there. So let's put in the order date in the rows and have a look at what's gonna happen. It automatically grouped into years, quarters, and it's got our order date in there as well. So in our Pivot Table, we can expand here and we say the quarters, and we'll get them to go deeper into the months. So this is a great feature and it saves you the hassle of right-clicking in a date and then choosing the group. Now this automatically groups, and it's super, super awesome feature they've added in Excel 2016. And if you don't like this, then you can just right-lick and press ungroup, and it'll bring everything back in there and get rid of the years and quarters. Now let's right-click and group and put it like this as it was before. So if there are multiple years, the years will come up and then you have your quarters and you have your original data field there. So a great feature in Excel 2016. (upbeat music) In the previous versions of Excel, when you had to select a slicer and you wanted to select say a second or third slicer, you had to hold on Control key. So I'm holding the Control key and pressing Asia and Europe. You see that? Now we've Excel 2016, this icon here which is multi-select, so you can press that and then you can left-click with your mouse without holding the Control key, and it selects multiple items. (upbeat music) A new feature in Excel 2016 is the ability for pivot charts to expand or collapse its data. Let me show you an example. Click in our Excel table and go to insert and pivot chart, and let's press new worksheet and just press okay. So let's put in our sales in our values area, and let's put in our products in our axes. And then when we put in two or more fields in one of our axes or legend series, then it gives us the ability to zoom in or zoom out. So I'll show you that. When I put this and you see in the bottom right-hand corner, the plus and minus sign. So it's put in the sales region in there. So you can see the collapse field, you can collapse that. And also the Pivot Table gets collapsed, or you can expand it and then see all the details in there. So this is great if you just wanna show two different scenarios, when you're doing a presentation to your boss. (upbeat music) Now if your data has geographical fields such as addresses or postcodes, you can build a Pivot Table on a map by using the 3D maps icon on the insert tab. So we have postcodes here for US, and they're all the way down there. So you've got different postcodes and what we need to do is go to insert and 3D map here. And we can put in a new tour. And you can see here, it's put in our postcode if we zoom in there, the different postcodes that we have located. So it shows us where our values are located. So where our sales are located. Now in the height here, we can add a values field. So click on that and put in our sales. So you can see that from in here, let's just bring this down here and we can get rid of that, and just bring it up to there. So we can see that because we chose a stack column. It shows us a stack column like this, which is a little bit weird. And then we have the bubble and then the heat map, which is a little bit better, which shows us where our most sales are. So whatever he has has a dark red there, it means that there's a lot of sales there. So this is pretty cool in Excel 2016. If you have addresses or zip codes, it uses Bing to visualize a map. And it just gives you another way where you can visualize your data to your management team. And I think they're gonna be very impressed. (upbeat music) So Excel introduced many wonderful new features in its update in Excel 2019. And before we get into them, I like to just let you know which Excel version that you currently have, because a lot of people get confused, every three years there's a new update. So they get confused and they don't know what Excel version they actually have. So I will just quickly show you how you can check which Excel version you're currently using. Now I'm using Excel Office 365. With that, I get the new updates when they are released. So when Excel 2019 was released, then automatically I got all those features. But if you purchase the one time license for Excel 2019, then you will also have these new features. So I'm just gonna let you know how you can check which Excel version that you have. So you need to go to file and then account, and then about Excel over here on the right hand side. Now in here, it'll say Excel for Office 365, because I'm on the subscription model. If you have Excel 2019, it'll here Excel 2019. If you have any other version like 2016, 2013, 2010, it'll say that up here. So being Office 365, I always get the new versions updated. So therefore being on this subscription model, I have the latest version, which means I have Excel 2019. You can also check below. I have a link that goes to my blog and explains the different Excel versions and how to check them. It just makes it easier for you to find which Excel version that you're using. (upbeat music) Over the last few years, I've held many Pivot Table webinars, and I get lots of questions in the webinar chat. And one of the most common questions is how can I make my Pivot Table layout a default layout? So every time I create a Pivot Table, it shows me the layout that I want and not the default layout that Excel gives. Thankfully in Excel 2019, this feature is finally available. So you can personalize the default Pivot Table layout. Now I'll show you what I mean. We have a data source here and I'm just gonna create a Pivot Table. So I got to insert, Pivot Table and put it into a new worksheet and press okay. And I'm just gonna create a Pivot Table here, and it's going to create a default Pivot Table layout based on Excel's options. So let's put in our customer in here, and we'll put in our products. Now let's get our order date in the columns area. And now let's get the sales in the values area. So this is it, this is Excel's default Pivot Table layout which is in a compact form. And you can see that the sub-totals on the top here. Okay, so the sub-totals on the top and then the values at the bottom. And you can see the grand total is in the rows and in the columns here. But some people may not want this 'cause is confusing. Because normally when you're adding these up, this is what the value should be, should be at the bottom, the sub-total should be at the bottom. And in previous lessons I've showed you how you can do that. You can just go to the design and go to the report layout and you can change it all here in compact outline tabular, repeat all items, grand totals, there you go it's all there. And the sub-totals as well. You also got the blank rows. So this is how you can change it, but you can actually predetermine the layout. So each time you create a Pivot Table in the future, Excel knows the layout that you like and it'll always show you that layout. So let's get into it. To do this, you gotta go to file and then go to options. And under data, you've got this one here, you've got edit default layouts and make changes to the default layer of Pivot Tables. Click on that. The sub-totals, we want to at the bottom, we don't want them at the top. The default is show all sub-totals at top of group. It makes no a sense for me. I wanna put it at bottom of group. Grand totals on for rows and columns, yes, I like that. Let's keep that. Report layout showing compact form. I personally like this, but a lot of people wanna show it in a tabular format or in the outline format. Let's put an eight tabular form. Now you have many other things you can do. You can insert blank line after each item if you like, you can repeat all item labels and you can include filter items in totals. Now there are more options here. So I'm just gonna unclick that and go to Pivot Table options. And in here, layout and format, whatever you do here, it's gonna affect the layout. So if you have any error values, you can put in a zero or N/A. And for empty cells, you can put any number that you like. The same thing here. So totals and filters, display, printing, and data. And we go through this in the earlier lessons of this course. So any changes you make here, it's gonna affect this here. I'm just gonna leave it the same now. Okay. So I'm just gonna press okay. And these are the changes that were made. We made two changes. Show all sub-totals at the bottom of group, and also the report layout should be in tabular form. Now let's make a third one. Let's insert a blank line after each item, just to make it a little bit different, and press okay, and then press okay. Now it hasn't taken shape because you need to create a new Excel Pivot Table. So let's go in here again. Click on there, insert Pivot Table, new worksheet. Let's put the customer in there. The products as we had before, the order date in the columns, and now have a look at it. You see, it's taking shape, it's a different shape, isn't it? Let's put the sales in here. There you go. So as you can see here, it has made these changes. It's put in the sub-totals at the bottom of the group. It's made it into a tabular format as you can see here, you can compare to the earlier version, it's in compact, so everything is in one column. Tabular means it just expands that out into two columns. And then it has a values there. And we've also added a blank line after each item. So it looks much better. And each time you open your Pivot Table report or any Excel workbook, and you input data, and you create a Pivot Table, this layout, the default layout that you tell Excel is going to show all the time. So this is awesome, it's gonna save you a lot of time. (upbeat music) Another cool feature in Excel 2019 is the automatic relationship detection in your Excel tables and in your Excel Pivot Table. Now Excel knows when your analysis requires two or more tables to be linked together and it notifies you. Now with one click, it does all the work to build the relationships so you can take advantage of them straight away. Before you go any further into this tutorial, it is a must that you watch the video that I did in the new Excel 2013 features. It is for the data models. So I'll suggest you go and watch that video now. So you can have a look at how you can do this data relationship manually. So pause this, go back into chapter 15.5 data models, have a look at it and come back when you're finished. All right, so I hope that you got lots of value from that video tutorial. And it just goes to show you what data model is and the relationships and how to create them manually. There's a bit of work involved, but in Excel 2019, they've made this a lot easier. Now we have the same data source as the tutorial that you saw previously in 15.5 called Data Models. We have the sales here, as you can see. These all are transactions, about 50,000 transactions. And this is the many transactions that we have, and these are the one or the unique. So this is the one to many, and the product is one to many. So as I said before, under the customer table, we have the unique values to do a relationship. You can have unique values here. If you had two rows with the same number 1001 and 1001, it's not gonna work. So these values have to be unique. And this table here also has unique values for the product key. Now to do this auto relationship detection, we have to do the same thing. Go to insert Pivot Table and just click here, add this to the data model and press okay. And it automatically will add all the tables in this workbook in the data model. We know this because if you go to all here and we just hover over here, you can see the data source, the name, table, it's customer data. That's a good name there, and it's model table name. So that's in the data model. We click on there, and it's a model as well and that's a model. So it's created the tables into the data model. So now instead of going to relationships and new, we can press auto-detect, but this is not the best way to do it, 'cause if we do this now, it's not gonna know anything. So we'll need to put in some values in here first. In the sales data, let's put in the sales amount in here first and the product data, we said that the product key and the product key are connected. But we can put anything in here from the product data. It doesn't have to be product key, it could be product name, product costs. So we can put in any of these items in here. So let's put in our product name in the columns in there. And this message comes up. Relationships between tables maybe needed. Instead of creating, let's go to auto-detect. And it says one new relationship created, perfect. Let's go to manage relationships. And we're gonna see that the product key and the product key are going to be in that relationship. So click on that and go to edit. As you can see here in the foreign is product key and the primary is a product key. This is the one to many relationships, and these are the tables that got the relationships from. So it detected it, it's awesome. So you don't have to manually go and click this table like we did previously in Excel 2013 and then put in the relational column. So you didn't have to do that. It's just automatically does that for you here. So that's perfect. All of these press okay and close it. There it is there. Let's do the same thing for the customer data table. As we said in the previous video, customer number and customer number are related, and we can put in anything in here. We can put in the address, the city, the country. Let's put in the country, let's put it in the rows in there. Now another message that comes up, let's press auto-detect. It says one is created, manage relationships, Now let's go in there again and click edit and you see the customer number that is a related column. It's perfect, we like it. Press okay and close. And as you can see here, the data changes and it has automatically created relationships for us. We didn't have to go create it, it's a great new feature. You should go and give it a try and practice, and once you have data that is all related, you can create some awesome Pivot Table reports without using VLOOKUP or SUMIFs. Data model is great. It's gonna make your life easier and you create much more enhanced reports, which is gonna make you a data wiz. (upbeat music) In Excel 2016, Microsoft introduced the automatic grouping of dates. And that was an awesome feature where you can just drag your data field into the Pivot Table, and it automatically puts it into months, quarters and years. Now, you can see that tutorial in the Excel 2016 tutorial videos that I have for you. And in Excel 2019, they have gone one step further and they've included automatic grouping of time. In our data set here, we have the time of order as you can see here all the way there, and we can actually group this automatically. Let's give it a go. Let's go to insert, and Pivot Table and press okay. And we have here our Pivot Table, and we're gonna get our time of order and put it in our rows. Once we do that, you bring this on the left, the automatic grouping of the time. All right. So then you see there from 12:00 a.m. all the way down to 11:00 p.m., beautiful. And if you click on there, you can see that it is grouped into minutes as well. And you can see here that it automatically puts it into hours and minutes. It's created this hours group and also the minutes group. And you can also see it here. So it's automatically created new fields for us. And that is just awesome just with drag and drop ease. Now let's put in our sales in here and we can see that the sales values are grouped into the time that the order was made. So you can do a lot of analysis on there. You can have a look at what is your best time where most of the orders come in and go into that data and give it to your boss and you've got some great and awesome insights there just with drag and drop ease. Now, if you don't want this option to be automatic, you can switch it off. Go to file, options, and under data you've got here, disable automatic grouping of date or time columns and Pivot Tables. So if you click on that and press okay, the next time you drag a date or time field into your Pivot Table, it's not gonna automatically group. But I suggest having this checked off and it's just gonna make your Pivot Table slicker, and you're gonna be able to analyze your data much, much quicker. So there you go. Automatic time grouping in Excel 2019 and Office 365. So give it a go and see what you can come up with.
Info
Channel: MyExcelOnline.com
Views: 849,109
Rating: undefined out of 5
Keywords: pivot table excel, pivot tables, pivot table, pivottable, what is a pivot table, how to create a pivot table, how to use pivot tables, what is pivot table, how to make a pivot table, pivot table tutorial, how to use pivot table, create pivot table, what are pivot tables, how to do a pivot table, pivot table for dummies, how to make pivot table, creating a pivot table, Learn Pivot Tables in 6 Minutes, Excel Pivot Tables EXPLAINED in 10 Minutes, Microsoft excel (software)
Id: vA2NiYiGkgs
Channel Id: undefined
Length: 637min 58sec (38278 seconds)
Published: Fri Mar 13 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.