📱

Get Our Mobile App

Take your business learning on the go!

Download on the App StoreGet it on Google Play

Tableau Data Visualization Full Course Tutorial (11+ Hours)

Learnit Training11:14:12

Transcription

Welcome to Learn It Training. The exercise files for today's course are located in the video description below. Don't forget to like and subscribe.

Hello everyone. I am Trish Connor Cato. Welcome to the Tableau video training course. Tableau is a visual analytics platform that makes it easier for people to explore and manage data and faster to discover and share insights that can change businesses and the world. It helps people and organizations be more data-driven. Tableau supports data prep, analysis, governance, collaboration, and more.

As a continuation of the Tableau introduction video training course, this Advanced course is designed to boost the student's competence when it comes to creating visualizations and creating dashboards. The course goes into considerable detail on these two subjects and explores, among other areas, how to create a range of different charts, Maps, user-defined Fields, as well as a host of advanced features and abilities. We'll start by connecting to a variety of data sources. This will leave you with some great workbooks to practice on and develop on your own after this course. Then we'll move into creating a wide variety of charts, including univariate, looking to support our Channel and get a great deal. Become a member today to unlock ad-free videos. That's right, your favorite courses without a single ad. Interested in a specific video? Purchase one of our ad-free courses individually. Looking for even more? Gain access to exams, certificates, and exclusive content at learnitanytime.com. More information can be found in the video description below.

The first module will focus on connecting to data sources. Now, it has eight lessons in this module, and we'll start by connecting to text, Excel, and Access files. I have the files for you in the video description, and they're listed on this slide, so you're going to want to grab U.S. cities population, that is a text file; Airline comparison is an Excel file; and there is an Access database file called Northwind that you're going to want to grab as well. But wait, hold on, there's more that you're going to grab before we're done with this slide. In the second lesson, you're going to learn how to paste in a data source from the clipboard, and we'll be using two different Excel files for that. They're named vehicles and pricing. We're going to use those same two Excel files in lesson three when you learn how to merge multiple data sources. And in Lesson Four, we're going to connect to other databases. That's the title of the lesson. We're actually going to connect to a SharePoint list if you have access to SharePoint. If you want to, you can take a moment and go create a quick list on SharePoint that we will connect to later in this module. The other thing is, in order to connect to a SharePoint list, you're going to need a specific driver. There is a Word document in the video description called useful links, and it's a link to the driver that you will need. We'll move on to lesson five, where you'll get introduced to the Tableau interface. Lesson six, you'll learn about changing data types and metadata, and we're going to use a built-in Tableau file for that one, so you won't find it in the video description. In lesson seven, you'll learn about applying filters, and in lesson eight, you'll learn about dimensions and measures. And I should also mention that the slide deck is also in the video description for your future reference. Now, if you want to take a moment and pause the video and go grab the files that are noted on this slide, including the useful links Word document, go ahead and do so, and then resume.

Before we get hands-on in Tableau, I have a couple of other slides I'd like to review with you, and I will be referencing the slide deck throughout the course. So during this module, you're going to learn how to copy and paste data into Tableau, and you can do that easily from a variety of office applications, including Excel, Word. You can also copy and paste HTML tables from web pages, and tables that are copied as comma-separated values or tab-delimited can be pasted into Tableau. So there's two things that could happen when you paste data into Tableau. If you paste data on the data source view, Tableau will create a new connection and an existing data source, if any. If you paste data on the sheet view, Tableau will create a new data source that you can begin analyzing. So a connection versus a data source, and that data source would be saved as a text file to your Tableau repository when you save the Tableau workbook. So just keep that in mind. We're going to get to that in this module. I've added a slide here about the data sources that are supported in Tableau Desktop, and there's an active link on the slide where you can go in and look at the supported connectors on your own. You'll see them when we get into Tableau, but I just wanted you to have this slide for future reference. So go ahead and launch Tableau now, and we'll get started.

So I'm in Tableau Desktop, and the first thing we're going to do is we're going to connect with a text data source. So just a little bit about this home screen interface here in Tableau. Okay, you have your toolbar at the top, as usual. You have a couple of menu items there. We have the connect area on the left, the connect pane where you can look on Tableau server; you can connect to a file, to a different kind of server; there's even more. So I told you there's a lot of different data sources, also known as connectors, that you can connect to, and this is where you can find them by doing the arrow next to "two more." And then you have some save data sources that come with Tableau Desktop, and you'll see the sample Superstore one that we're going to connect with a little bit later. You also have accelerators, and their pre-built dashboards that you can play with, and on the right side you have a "more accelerators" link which you can get to if necessary. Um, if you have an existing Tableau workbook over on the right at the top, there's an "open a workbook" link that you can use to access that. So what we want to do in the connect pane under "to a file," we're going to select text file, and then you're going to navigate to wherever you put the files that you brought in from the video description. The text file is U.S. Cities population. At this point, I only have one text file in my folder, and I'm going to just double-click it to be able to connect with it in Tableau. We'll go into a deep dive on the Tableau interface in just a little bit in this module, but what I want to draw your attention to right now is this data grid on the bottom. You're actually seeing the data that is in that text file that we just connected to. So that's all the data in the text file right there. It's showing 100 rows at a time, as you'll see over here on the right, and it actually has like nine fields and 304 rows showing here on the left. Um, we're not going to do anything with this file. This is one of the files that you will have that you will be able to come back to and build up later after you learn a bunch of cool things in this Advanced course. So what we want to do is we just want to save this file. So there's this little bit of a toolbar here where you can click on save, or you could do Control+S, and if it doesn't take you there automatically, you want to navigate to your documents folder and look for a folder called My Tableau Repository. When you locate it, you're going to double-click it, and then you're going to double-click workbooks because this is a Tableau workbook, and we're just going to name this workbook U.S. Cities Population, and then save. We can go to the file tab there, the file menu, and choose close. And then what you want to do is, right under the word "file," right under the file menu, you have the house icon. You want to go back to the start page, which is your home page. When you're saving workbooks, they will show up here automatically for you. You can pin them there so they never disappear, or in our case, we're going to do the X to say don't show this workbook. The point of that one was how to connect to a text file. Now we're going to connect to a Microsoft Excel file. You've already grabbed this file from the video description, but when I went over that slide, I said we're going to use a file called Airline comparisons. I've changed my mind, and we're going to use the vehicles file that you brought in from the video description. So in your connect pane, go ahead and click on Microsoft Excel underneath "to a file," and then I'm going to double-click vehicles to connect to it. So you'll notice a couple of things here on the left side. It's showing you the connection, so it's the vehicles file that's a Microsoft Excel file, and then that file has a worksheet in it called inventory. So what you're seeing is the data that's on that inventory sheet. Now we will be using this file again in just a little bit, so we're going to save this one, but we'll reopen it in just a little while. So go ahead and do your save, and we're going to name it vehicles and pricing, and what, once it's saved, we can go to file and close, and I'm going to go back to my start screen by using the home icon. So I'm going to leave the vehicles and pricing tile here because we're going to reopen that Tableau workbook in just a little while. And the last type of file that we're going to connect to right now is the Microsoft Access database named Northwind. And before I do that, I'm going to just get this Airline comparison file off of my start screen, and under "to a file" in the connect pane, I'm going to select Microsoft Access. Now this one is a little bit different. When you go to open it, it doesn't just take you to where you want to go; you have to click the browse button at the top, and you'll see that Northwind database that was in the files from the video description, and I'm going to just double-click it. So we don't have a database password; that's not necessary. We don't have any workgroup security that we have to work through. At the bottom, we're going to go ahead and click on open. Thank you. You'll notice it was processing the request, and then it opens it up, and this is in data source view like we saw earlier, and again, you're going to learn more about this, but it made the connection. If you look at the top of the left pane, it lets you know the connection that you have here, and it's showing all the tables in the data in the database, as well as queries that are in the database as well. So what we're going to do is what we've been doing so far. Again, you're going to have these three files that you can play with on your own to build them up after you learn what you're going to learn in this course. So we're going to go ahead and save it, and we're going to call it Northwind, and go ahead and close it and go back to your start screen.

Now we're going to paste data into an existing workbook. I got rid of my Northwind tile here, and I'm going to use the vehicles and pricing tile to reopen that Tableau workbook. And when you open a workbook, it takes you to a different view. This is called sheet view. If you look at the bottom of your screen, you'll see that it's on the Sheet 1 tab there, and what we want to do is we want to switch over to the data source tab, which is to the left of Sheet 1. So go ahead and click on data source to get to that tab, and this is what you've been used to seeing. So what we're going to do here now is we're going to just switch over to the directory where you brought in the files from the video description and open the file named pricing in Excel. And now I'm going to just click anywhere in this data, and I'm going to do Control+A, Control+C to select and copy all the data, and then I'm going to switch back over to Tableau. If we were to use Control+V here to paste in data source view, let me show you what would happen. Let's go to the data menu, and you'll notice that in data source view you have two paste data options. The one with Control+V is what makes a connection. Now, technically, you could paste it in as a data source here, but the default behavior is pasting it as a connection here. And let's go back to Sheet 1 for a moment and look at the data menu, and you'll see that there's only one paste option, and when you're in sheet view, it will only paste it as a data source, not a connection. You don't have an option here. So Control+V here means paste it as another data source. Let's go back to data source view, and I'm going to just do Control+V here, and you'll notice on the left that I have a new connection; it's called clipboard, and it has a string of numbers after it. The first numbers before it gets to a letter represent the date that you copied it to your clipboard, and so that's one way of getting more data in. If you had it, if it was an HTML table from a website, it would come in as another connection along with the connection that you have existing. Let's do the drop-down arrow next to that clipboard item and choose remove. So we added it as a connection; we removed the connection. Now let's go back to Sheet 1, and in Sheet 1 we're going to do Control+V. So it's still on the clipboard for us, and if you look on the left side, we're on the data pane there; we have a clipboard entry, the same name, but it puts it in here as a new data source instead of a new connection to an existing data source, and you could tell the data source because it has the database icon in front of it. So if you paste it into, using the default Control+V, if you paste it in sheet view, it's going to become a new data source. If you paste it in data source view, it will create a new connection. So what we're going to do here now is we're going to close this file, but we're not going to save the changes because we're going to marry these two files in a different way in our next lesson. So let's go ahead and go to file, close, and then say no, you don't want to save the changes.

Before we move on to merging multiple data sources in Tableau, there's some slides I want to go over with you, but before I forget, switch back over to the Excel pricing file and close it. The first slide I want to go over with you is doing a deeper dive into data source view. So we've seen this view several times when we have been connecting to our data sources so far, but what I want to just do a deeper dive in just so you get familiar with what things are called and so on and so forth as you work in Tableau. On the left side of the screen where you have the letter A, that is known as your left pane; it displays details about your data. So it's letting you know what connection is there, what sheets are there, so on and so forth. And then in the upper center where it says Sample Superstore in big letters there, that is known as the relationships canvas, and you'll see that there is a relationship between the orders and the returns table and that sample Superstore file, and the line between those two table panes is known as a noodle. Underneath that layer, okay, the relationship canvas, there's another canvas called the joins canvas, or joins unions canvas, and that's indicated by the letter C on this slide. So right here, this is your joins canvas; it's not visible when you first go in; you have to do something to make it show up, and you'll see what that's used for in just a little while. On the bottom of the screen in the background, you have your data grid, that's when we, where we've been looking at the data that we've been connecting to, and to its left is another grid called the metadata grid. Here's some useful information for you in terms of the data types that are supported in Tableau, and you can change the data types of your data that you're connected to in Tableau, which you'll see in this module. So I said that when you're in data source view, the default view is the relationships canvas; that's also known as The Logical layer, and you use that layer to combine data using relationships. When we looked at that returns table, that was kind of like a pop-out on the slide; that's the other layer that you can get to. So there's a physical layer underneath the logical layer, and you use the physical layer to combine data between tables using joins and unions. Each logical table contains at least one physical table, and it's also known as the join union canvas. So this one talks about the difference between relationships, joins, unions, and blends. Relationships do not merge the data but keeps it separate, and it's based on a common field. Joins are also based on a common field, but they actually merge the data from the same source. Joins will combine the data, and then we'll aggregate it. Unions also merge table data, but unions append the related fields as rows in the merged data set. And then you have blends, and that's an approach to combine data from multiple varieties of sources and display them on a single screen. Blending will aggregate the data, and then will display the combined data. Now, because we're talking about relationships in this module, there are two relationship terms at the bottom of the slide: cardinality and referential integrity. Don't worry about them for now; you'll get to see what they mean as we work with relationships in just a little bit. There's another slide here for your future reference with the cardinality and referential integrity options available in Tableau, and I've included a few slides indicating the join types that are available to you.

So back in Tableau, I am going to reopen our vehicles and pricing workbook, and I'm going to make my way to the data source tab. So at the top of the data tab on the left, next to connections, I'm going to go ahead and click add, and I'm going to choose Microsoft Excel and navigate to where you have your files and open the pricing file. So now I have two connections in here; I have vehicles and I have pricing, and vehicles has the inventory sheet, and if you look under sheets here, you'll see there's a pricing sheet which is from the pricing file. So what we're going to do is we're going to drag that sheet right onto this relationships canvas, and so it creates a relationship based on a common field, or it's going to create a relationship based on a common field. Now, both of these files have a VIN column in it, and so if you look at your data grid at the bottom, it's showing you the VIN column from the pricing file, and that file also has dealer cost and manufacturer suggested retail price. If you hover your mouse over the noodle joining those two tables, inventory and pricing, you'll see that the relationship is inventory to pricing; the cardinality is many to many, so many inventory items are defaulting to many prices, and then you have your related fields there. So VIN from the inventory table equals VIN from the pricing table, and if you look down here in your data grid to the left, there's a "learn more" link. How to relationships differ from joins where relationships is not combining or merging the data; it's just relating it, and you see that it's using the VIN number from inventory equals the VIN number from pricing, and so it created that relationship. Now Tableau is really good about that as long as you have a matching field with the same name. Now the fields don't have to have the same name; if they don't, Tableau probably will not be able to create the relationship for you automatically like it did here. So right now we're looking at the relationship canvas, and this is also known as The Logical layer. To get to the physical layer, we're going to double-click on that inventory table on the canvas. So when I double-click it, it goes to the physical layer, where is where you, which is where you create your joins and unions; it's also known as the join union canvas. It lets you know that inventory is made of one table. So remember from the slide, even if you're only using one table, it will show in both the logical and the physical layer. Now we want to create a join between the inventory and the pricing tables, so what

We're going to do here is we're going to grab the pricing sheet and drag it and drop it into the canvas. And it automatically creates a join between the two tables. So it's saying, if I hover over the join symbol, it's an inner join of inventory. Notice it appended the pricing table with the number one. All right, and it's based on the "then" field in both tables. So an inner join; in the inner join, only the common matching data between the two tables is displayed, and that's what we're going to have here.

Now, if I wanted to change the join type, I can just click right on that join symbol, and you'll see the other join types that are there. We're not changing it, but I just wanted to let you know that you could, if you wanted to. And I'm going to close that Join Type window.

And now, if I look at the bottom, it's merged the data, right? So you'll notice in your data grid down here, it's letting you know underneath the data type symbol; it lets you know which table it's pulling from. So they're your inventory tables, the first—the inventory tables are the first set of fields—and now you have your pricing tables as your second set of fields. And since we don't want the "then" showing twice, I'm going to hide the "then" column from the pricing table. And I'm going to just right-click on the column header and choose hide. So there's our merged data set.

Now, if we want to go back to the logical layer at this point, we can do the X in the upper right-hand corner of that physical layer, and it brings you back to the Logical layer. And again, in your data grid, you can see your combined merged data set. Also, if you notice up here in the canvas, it lets you know—if you hover over inventory—it lets you know its logical table and its physical tables, and it also gives the symbol for the join there, so you know that those tables are joined.

So the automatic relationship that happened is because the different tables have a common field; it was able to automatically create the relationship for you, but that did not merge the data together; that just related those tables to each other. We use the join from the physical layer in order to be able to merge the data together, and then we got rid of the redundant "then" column that we didn't need in our merge data set. Go ahead and save this file, and you can go ahead and close it.

So now we're ready to connect to a SharePoint list. So I'm going to go back to my home—start my home icon—to get back to my start screen. And I'm going to go ahead and get rid of my vehicles and pricing tile here. And this time, where it says "Connect" on the connect pane on the left, we're going to go to the "More" arrow. So we saw this a little bit earlier; these are all the connectors or the data sources that you can connect to. And on that list in the middle toward the bottom, you will find SharePoint list, and that's what I'm going to select.

So this is the one that you will need a driver for. Now, if you don't have the driver, it will let you know as you go through this process. So you have to give it the URL to your SharePoint site and the addition of SharePoint, and then you're going to—I'm using a username and password for Authentication—and I'm going to go ahead and put in my password and then click sign in. Um, you have the word document from the video description that gives you a link to the driver, but in the pop-up that comes up, if you don't have it, it will also have a link to that driver. So I'm going to go ahead and put my password in, and then I've clicked sign in. So it's executing the query. So now, on the left side in the data pane, it's showing all of my SharePoint list, Library stuff like that. So I have one here that I called "Tableau training," and I'm going to just drag that onto the canvas.

So when I look at the data pane, it's bringing me every field, even the ones that are not showing in my SharePoint list—every field possible in that list. So there are only two of them that I'm interested in. The best way to see this is to go to Sheet1, and the only two fields that I'm interested in are the "Region Title" field, and then I have "Total Sales 2021." Those are the only two fields I'm interested in. So what I'm going to do is I'm going to drag "Region Title" to the Rows shelf up top, and then I'm going to drag my "Total Sales 2021" to Columns, and now I actually have a visualization showing by region the total sales for 2021. And we'll be doing more on the sheet tab and getting an overview of it in just a little while. So what I'm going to just do is I'm going to double-click the Sheet1 tab, and I'm going to name it "2021 Sales by Region" and press Enter. And it also gives me a title on my sheet with the same name. Now I can do those independent of each other, but by default, when you name the sheet, it's going to apply whatever you name the sheet to the title. So now what I'm ready to do is just go and save this one—this workbook—and I'm going to call it, um, "2021 Sales by Region," and I'll do a dash "SharePoint," so I know where it originated. And I'm going to go ahead and save it and close it.

So we're going to be working in a built-in Tableau file for the rest of this module and into subsequent modules, and we're going to be spending a lot more time in sheet view, which you just saw briefly when I created that visualization from my SharePoint list. So before we get into that, let's go over some definitions and roles that will be useful for you as we proceed in this course.

So the first thing is a pill. When we dragged—when I dragged from the data pane on the left and sheet view the fields into the rows and column shelves—those are called pills. The fields that we drag; they're known as pills. You can call them anything that you want to. We basically have two different types of fields in Tableau: dimensions and measures. So a dimension is a field that can be considered as an independent variable. So any field containing qualitative, categorical information as is a dimension in Tableau. So, for example, a region field or a state field. Dimensions can categorize, segment, and reveal the details in your data. And then you have measures, which is a dependent variable; its value is a function of one or more dimensions. So Tableau treats any field containing numeric or quantitative information as a measure; for example, sales. When you drag a measure into the view, Tableau applies an aggregation to that measure by default, and it typically defaults to the sum aggregate.

And then you have roles for your fields in Tableau; they're either continuous or discrete; they're color-coded, which will help. So continuous fields are green, and it forms an unbroken whole without interruption—without interruption. Generally, continuous fields add axes to the view; for example, sales. And both dimensions and measures can be continuous. And then you have discrete fields, and that means individually separate and distinct; they're represented as blue in Tableau. And generally speaking, discrete fields add headers to the view. So you might have a heading for region in your view. Both dimensions and measures can be discrete.

So here's our breakdown of sheet view in Tableau, and we're just going to point out a few things in this view. So starting at the top, of course, you have your workbook name—um, so where it says "Pages," "Filters," "Marks"—so this panel here—I'll draw an arrow to it, or attempt to—so this panel here, as well as "Columns" and "Rows" up top, those are either called cards or shelves. Technically speaking, "Columns," "Rows," "Pages," I believe, and "Filters" are known as shelves, and then the Marks card is known as a card. The terms are used interchangeably; again, doesn't matter what you call them as long as you know how to use them. We also have a little bit of a toolbar right underneath your menu bar here, so where you have your icons—um, showing running underneath your menu bar—that is your toolbar. In the middle of the screen, which would normally be called the canvas area, right, that is actually known as a view here. You can call it the canvas; it's where you create your visualization by using the cards and shelves. You have an icon on your toolbar; the first icon on your toolbar will take you to your start page. Here on the left side, underneath that, you have your data pane; it has two tabs; it has the Data tab and it has the Analytics tab up top, and you'll become familiar with both of those as we go through this course. At the bottom—well, you already know how to get back to data source view by using the data source tab there—and underneath all of that, you have a status bar. So in this screenshot, it's showing there's 192 marks in the visualization; each different point is known as a mark; three rows by 16 columns, and it's giving you the sum of profit there in the status bar as well. And then you have your sheet tab. So this screenshot shows Sheet1. To the right of Sheet1, you have three buttons: the first one is to add a new worksheet—another sheet—and it would name it Sheet2 by default; the second one is to create a dashboard sheet, and the third one is to create a story sheet. And there are other ways of getting those new sheets into your file as well. The Marks card is critical for how your visualizations are going to look.

So here's an example here. Tableau displays data by using marks, where every marker corresponds to a row or group of rows in your data source. So on the Marks card at the top, you can change the shape of the marks on your visualization; it defaults to automatic depending on the data that you have, but you do have the ability to change the shape from that drop-down. In this particular screenshot here, they're using a field called "Segment," and that's a color range on the visualization; the "Region" has the shape on the visualization; and the size of the marks on the visualization are represented by the sum of the quantity; that's what it's showing in this example. I have a more detailed table here of the settings for the Marks card for your future reference.

So we're going to get into changing data types and metadata now, and we're going to use a Tableau built-in data set for this. The first thing I'm going to do is get rid of my "2021 Sales by Region SharePoint" tile. And by the way, if your tile is not there, again, on the right side, you can open an existing workbook from the link on the right. What we're going to do on the Connect tab on the left, under "Save Data Sources," you'll see "Sample Superstore"; it's built in to Tableau. So I'm going to just click on that, and it opens up in sheet view. I'm going to go back to Data Source View. So it opens with the relationships; there's a relationship between the "Orders" table and the "People" table, and a relationship between "Orders" and the "Returns" table based on a common field. And again, I can hover over those relationship noodles to see what type of relationship it is and the related field. So that's one thing. Now, this data comes in, and if I look at my data grid at the bottom, you'll see that I'm seeing the data for the "Orders" table; there's some additional fields on the right and stuff like that, and so that's in the data grid. And then to the left of that, this is your metadata grid here.

So let's start by doing a couple of things here in the metadata grid. It shows you the data type, and it's, you know, some kind of symbol. ABC means it's text; you have a calendar-looking icon, that means it's a date; um, you have one that looks like a globe, right, and that means that it's data that can be used in maps; so on and so forth. You have one that's numeric data; you have a group, which is represented by a paper clip; and you have a bin, which is represented by a series of vertical lines. So those are the data types over there. It lets you know the field name; has a drop-down next to that, so you might want to review some of those things on the drop-down; and it lets you know the physical table that it's pulling from, and it also has a remote field name column as well. Now, in your metadata grid, scroll down until you can see the "Postal Code" field, and you'll notice that that has the globe as a data type. So it's a—it can be used on the map; it has a geographic role assigned to it. If you click on that globe to the left of "Postal Code," you notice the field is actually a string; right, it doesn't have the ABC there because it's been assigned a geographic role. If you hover over "Geographic Role," it's been mapped to "Zip Code/Postcode," so it can be used on a map, right? But you know, sometimes when you bring data in, if your postal code—your postal codes could be read as numeric. Now, we never want our postal codes numeric unless we want to do some kind of math on them. I don't think the sum of postal codes or average postal code will make any sense, so you want to make sure your postal code always comes in as a string; just wanted to point that out.

Let's scroll up in our metadata grid and click on the little calendar icon to the left of the "Order Date" field. So it comes in as a date. Now, Tableau is pretty good about this; if the original data was in the form of a date and time, it would bring it in as date and time, but it's bringing it in as a date. Now, let's say you decide one day you want to change it to date and time; I'm going to show you what happens and why you would not want to do that. If the original data doesn't have a time, it's unable to give you a time. So let's just click on "Date and Time" from that drop-down, and notice the calendar icon now has a little clock on it in front of "Order Date," but if you expand the "Order Date" field in the grid, all of the times are going to be 12 a.m. because there's not a time in the original data. So go back to your "Order Date" data type and change it back to date. Unless your original data has times in it, don't try to use date and time, or you'll just get 12 a.m. for everything, unless you have a need to do that.

Another thing we can do from our data grid is we can split a column. So if you look at the "Customer Name" column, it has the first and last name in there, and we want to split it so we have a "Customer First" and a "Customer Last" column. So the way we're going to do that: in your metadata grid, go to the drop-down next to "Customer Name," and you're going to choose "Split." And if you scroll all the way to the right in your data grid, you'll see that it created—so when you do a split, it will put the new columns all the way on the right side—so you have a "Customer Name Split 1" and a "Customer Name Split 2." It was able to do it kind of like automatically. So what we're going to do here is we're going to rename those columns. So I'm going to right-click where it says "Customer Name Split 1," and I'm going to rename it, and I'm going to call it "Customer First" and press Enter. And go ahead and rename "Customer Name Split 2" to "Customer Last," and once they're both renamed, I'm going to go back to the left so I can see their original "Customer Name" column. I can right-click on its header, and I can hide it, so it won't show in our data set. And by the way, it's good to know how to unhide things if you accidentally hide things. All the way to the right, right above your data grid, you will see a gear symbol, and if you click that gear, you'll see that you can show hidden fields. We're not going to show the hidden fields.

And the last change we're going to make to the data here is we want to rename a field. So the "Segment" field, we want it to say "Market Segment." So I'm going to just right-click on its header and choose "Rename" and put the word "Market" at the front of it and press Enter. So that's the way the field will show up when we start visually—when we start doing visualization.

So there's one area of Data Source View that I didn't talk about so far, and it's in the upper right-hand side of Data Source View, and that's this "Connections and Filters" area. So by default, I would say most of the time when you connect to a data source, it will be a live connection, meaning that if you're working with a live connection and you're creating visualizations and that original source is being updated, you will get the new modified information automatically, and your visualizations will update automatically. Now, when we did the join—excuse me—not when we did the join, when we connected to the SharePoint list, and I didn't point it out when that was open, but when we connect it to the SharePoint list, it connected as an extract. And if you go up and you do the option button in front of "Extract," you'll see that automatically it says "Extract will include all data," right, unless you filter it. And what happens when you're working with an extract—like the SharePoint list was an extract—so when we connect it to it, it gave us the list at that time. If that list is being updated, then we would have to refresh to get the changes for that list, and we'll revisit the connection type a little bit later in the course. So change it back to live. You can filter a live connection; you can filter an extract as well. So when it's on live and you use the filter area, it is going to be filtering your data; it's not actually filtering the source data, but it's filtering your view of the data for use in Tableau. Because you're filtering in here and you're on the data source tab, the information on all of your sheets will be filtered by whatever filter you do here. So we're going to go ahead and apply a filter here. Let's go over to the "Add" link under "Filters," and then we're going to click "Add," and we're going to use the "State/Province" field, and then click "OK." So now we're just going to filter for five states. We're going to go ahead and do a check mark in front of Arizona; we want to grab California; we're going to scroll down and grab New Mexico; and we'll do Oregon and Washington States. So down at the bottom, it lets you know that you have selected five of 59 values, and we're going to click "OK." You'll have more opportunities of filtering throughout the course, not necessarily at the data source level, but at the visualization level. And we're going to click "OK." So now it's only showing those five states. We can look at our data grid and see that it's only showing those five states. And now let's go to Sheet1, and we'll build a quick visualization so you can see that it's only going to show the states that we filtered for. So on the left side, on the data pane, you'll see we have our "Customer First" and "Customer Last" fields that we split; we have "Segment" renamed to "Market Segment" showing there, right; we have the original "Customer Name" field not showing because we hid it; and so—and you'll notice the blue and the green coding, right? So we're going to expand—you notice we have—um—expansion arrow in front of "Location" and in front of "Product"—we're going to expand "Location," and we're going to drag "State/Province" to "Rows"—to the Rows shelf, excuse me. So you can see it's only bringing in those five states that we filtered for because we filtered at the data source level. And then what else are we going to do for this visualization? We're going to add the "Orders Count" measure. So it has a measure in this data set called "Orders Count," and we're going to drag that up to Columns. So for each state, we're seeing an account of the orders; easy breezy. Let's go back to Data Source View, and in the upper right-hand corner, it now says we have one filter applied there, and there's an "Edit" button. We're going to click on "Edit"; we're going to select our filter in the list here—"State/Province" filter—and we're going to remove

The filter. Click OK. Go back to Sheet1 and notice that you're seeing all of the states now. So when you apply a filter at the data source level, it's going to apply to every sheet that you have in your Tableau workbook, and that's not really practicable most of the time. So I'm going to show you how to do the same filter, but at the sheet level. So what I'm going to do is I want to—we want to filter by State/Province here. So I'm going to click—I'm going to hold down my control key, click and hold on State/Province in the Rows shelf. Oops, I clicked a little bit too hard—and drag it to the Filter shelf, right above your Marks card, and let it go.

So now from here, we're going to select None, and then we're going to select our five states. So that would be Arizona, California, New Mexico, Oregon, and Washington. And then we're going to click Apply at the bottom, and you can see that the visualization is now filtered again for just those five states, but at the sheet level or the visual level filter. We can click OK.

So let's do—to the right of your Sheet1 tab, do a plus sign, and I just want to show you this. And we're going to drag Orders Count to Columns again, and we're going to drag State/Province to Rows again. So on this sheet, we're getting all of the states because we haven't applied a filter on this sheet, and we're not going to keep this sheet. We're going to right-click on your Sheet2 tab and choose Delete. And then we're going to double-click Sheet1's tab, and we're going to name it [Music] um, W and SW Order Count by Customer. And now would be a good time to go ahead and save this file. So I'm going to go to Save, and I'm going to call it Sample Superstore Live, so we know it's a live version. Later on, we're going to use this file and make an extract out of it. Go ahead and save it.

So let's take a look at that field list on the left again, and you notice the green and the blue coloration there, right? So typically, your numeric fields will show with the green symbols, and non-numeric fields will show with the blue symbols, for the most part, in your field list. But blue and green also represent—when you're looking at it in the Rows and Columns shelf—it also represents whether the field is continuous or if it's discrete. So continuous is green; blue is discrete. Remember, both measures and dimensions can be either continuous or discrete. So let's see what that means and what it looks like um, in your Column shelf. Go to the drop-down next to Count of Orders, and notice it's in—it automatically is continuous, and we're going to choose Discrete. So now the Count of Orders become like headings, right? Notice that there's no longer an axis—an x-axis going across the bottom—and that just doesn't kind of make sense for what we're trying to ascertain from this data. So we're going to go to the drop-down arrow next to Count of Orders and change it back to Continuous, and now you get your x-axis back, which is a measurement of the Count of Orders. Now we could do the same thing with um—well, not continuous and discrete here; it's not going to let us do that for State/Province. It's a different reason for that, and I don't want to go into that rabbit hole right now. So now you're seeing the definitions from the slide come to life and seeing the differences of them. Let's just do another save on this Sample Superstore Live file, and we're going to leave it open because we're going to use it in the next module.

By way of recap, in Module 1, we focused mostly on connecting to different data sources. So we started by connecting to a text file; we used a different Excel file—an Airline Comparison one on the slide—we used Vehicles, and we connected to the Northwind Access database. So you have those Tableau workbooks saved, which means you can go into them, play around with the data, make changes to the data, and create visualizations for more practice for yourself. In the second lesson, we learned how to paste from a clipboard. So we had connected to the Vehicles file, and we pasted the contents of the Pricing file, and and you saw the different behaviors of pasting depending on where you paste, whether it's Data Source view or Sheet view. Then we learned how to merge multiple data sources. We actually used the Vehicles file, and this time we created a join with the Pricing file, so you had a merged data source that you could use. After that, we connected to a SharePoint list, which required a driver if you didn't already have it installed. And along the way, you got introduced to the Tableau interface. So we started with Data Source View, and ultimately you got an overview of Sheet view as well. In Data Source View, you learned how to change data types and metadata once we connect it to the Tableau Sample Superstore data source. You also learned how to apply filters both at the data source and the sheet level, and we ended up with an exclamation, which you could actually see in the file, of dimensions and measures, and you also learned about discrete versus continuous. Module 2 will be focusing on creating univariate charts. So we have multiple lessons in here. We're going to start by creating tables, bar graphs, pie charts. You'll learn how to sort your charts and graphs. We're going to create histograms and line charts. You're going to learn how to use the Show Me toolbar. We're going to create stacked bar graphs and box plots. You're going to learn how to show aggregate measures and also how to show the top 10 items.

So what in the world is a univariate chart? Well, it means looking at one variable at a time, trying to understand its mean, median, variance, distribution, etc. And then I have a list of the common types of univariate charts, as well as another slide that gives you an idea of when to use each type of chart. So that's in here as your future reference slide. Let's go back over to Tableau and get started.

So in Tableau, let's go ahead and bring up a new sheet. We can use the plus sign icon to the right of our West and Southwest Order Count by Customer sheet. That's one way of getting that new sheet, and even though we used Sheet2 before we deleted it, so it's going to repeat that name here, Sheet2, by default. So we're going to start by creating a table, and we're going to drag our Market Segment field to the Columns shelf, and notice it gives us the framework of a table. You'll see a little bit later in this module why it does that, and in the meantime, we're going to grab the Sales field, and this time we're going to use our Marks card. We're going to drag Sales and drop it on the text box in the Marks card. So now you're seeing the text in the table are the sales for each market segment. Now let's see what would happen. So we have a table here, right? Really simple table. Let's drag Text from the Marks card. Now notice at the bottom of the Marks card it has that Text icon in front of some of Sales, so you know that that field is occupying the Text in the table. We're going to drag that Sum of Sales from the Marks card and let's put it in the Rows box. And so when you—once you put it in Rows, it's going to generate a column chart for you. So let's drag it back from Rows to—now it says Label for where Text used to be, right? So now it puts it back as Text. Really simple to do, right? And so what we want to do though is we want to change the average aggregate; we want the average sales by market segment. So in your Marks card, you can right-click on Sum of Sales, and you're going to hover over Measure Sum, and you're going to select Average. So now it's showing the average sales by market segment, and we can go ahead and make those columns wider. If you see where I am—I'm in between the Consumer and the Corporate column—and I'm going to just drag to the right a little bit, and it will adjust all columns. So a very simple table. Congratulations! And now we're going to name this sheet by double-clicking it: Average Sales by Market Segment. Well done! Now let's go ahead and say—if we want to save frequently while we're working in this file—we're going to be working in the Sample Superstore file a lot. So now I'm going to have you create another table on your own. You're going to create a new sheet, and you're going to create a table that's going to show the sum of sales by—and if you expand your Product field, you'll see the Category field—so we want to see the sum of sales by Category on a new sheet. Go ahead and do that on your own. So just so you can see my work on that one up, let me switch to the right tab, and then you'll be able to see my work. This time I put Category in Rows, and I use Sales as Text, and it defaults to Sum, so I have my table of the Sum of Sales by Category, and I named the sheet tab, which thereby named the title on the page as well. Go ahead and save.

So now we're going to create a bar graph, and we're going to do that by adding another new sheet. Another way that you can get a new sheet because the first—again, the first plus sign is New Worksheet; the second one is New Dashboard; the third one is New Story down there—but you can go to the Worksheet menu and choose New Worksheet, and also learn the shortcut key, Control+M. So multiple ways of doing the same thing. And so for this sheet, what we're going to do is we're going to drag our Sales field to Columns, and we're going to drag Category, which is under Product, to Rows, right? So we did this in table format a moment ago, but this time we put both Sales and Category on the Columns and Rows shelves. So we didn't use the Text or Label field in the Marks card for this one, which would make it into a table. And so what we're going to do is we're going to click on Label in the Marks card, even though we didn't drag a field there, and we're going to do the check box in front of Show Mark Labels. So now at the end of each bar, we have the Sum of Sales number, and if you hover over any bar, it'll show you the tool tip—the Category and the Sales amount. And we decide we want to add another field to this visualization. So under Product, I'm going to grab Sub-Category and drag that to Rows, to the right of Category. So now—and I'm going to actually just widen this area here between the two, so I get a little bit more space—well, that was a bit too much, but anyway—so I have my Category, my Sub-Category, and then for each Sub-Category, you're seeing the Sales. And again, you can hover over each bar to see the tool tip. So now you see Category, Sub-Category, and the Sales values. And let's say we don't want the default blue bars; we want orange bars. So I'm going to go to the Color on the Marks card, and I'm going to choose Orange, and now all of our bars are orange. Go ahead and name this sheet Sales by Category and Sub-Category. And now on your own, go back to the West and Southwest Order Count by Customer sheet, and change those bars to orange as well. And I should say, if orange is not your color, pick the color of your choice. But what we're starting to do here is get some consistency and coloration, which will ultimately lead for better dashboards at the end of the day. So I'm going to stick with my orange color as much as possible, but you can pick the color of your choice. Go ahead and save your file. I'm going to go back to my Sales by Category and Sub-Category sheet, and then I'm going to bring in a new worksheet. And for this one, we're going to create a pie chart. So we're gonna drag Market Segment to Columns and Sales to Rows. So it's going to give us a column chart, right? A column graph. And we want to change that to a pie chart. So what we're going to do is over on your upper right-hand corner, you will see the words Show Me, and you're going to click on Show Me, and it opens up a panel. And so the Show Me panel—it will only allow you to select the appropriate type of visualization based on the data that you've dragged into your view. So some of these things are dimmed out because they don't meet the criteria for those types of visualizations. For example, if you hover over—right underneath your table—there's one; it's called a Symbol Map. It's not available to you, and it says you need to have one Geographic Dimension at the bottom, one zero or more dimensions, and zero to two measures in order to be able to do a Symbol Map. But you'll notice that the pie chart is available for us. If we hover over that, it says that you just need one or more dimensions and one or two measures at the bottom. So we meet that criteria. So we're going to go ahead and click on the pie chart, and now we have a little teeny tiny pie chart, right? Okay. So first things first, let's make it not so teeny tiny. If you look at your toolbar, there's a section where it says Standard. You're going to do the drop-down arrow there and choose Entire View. So it kind of centers it into view, and it enlarges it. In the meantime, I'm going to click on Show Me again just to collapse that panel, and you'll see quite a few things happened when we changed it into a pie chart. First of all, there's nothing in Columns and Rows shelves anymore, but look at your Marks card. So it took Market Segment and it made that the color, so that's why each one is a different color, and notice you have the color legend on the right side of your screen whenever it does that; it gives you the appropriate legend there, right? And then it took Sum of Sales, and it puts Sum of Sales—well, first I'll start with the bottom line—it put it in the Size area, right? So each slice of the pie is sized based on its Sum of Sales, and it also did something else with Sum of Sales; it put it on the Angle on the Marks card. So you can see these corresponding icons here, right? One is for Size; the first one is for Angle; the second one is for Size on the Marks card. So—and because we have Sum of Sales as the Size, it gives you another legend over here just showing you the range—you know, you have up to over 2 million for Sales—and so if we hover over any slice of the pie, you'll see the Market Segment, and you'll see the amount of Sales for that Market Segment. On the Marks card, we're going to go ahead and click on Label and Show Mark Labels, so we can see them outside of every slice of pie. And you can go to Size on the Marks card if you want to increase or decrease the size of the slices. We're going to go ahead and name this sheet, and this is going to be Sales by Market Segment. So we have an Average Sales by Market Segment, and we'll just call it Sales by Market Segment for the sheet and the title. And actually, just to be a little bit more clear here, I'm going to make it say Total Sales by Market Segment, and then I'm going to go back and rename the one that's called Sum of Sales by Category, and I'm going to rename that to Total Sales by Category, just to be a little bit more specific and consistent. And go ahead and save your Sample Superstore Live workbook.

So let's go back to our Sales by Category and Sub-Category sheet, and we're going to sort this visualization. If you go to the Sub-Category heading, you'll see a little A to Z button that you can use to sort. But what I'd like us to do is go to the drop-down arrow to the right of your Sub-Category heading on your visualization, and you can see you can sort it in Data Source order, Alphabetic order; you can sort it by a field or nested. We're going to hover over Field and choose Sum of Sales. So now you'll see that it's sorted by Sum of Sales in descending order that way, and we can hover over it again, and if you see the lines with the drop-down arrow, it lets you know that it's sorted descending by Sum of Sales across all the values of the Sub-Category. So not too difficult to sort in a Tableau visualization. Now if we want to reverse the order to ascending by Sales, we can just click on those lines, and now it's sorted in ascending order by Sales. Now I'm going to have you go to the West and Southwest Order Count by Customer sheet—oops, didn't mean to do that—and I'm going to have you sort this by the Count of Orders. Actually, ignore me for that one. Go to Total Sales by Category sheet instead and sort in descending order by Category, so it'll look like my screen when it's done. To the right of Category, you'll see the Z A for a descending order. Go ahead and save.

Let's go back to our Total Sales by Market Segment sheet with our pie chart and bring up a new sheet so we can create a histogram. A histogram shows how data is clustered, and it can compare categories. So for this one, we're going to just drag the Quantity measure to Columns, and we're going to go to our Show Me pane, and we'll see the histogram is available for us on here. It's the one that looks like an up and down column chart—um, actually, I can do this; I'll point to it for you—so the green one with all the columns is the histogram. So that is available for you by just dragging one measure onto your view. And so if you hover over Histogram at the bottom, it tells you you just need one measure, right? So it creates these bins for you that will allow you to be able to see how your data is clustered. So let's finish building this one up. So I'm going to go ahead and select Histogram, right? And a couple of things happened. If you look up at your Columns and Rows shelf, we have a Quantity bin and now a Count of Quantity. So if you look at your x-axis on the bottom, it's the bins, right? So the first bin is that first column, right? And it goes from zero to—it looks like—1.99, and then the second bin is in the next column, so on and so forth. So if I hover over the third column, there are four items in that bin, right? It's letting you know how many items are in that bin. There are four items in that bin; there are two items in the bin previous to it; none in the first bin; the fourth one has five items; fifth one has seven, and the sixth one has nine items. So your bins—really, when it comes to a histogram—those are the clusters of your data. Now because we're using a histogram and it creates bins, you'll notice in your field list on the left you have a Quantity bin, and we can change the bin size. So right-click on the Quantity bin in your field list, and you're going to choose Edit off of the list that pops up. So it defaults—right—it gives you a bin size of 1.77. We don't want that. We're going to select that and make the bin size 2 and click OK. So it adjusts a little bit; you saw the adjustment; it flickered just a little bit—and now you're seeing we have these other bins over here that barely show on the axis. For more analysis, let's go ahead and drag Market Segment field to the Color on the Marks card. So now we can see the quantities based on Market Segment, right? So in the first column, if you look at the red, right, that's the Home Office Market Segment; orange is Corporate; blue is Consumer. If I collapse Show Me, I'll have that legend over on the right that's showing that. So I have—for the Consumer—one; for the second one, you can see the blue column there—Consumer segment has 2581 as a count of quantity, two of which are in that bin. It's kind of how that's working. And we want to copy that Count of Quantity; we want to copy that to Label on the Marks card.

So, I'm going to hold down my control key, click and hold on the "Count of Quantity" in Rows, and drag it over to Label on the Marks card. So now we're seeing that count of quantity on the histogram columns. We'll name the sheet "Market Segment Histogram" and save your file.

So I've already created a new sheet so that we can create a line chart here; that's our next task. And what we're going to do is we're going to drag the Order Date field to Columns, and we're going to drag both Sales and Profit to Rows. So we now have two separate line charts, and we would like it to be not separate. So we're going to use Show Me, and we're going to select the Dual Line Chart. So this one is for Lines Continuous, this one is Lines Discrete, and this one is Dual Lines. Notice the requirements: it just needs one date on the bottom, zero or more dimensions, and two measures. So we have one date and two measures. I'm going to click "Do a Line," and now we have one visualization. I'm going to collapse Show Me, and we have a dual axis because the numbers for profit and the numbers for sales are very different, so it automatically creates a dual-axis double line chart.

Another thing I'll point out is the Marks card; you'll notice that it put Measure Names on the Color, right? So that's why we have the differing colors for each measure, and we also get our Legend on the right-hand side. It also notes down at the bottom that we have the Sum of Profit and Sum of Sales measures, and it's showing the marks; so all Marks here are automatic. Let's go ahead and name this sheet "Sum of Profit by Year" and go ahead and Save.

I've set up a new sheet for our stacked bar graph. This time we're going to select our Fields a little bit differently. So far we've been dragging and dropping them; this time we'll use the double-click method. So in your field list, go ahead and double-click Order Date, and it puts it in Columns automatically, and that's cool; that's where we want it. If we wanted it in Rows, we could move it manually, so we're good with that one. And then under Product, we're going to double-click Category and Subcategory, and we actually want the Category and the Subcategory to be in the Columns as well. So I'm going to just drag and drop them where we want them, and then go ahead to your field list and double-click Sales, so it puts Sales in Text, and we want it in Rows, so I'm going to just drag it and drop it there. It's like six of one, half a dozen of the other; sometimes I just like to do things a little bit differently. Now we want to use Show Me to change this into a stacked bar chart. So if you look at the Stacked Bar Chart, it requires one or more dimensions and one or more measures, so we meet the requirements. Gonna go ahead and click on it, and when we do that, it changes everything around from where we had it, so it made Subcategory Color on the Marks card; it flipped Category and Year of Order Date in the Columns, and it retained Sales in Rows, and so it does those changes so that the visualization will make more sense. And you can hover over any of your stacked bars; you have the legend on the right side since it made it color, it gave everyone a color-coded, and you can see the legend shows Category, Subcategory of the Year, and the Sales. We're gonna go ahead and name this sheet "Annual Sales by Category and Subcategory," and as usual, save your file.

The next type of Vis that we're going to do is a box and whisker chart, also known as a box plot. And we are going to first review what it will look like. So on the left side of the slide, you have a full box plot, and then I pulled out one section of it on the right side just to give you some information. So anything that is outside of the box itself is considered an outlier, and so you'll see at the top of this broken-out piece here that we have—oops, and I just zoomed in on that—but we have an outlier at the top right. So it doesn't fit into the box; it's an outlier; it's outside the range. And so then, just to know what this is composed of, this part up at the top is the upper whisker; you'll learn more about that a little bit. You have the median line, which is really one of the most important lines, and that's here, and then you have your lower whisker. So I've also included a slide in the deck telling you how to analyze a box plot, also known as a box and whisker plot, but I'll be going over this with you when we do this next chart. So I'm going to switch back over to Tableau. So we're going to go ahead and create a new sheet and our Sample Superstore live. For our box plot, we're going to drag Subcategory to Columns, and we'll drag Sales to Rows, so we get our column chart here. Now we can change this into a box and whisker plot a couple of different ways. The way we're going to do it right now is on the Marks card; we're going to change the mark from Automatic to Circle so that it lays the framework for our box plot. We're also going to drag the Order Date field, and we want this field on Detail in the Marks card, so I'm going to just drag it and drop it on top of Detail. So now, if I hover over any of the circles, you'll see that the year of the Order Date is showing, but we want to see the month of the Order Date. So in the Marks card, you're going to do the drop-down arrow next to Year of Order Date, and you're going to select Month. And I'm just selecting just May; there's another month down below with the month and the year, but we just want the month. So now, if you hover over any of the circles, you'll see the month. So we can make this into a box plot by right-clicking on the y-axis where your Sales values are and choosing at the bottom, Add Reference Line. So you have a Line, you have a Band, you have a Distribution, and you have Box Plot. Let's go ahead and select Box Plot there, and you'll see the whiskers extend to data within 1.5 times the IQR. Now I have this on that supplemental slide for you, but I'll just tell you that IQR stands for interquartile range, and those would be the data points between the first and third quartile. So anything outside, and it does a calculation, if you will; this is the default option. So what this 1.5 times means, it's telling Tableau to make all of the data points on the box and whisker plot fit into 1.5 times the IQR; anything outside of that is an outlier. Now our only other choice here is the maximum extent of the data; we're going to leave it on within 1.5 times the IQR and go ahead and click OK. So now you have your box plot or box and whisker plot, and we're gonna just take a look at one of the boxes so I can explain, and this is stuff that you saw on the slide, and I'll give you a further explanation. So this is the one that I drew out by itself on the slide, so it's like the fourth one over from the left, and if you hover into like a shaded gray area there, it gives you some information. So it's letting you know the upper whisker, the upper hinge, which I'll explain, the median, the lower hinge, and the lower whisker. So the median is the most important point; you can look around all of the members of this Dimension, the Subcategory Dimension, and you can find the median by looking for the line that's in the middle of the box; that's your median line here. So when I hover in a gray area and it tells me the median is almost fourteen thousand, if I look at the y-axis, I'll find the line closest to that, which is here, and that represents the median.

Now let's talk about the other ones. Analytically speaking, this, you know, once you get used to it, and if you have a need to use box and whisker plots, they could be helpful for you, but they could be a little confusing at first. So each line on the box itself is a marker, and it provides a piece of statistical content, and we already located the median line, which is important because you can look across the members of this Dimension, so the members of Subcategory, and you can easily find the median lines on your other boxes. So let's talk about some more definitions: What is the upper whisker? The upper whisker is 50 percent higher than the IQR. The lower whisker—let me hover again, get my little guide up—the lower whisker would be 50 percent lower than the IQR. Any data points outside of the box and whisker are considered the outliers. So that's that circle at the top; may have mentioned that one already; that's an outlier. And the lower and upper edges of the Box are known as hinges. So the upper hinge—so the box is like that gray box—the upper hinge for this fourth one over is twenty-one thousand four hundred and seven, and the lower hinge, the lower edge of the box, is would be the smallest data value that is larger than the first quartile. The upper hinge, by the way, is calculated as the largest data value that is smaller than the third quartile. So all of that information is in your slide deck for future reference, but congratulations, you've created a box and whisker plot or a box plot. Now we're going to go ahead and name this sheet tab—okay, and the name is going to be "Total Sales by Subcategory," and we'll call it "Box Plot" at the end. Go ahead and save your file.

So we created this box plot by adding a reference line. I'm going to show you another way of creating it, but this will be a more traditional box and whisker plot. And so this one is a box plot, and it does have its whiskers and everything as you see when you hover over the Box. So what we're going to do, instead of recreating the wheel from scratch, is we're going to copy this sheet tab. And the way I'm going to copy it is I'm going to hold down my control key, click and hold on it, and just drag to the right until that downward-pointing arrow is to the right of the original tab, and then I let go. So I get a copy of it. Let's start by renaming the tab, and instead of calling it a whisp a box plot, we'll add the word "box and whisker plot," so you'll be able to distinguish between the two, and at the end of that, we want to get rid of the number two because it's a copy of the other sheet. Sorry, my OCD just clicked in when I looked up and saw the title. Okay, so now what we're gonna do is we're gonna get rid of the reference, the box plot reference line that we added, and we can do that by right-clicking on the y-axis again and remove the reference line, so it's back to the state where we just had the circle mark showing. Now we're going to go over to the right and expand our Show Me pane, and on your Show Me pane, you have a box and whisker plot—this—and we're going to select it. So this one looks a little bit cleaner than the first one that we did; this is a traditional box and whisker plot, and sometimes the terms are used interchangeably; you'll hear box plot, you'll hear whisker box and whisker plot. So this one you can actually see the lines more clearly; the outlier circles are not as big, and you have your gray shaded area there where if you hover over that box, you'll see the same information as on the previous one. So it's just a matter of which is your personal choice; you can create a box plot by adding a reference line, or you can create the box and whisker plot by using the Show Me feature. Let's go ahead and save again.

So now you're going to learn how to show multiple aggregate measures on the same visualization. Let's go ahead and bring up a new sheet, and let's go ahead and drag Market Segment to the Columns shelf; we'll drag Sales to Rows, and we'll drag Category underneath Product. Let's see what we want to do with Category; we're going to actually drag Category to Color on the Marks card, so you get your Legend because it's color-coded, right? And right now we're seeing the Sum of Sales; Sum is the default aggregate in here. So let's say we also wanted to see the Average of Sales and maybe even some more Aggregates. So there's a couple of ways we can do this. So let's go and grab Sales again from the field list and drag it up to Rows to the right of the existing Sum of Sales. Now you'll notice you have two Sum of Sales. Now if your Vis doesn't look like mine, go to Show Me, and I chose the—I have the Stacked Column Chart here, so the one I'm hovering over right now is the one that I'm using. So they're showing the exact same thing on the second instance of Sum of Sales. Due to drop-down arrow, hover over Measure and choose Average. So now you have Sales and Average Sales. Let's do another; we'll do this one a little bit different. Let's hold down your control key and click and hold on Average Sales in the Rows shelf and drag it to the right to make a copy of it. On the second instance of Average, do the drop-down arrow, hover over Measure, and choose Median. So now we're seeing the Median Sales per Market Segment here, and we have the Categories as color coding. So what I'm going to have you do now on your own, I'm going to have you display the Max and the Min of the Sales and any other Aggregates that you want. So now I'm looking at five different Sales Aggregates based on the Market Segment and the Category, and let's just name this sheet "Sales Aggregates" and go ahead and Save.

Now let's say that the Sales, the Sum of Sales aggregate, is the one that's most important to you, and so you really don't want all of the other Aggregates to show in the visualization; there's something else you can do. Let's go to the Worksheet menu, and you're going to choose Show Summary, and you'll notice on the right you'll have a Summary pane where it's showing you the Aggregates that you have in your visualization, and so that means that you can see all of these Aggregates and others without having them in the visualization. Let's go ahead and click on Average Sales in the Rows column and press Delete. You're going to do the same for everything except Sum of Sales, because if you look at the Summary card now, you can see the other Aggregates. So this is a really great feature to use if your focus is on the Sum and you don't want to overwhelm the visualization; you can still see the other Aggregates on the Summary card. And so if you go to the drop-down to the right of the Summary card heading, you'll see that you can even show more Aggregates here, so whatever you want to show. I'll pick a Standard Deviation, and I'm going to widen the width of that panel so I can see the entire number. So that's just another way of seeing Aggregates. Go ahead and save again.

The last lesson in this module is showing the top 10 items. So the example that we want to see are the top 10 products by sales value. So let's go ahead and bring up a new sheet, and by the way, there is another way you can do that on your toolbar; you have your new sheet icon, and you also have the ability to duplicate a sheet and clear a sheet from there. So I'm going to use the icon this time just for variety's sake, and so you learn a different method of doing what we've been doing. And we're going to go ahead and drag Sales to Columns, and we're going to drag Product Name to Rows, and we have a lot of product names, so it's going to become a scrollable chart at this point, and I'm going to go ahead and collapse Show Me, and you can see the scroll bar on the right side. We're going to fix that because we're actually going to narrow it to just the top 10 product names based on sales values. So a couple of ways we can do this: You can, in the Rows shelf, you can right-click on Product Name and choose Filter. And so this is a filter that's only going to apply to this sheet because we're doing it at the sheet level, and you saw an example of that earlier. So notice at the top, we use the General tab when we filtered earlier; you also have a Wildcard tab, so you can actually create a filter by saying it contains something, starts with, ends with, or exactly matches. You have a Condition tab where you can set conditions, so for example, by Fields, the Sum of Sales is equal to or greater than and equal to or not equal to a certain value. I'm going to put that back on None, and we want to go to the Top tab. So we're gonna do the option button in front of By Field, and you're going to make sure it says Top 10 by Sales, and it's the Sum of Sales, and so the Top is a drop-down, so you can choose Top or Bottom; we're going to leave it on Top for 10. You can create a parameter; you can use a Profit Bin that's already there or Top Customers; we're going to just leave it on the number 10. So we're in the Product Name filter, and we want to see the top 10 product names based on their Sum of Sales, and we're going to click OK. So a couple of things happened; I mean, it actually applied the filter, so we don't have that scrollable list here; we have our top 10 product names based on their sales values. And the other thing that happened is it put Product Name in the Filter shelf. And so we right-clicked on Product Name where we did the arrow, and we went to Filter from the Rows shelf; we could have also dragged Product Name from the field list into the Filter shelf; so many different ways of doing the same thing. So we want to go to Label on a Marks card and show our Mark Labels so we can see the values of those bars at the end of them. We also want to click on Color, and I'm going to go with my orange color like we did earlier, or whatever color you would like to go with. And on the toolbar, we're going to do the standard drop-down and choose Entire View, and so it makes it a little bit larger by doing that with this type of chart. Now I'm also going to put my mouse pointer between the first product name and the first bar, click and hold, so when you get that double arrow, and I'm just going to expand it so it shows more of the product name there; it will word-wrap the rest of it. And we're going to, last but not least, we're going to name this sheet "Top 10 Products by Sales Value," and says this is the first of several modules where you got to create a bunch of different kinds of visualizations. We started with creating tables, and by the way, a table is a great companion and visualization on a dashboard. So imagine having a map and then having an accompanying table or a pie chart and an accompanying accompanying table. Then we learned how to create bar graphs and pie charts, and you learned how to sort your visualizations. We went on to creating histograms that show how data is clustered and using them as a comparison for categories. And then we moved on to creating line charts; initially when we chose two measures and one dimension, it created two separate line charts as part of the same visualization, and then we use the Show Me toolbar, which allowed us to select the Dual Line Chart visualization, which created a dual axis in one visualization for our line charts. We then created stacked bar graphs using the Show Me toolbar to select that option as well. We moved on to creating box plots two different ways: the first way we use the reference line of box plot to add to our visualization, and the second way we use the box plot from the Show Me toolbar. You also learned how to add multiple aggregate measures to a visualization, and then you learned how to just have one and use the Worksheet menu to show the Summary card, so you can display as many other aggregate measures for that particular visualization that…

You would need, and we ended by learning how to use a top filter, where we showed the top 10 items. In this extensive course, we started by connecting to a variety of data sources; in particular, text, Excel, and Access database data sources. In that module, you also learned how to paste in data from a clipboard and how to merge multiple data sources. We went on to connect to a SharePoint list, which you may have needed to install a driver in order to be able to do. And then we went over the Tableau interface, so you learned what everything is called on the screen. We started changing data types; you saw what happens when you change it to date time and there are no times in the data source, and we changed some metadata. We started working with the sample Superstore Tableau file. We split the customer name field into customer first and last on the data source view, and then we hid the original customer column so it wouldn't show in our field list. We even renamed the segment field to Market segment. You learned how to apply a filter at the data source level, which means that every sheet will be filtered in that way, and you learned how to clear a filter at the data source level and add a filter at the sheet level. You learned the difference between dimensions and measures and their coloration.

Then we moved into module two, where we just started creating univariate charts. So we created tables, bar graphs, pie charts. You learned how to sort charts; we learned how to create a histogram and a line chart. You were introduced to the show me toolbar, and then we created stacked bar graphs and box plots. You learned how to show aggregate measures and the top 10 items by filtering.

Hello everyone. I am Trish Connor Cato. Welcome to Tableau video training course. Tableau is a visual analytics platform that makes it easier for people to explore and manage data and faster to discover and share insights that can change businesses and the world. It helps people and organizations be more data driven. Tableau supports data prep, analysis, governance, collaboration, and more. As a continuation of the Tableau introduction video training course, this Advanced course is designed to boost the student's competence when it comes to creating visualizations and creating dashboards. The course goes into considerable detail on these two subjects and explores, among other areas, how to create a range of different charts, Maps, user-defined Fields, as well as a host of advanced features and abilities. We'll start by connecting to a variety of data sources. This will leave you with some great workbooks to practice on and develop on your own after this course. Then we'll move into creating a wide variety of charts, including bivariate, multivariate, and maps.

In module 3, we're going to focus on creating bivariate charts. We have six lessons in this module. We're going to start by creating a bivariate table, and then we're going to move on to creating Scatter Plots. You're going to learn how to swap rows and columns in visualizations and also how to add trend lines. You'll learn about selecting color palettes and effective ways of using dates. Bivariate analysis means analyzing and exploring two variables at a time, and common types would be tables and Scatter Plots. So I've mentioned that tables are great as a supplemental visualization. Scatter plots give an option to display a lot of data in a small area with relatively low confusion rates, so it's typically used to determine whether two measures are correlated. And because we're going to be adding trend lines in this module, I have a follow-up slide for you here giving you the five types of trend lines that you can use in Tableau.

So back in Tableau, I'm going to use my tab scrolling arrows, which I'm pointing to on the screen, just like in Excel. I'm going to use those to go backwards until I find the sheet that we named average sales by market segment. So I'm going to just use the second scrolling arrow there, and I've located the sheet average sales by market segment. This is where we did our univariate table, and we want to make a copy of the sheet. So there's a couple ways of doing it. I'm going to just hold down my control key, click and hold on the sheet tab, and you'll notice that my mouse pointer has a plus sign underneath it, and on the left side you'll see a downward pointing arrow. I'm going to drag to the right, all the way to the right as far as I can go and let it go. And now I have to scroll to the last sheet on the left, and I can continue dragging that sheet without holding Ctrl. I'm going to continue dragging that sheet so it's at the very end after our top 10 products by sales value. So we have a copy of that sheet, which is indicated, and you'll see the number two, and again the sheet tab name is showing as the title on the sheet, so we'll fix that when we're done creating this particular table. So all we have to do here on our copy is go ahead and add the sales measure to columns. So of course it changes it into a bar chart. We're going to use show me, and we're going to select the text table, which is the first one on a show me list. So now you have a table that's showing the average sales and the sum of sales, and notice how it put measure names in columns and they're showing the measure values at the bottom of the marks card. You have that little drop down, and then it shows that both measures were put in the text box here, and so now you have a bivariate table, and we're going to name the sheet average and total sales by market segment and get rid of the two indicating that it's a copy. And as usual, after you've renamed it, go ahead and save your file.

Now we're going to create a scatter plot. So let's go ahead and bring up a new sheet, and we're gonna just put profit in columns and sales in rows for this one. So this is not useful at all, right, just looking at the one little circle on this. Let's go to add more information. So let's put category in color and region in detail on the marks card in detail. So we have our legend on the right showing our colorations there. If we hover over any of the circles, you'll see the category, the region, the profit, and the sales, but this is not a scatter plot quite yet. Let's go to our show me panel, and on the show me panel you're going to select the scatter plot; it's the one that has the pluses and the circles on it. And notice at the bottom, as I'm always pointing out, for Scatter Plots you need zero or more dimensions and two to four measures. So we have two measures on this, which is why it's eligible. I'm going to go ahead and select that. So this is giving you the ability to visualize the relationships between numerical variables. Let's collapse our show me panel, and you'll see now that you have a legend showing the different shapes that are being used for the different categories, right? So the circle is now representing Furniture, the square is office supplies, and the plus sign is technology. Is a scatter plot. Let's go ahead and name this sheet sum of profit by category and region and then save.

Now Tableau gives you the ability to swap rows and columns in a visualization, which is really cool, and so I already have a new sheet up. Let's go ahead and put subcategory in columns, category in rows, and drag quantity to the text box on the marks card, so it gives us a table, right? And we use that text field on the marks card, and that's cool, but the point of this one is showing how to swap, but before I do that, my OCD will not allow me to ignore the column widths here, so I just needed to fix that so I can see all of the column names clearly, the column headings clearly, as opposed to them being truncated. So now that I have that going, how do you swap? Well, there's a shortcut key for it. You do control W, and now you can see that the category is in columns and subcategory is in rows. So it depends on how you want to see the data. This gives you the flexibility to look at it a couple of different ways without you having to drag the fields around, and you can do control W to swap it back again. So we're going to go ahead and name this sheet uh quantity by subcategory and category, and I'm just going to abbreviate quantity qty by sub category and category. I really do know how to type most days. So control W is your swapping mechanism, and if you were to forget the shortcut key Ctrl W, you can go to the analysis menu, and swap rows and columns is the last choice on that menu. Add and bring up a new sheet, and we're going to start, we're going to create a visualization, and we're going to add trend lines to it. Now if you go to add trend lines and it doesn't allow you to do so, it's because you need to have some kind of numerical field on each axis individualization, so either a date or a measure; that's the only way it'll allow you to add trend lines. So let's go ahead and put our sales measure in rows, and we'll use the year of order, the year of the order date, and columns for this one. So we have a date numeric and we have a measure numeric, so each axis has a numeric value on it, and so it gave us a line chart. Let's go to show me and let's choose the horizontal bar chart for this one, and I'm going to collapse show me and I'm going to change it from standard to entire view just to make it larger, and I decide I don't need this year of order date title at the top, so I'm going to right click on it, year of order date, it's kind of cut off, and I'm going to hide field labels for rows. It's obvious those are the years, and so how do we add the trend line? Well, there's a couple of ways, but let's do it this way. On the left side, you're on your data tab in the field list, right up top there's another tab called analytics; we're going to go there, and under model you will see trend line. Now when you start to drag it and drop it on your visualization, that's where you get to pick the type of trend line that you want, so we're going to drop it on linear, and it adds the line to the visualization. Now if you hover over the line, you'll see it has a tool tip of its own where it's giving you the calculation for sales and the year of the order date and the r squared value and p-value, and you can also get additional information for your trend line by going to the analysis menu, hovering over trend lines, well actually yeah, hovering over trend lines and then selecting describe Trend model, and so it gives you this whole dialogue of information, the model formula, the number of modeled observations, all of the stuff that you may or may not need, and can scroll across and see more values, and you can even copy that information and paste it somewhere else as necessary. So I'm going to close describe Trend model dialog, and I'm going to go ahead and let's just call this um sales Trend by year; that would make sense for a name and save your file as usual.

Now let's say we selected the linear trend line and we really want an exponential trend line. Well, this is an easy fix. We can go back to the analytics tab, and we can drag trendline over again, and this time drop it onto exponential, and notice the shape of that trend line changed a little bit, right? So you can you can easily swap it by doing that. Now at some point you might decide you don't want to show the trend line anymore, and I'm actually going to swap it back to linear, and for that you can go to the analysis menu, hover over trend lines, and uncheck show trend lines, so it disappears off of your visualization. If I go back to analysis and hover over trend lines and click on show trend lines again, it will reappear. Go ahead and locate, using your scrolling arrows, the total sales by market segment pie chart sheet. So this is going to show you how to select color palettes and assign colors to the slices in this pie. So the reason why the pie slices are colored by market segment is because we had Direct Market segment to the color box on the marks card, and it just assigns it default colorations. We want to change that, so we are going to click on the color box on the marks card and choose edit colors, and notice on the left it shows you the colors that it automatically assigned to each market segment, and on the right under select color palette it says automatic. We're going to do the drop down arrow there. You can see that Tableau has a host of color palettes available for you to use, and I'm going to choose one called traffic light. So now you see the colors that are available in the traffic light color palette, and so I'm going to just move it off of my pie chart a little bit, and so what we're going to do here is we're gonna assign the colors from this palette to each market segment. So on the left I'm going to click on consumer, and that has the largest slice, so I'm going to give it a green color, so I click on the green color underneath our traffic light palette, and then I'm going to select corporate, and corporate looks like it has the lowest amount, so I'm going to give that a deep red color, and then for home office I'm going to do yellow, and now I can apply on the bottom right, and you'll see the changes take place. So if you'd like to use a different palette, go ahead and select a different palette on your own and then assign the colors to each market segment like we just did and apply it. So I did the same as you; I switched my palette and I switched my colors, and you can see my end result for this and save.

I've navigated back to my quantity by subcategory and category sheet. This is the one we did the swap on. I'm actually going to, we're going to use this for something else. I'm just going to expand my column headings a little bit so they're not cut off. So this portion is using dates, right? So we don't have any dates on this sheet, but we want to see varieties of the order date on here. So what we're going to do is go ahead and drag order date up to columns and drop it before subcategory, so it's the year of the order date, and then what we're going to do is you notice there's a plus sign in front of year; click on the plus sign, and it gives you the pill for the quarter of the order date. So now we see year and quarter. Go ahead and do the plus sign in front of quarter, and you get month, and so on and so forth. So you can add the same date field multiple times and show a variety of dates. I think that what I want to do is make this look a little bit better, so what I'm going to do is I'm going to drag subcategory in front of the year of order date in the columns row, and it makes it a little bit more readable. So I'm seeing the year, and then under each year I'm seeing the quarter, and then under each quarter I'm seeing the month, and this is showing furniture and office supplies don't look like they had anything going on in terms of quantities for 2019 and 2020. If I scroll over to the right a little bit in my visualization, I can see that it's not well yeah it is 2019 for office supplies; it's coming in, so we're starting to see the data as we scroll to the right, but you can use, and that's a nice way of doing it. Um, if I do the minus sign in front of year order date, it collapses everything because all of the other date breakdowns are underneath year, so I would have to do the plus sign on that one, plus sign on quarter again in order to be able to see the quarter and the month. Now if I do the plus sign on a month, it's going to show the day, but I don't want that level of detail, so I'm going to collapse; I'm going to do the minus sign on month to get rid of day. You can go ahead and save your file.

Compared to our first two modules, module 3 was fairly simple to get through. We covered creating bivariate charts, so we did a bivariate table again; a table on a dashboard would be used as a supplement to another visualization, and then you learned how to create Scatter Plots. You learned the shortcut key as well as where it resides on the menu to swap your rows and columns in a visualization. You also learned how to add trend lines, and remember the five different types of trend lines; there are descriptions of them in the slide deck, which is also in the video description for your future reference. You also learned how to hide the trend lines and how to change them. Then we got to select the color palette for our pre-existing pie chart, and you learned how to assign the colors to each slice of the pie, and you got to do that with me and on your own, and then you learned how to add different levels of the date to a visualization.

In our fourth module, we'll switch our focus to creating multivariate charts. This module has six lessons. We're going to start by creating facets and then move on to creating area charts and then bullet graphs. You're going to learn how to create dual axes charts, how to create Gantt charts, and how to create heat maps. In this module, multivariate simply means analyzing and exploring more than two variables at a time, and I have the common types which are our lessons listed on this slide. So facets are effective at comparing categories within a single measure; it especially is effective when you have data that can be split into multiple categories, and the bars will display side by side. You also have heard of facets referred to as small multiples, so that's what a facet is in Tableau. Area charts are powerful for adding detail to other visualizations, but they're not as effective on their own; they're kind of like supplemental, like a table. Bullet graphs show where your data is clustered and can compare categories. Gantt charts connect several distinct data points, presenting them as one continuous evolution; it's a simple, straightforward way to visualize changes in one value relative to another. And then we have heat Maps, also known as density Maps; they can be used when you want to show a trend for visual clusters of data; for example, which areas of Manhattan have the most taxi pickups; that would be an example of something that you might want to show on a heat map.

And now we're going to create a facet or small multiples visualization. I'm on the last sheet in the workbook, and I'm going to do my new sheet button to get a brand new sheet to build this on, and on this sheet we're going to drag subcategory to columns, and we're going to drag both sales and then profit to rows. So now that we've done that, we have multiples; we have within the same visualization we have sales and we have profits, and notice that both of them show up on the marks card saying that they're all both of them are using the automatic mark, which is the column in this particular instance. Now we're going to, I'm using control drag; I'm going to hold down control, click and hold on profit in the Rows Shelf and drag it to color on the marks card, so made a copy of it, so both facets are going to have the color, but the legend over on the right is going to be for profit because that's the facet that we put on the color card. So then we want to change the colors; you can do it a couple of different ways; I'll show you both ways. We can click on color in the marks card, choose edit, and then for the palette that says automatic we're going to drop down, and we're going to choose red green diverging, and we're going to click apply. So you see that the colors are going to apply to everything in the visualization, but the legend is just showing for profit. We're going to click ok. Now another way you can change the colors or make other settings changes regarding them is from the legend. Go to the drop down next to the legend, and you can go into edit colors, and you'll see the same box as when we clicked on color in the marks card, and we can cancel that; just wanted to show you the

Other way of doing it. Now we're going to create another facet by adding the quantity field to rows. So now we have another section in our visualization: sales, profit, and quantity. Now, if we sort any of these facets, it's going to cause the other ones to sort because they're arranged by sub-category. Right? So we're gonna go to the y-axis on profit, where it says profit, and we want to sort it, and so from lowest to highest, I clicked it twice, the sort icon. So we see the negative profit at the beginning of its facet. And then we're going to go ahead, just to be able to do a little bit more analysis on this, we're going to grab the category field and add it to the column shelf before sub-category. So now you have your categories, right, and your subcategories are showing at the bottom. So we can see the way that we have it sorted from lowest to highest, especially particularly if you look at the process asset, you'll see that furniture is where most of the negative profit is, and in office supplies has a little bit of negative profit as well.

And we're going to name this sheet, and it's going to be Sales Profit, and I'm going to use "qty" for quantity by category and sub-category. And as usual, save. Now we're ready to create our area chart. An area chart is really a line chart with the area filled in, and again, it's a useful companion visualization for another visualization. So let's go ahead and bring up a new sheet for this. And on this sheet, in the field list, we're going to use control-click, and we're going to select Ship Date and Profit, and then expand your Show Me, and in the Show Me pane, you're going to select the area chart. And so you have—I'll show you, I'll point to it here for you—this is the area chart that we want to select. So when you go ahead and click on it—so another way, this is a different way of doing things—we selected the fields that we want, and then we selected the visualization type, and it placed those fields on the column and the rows show for us and built the area chart. And by the way, if you look at the bottom, when you have your area chart selected, you need one date, zero or more dimensions, and one measure in order to be able to use that type of chart. I'm going to go ahead and collapse Show Me. So you notice this is really a line chart with the area filled in. We're going to give it some more context. So let's drag Category to Color on the Marks card, and now you'll see it's split up by different categories. The blue one—you can see the legend on the right—is Furniture; orange is Office Supplies; and that polished pink or rose color is Technology. So we're giving it more depth. And for the Ship Date, we want to change it to Quarter. So I'm going to do the drop-down there next to your Ship Date in the Columns Shelf, and I want to select the Quarter with the year after it. Now, is there another way I could have done that? I could have done the plus sign in front of Year. So now we're seeing it by quarter; we're giving it more depth. And we also want to see some profit in here, so we're going to use Profit as a label. So drag Profit to the Label box on the Marks card, and now you're seeing the labels on this area chart. Now notice in the Marks card at the top where it typically says Automatic, it now says Area. We can go to the drop-down there and choose Line, and it changes it to a line chart. We're going to go back to the drop-down and change it back to Area. So area charts are really line charts with the area filled in. And go ahead and name the sheet Profit by Category. So again, an area chart is good, similar to a table, as a companion chart for another visualization on a dashboard. So I've saved my file, and I have a new sheet ready to go where we're going to create a bullet graph.

Let's go ahead and drag Sales and Profit to Columns for this one—Sales and Profit to Columns—and we'll drag Subcategory to Rows. And now let's use our Show Me panel to select the bullet graph. And the bullet graph is the center one in the bottom row. I'm pointing to it now, and when you hover over it, you'll see that you need one of zero or more Dimensions, two measures, and then it says, "Right-click the continuous axis to swap reference lines," and you'll see what that means in just a moment. Go ahead and select your bullet graph, and then go up to the toolbar and change it from Standard to Entire View. And I'm going to collapse my Show Me panel. So how do I read this? Let's start with the vertical lines that you're seeing on your bullet graph. When you hover over a vertical line, it's going to show you the average sales value for that particular subcategory. Now, to the left of that, you'll see a shaded gray area, and that shaded area—if you hover over any of the shaded gray areas—this one I'm seeing 60 percent of average sales value. So it gives you these markers along the way, right? There's 60 percent, another one 60 percent. So the shading matters here, right? So you can see the average sales value, 60 and 80 percent of the average sales value. Here's another one for Art; here's the 60 percent of average sales. And then to the right of that vertical white line that's coming down, it's showing 80 percent of the average sales for Appliances; it would do the same 60 and 80 depending on what side of that white line you're on, and then the average sales. So let's see what happens when we swap the reference lines. We're going to right-click on the Profit axis and we're going to choose Swap Reference Line Fields, and so the whole thing looks a little bit different now. When you hover over one of those vertical lines, you're getting the average profit again. So that is the same, and then you have your shaded areas that you can get to and see your 60 or 80 percent. So it just swapped the reference lines, and we can swap them back. So notice when we swapped it, now at the bottom it's saying Sales, right? We're going to swap it back, so by right-clicking on the Sales axis, Swap Reference Line Fields, and now it's back to Profit. So it's kind of similar to swapping rows and columns, but different, and that is a bullet graph. Now the only other thing we want to do is let's go to Color and choose an orange color for this, and then we're going to go ahead and name our sheet—see, we're going to name our sheet for this one; it really is Sales and Profits by Subcategory. So we can—yeah, we'll name it Sales and Profit I Subcategory—and Save.

We saw an example of a dual-axes chart in an earlier module when we created the double line chart, right? And so it had a dual axes by default when we did that. Now I'm going to show you how to create one using a slightly different method. So let's go ahead and drag Order Date to Columns and Sales to Rows. And we also want to include Quantity in here, but the Quantity values are really different than the Sales values. So what we're going to do is we're going to click and hold on the Quantity field, drag it onto our visualization, and over to the right until you see a dashed black line, and then let it go. It automatically creates the dual-axes double line chart, right? Do a line chart. And so we can still have a dual-axis chart without it being a dual line chart. I'm going to go to Show Me; I'm going to use the horizontal bar chart for this one, and notice it gets rid of—so it's separated the two of them. Well, how can I fix this? I'm going to get rid of the Sum of Quantity from Columns; I'm going to just click on it and press Delete, and then I'm going to drag Quantity onto the visualization—oops, before I do that, let me collapse Show Me—I'm going to drag Quantity onto the visualization all the way over until I see a dashed line. And so I still retain my bar, but I have a dual axis going on on this chart. So by dragging it over until you see the dashed line, that will automatically create a dual-axis chart for you. And then we don't want to see it by year of Order Date; we want to see by quarter of Order Date. So I'm going to do the plus sign in front of Year, and it's showing the year and the quarter, and then I'm going to delete the Year pill from the Rows Shelf. So now I'm just seeing the information by quarter of Order Date, and we can go ahead and name this sheet Sales and Quantity by Quarter, and you can save.

Now we're going to create a Gantt chart, and remember that's a straightforward way to visualize changes in one value relative to another. So let's go ahead and bring up a new sheet. And for this one, we're going to drag Order Date to Columns, and we're going to do the drop-down arrow to the right side of that Year Order Date pill, and we're going to hover over More and select Week Number. So you'll see the week numbers of the Order Date. And let's grab Subcategory and Ship Mode and put them both in Rows—Subcategory and Ship Mode. Now we're not done with the fields we're going to have that we're going to be using here, but let's go ahead and go to our Show Me, and your Gantt chart is the first one in the bottom row. Notice it requires one date, one or more dimensions, and zero to two measures. We're going to go ahead and select it. And now what we're going to do next is we want to size the marks on the Gantt chart according to the length of interval between the Order Date and Ship Date fields, and we're going to do that by creating a calculated field. So we're going to go up to the Analysis menu, and we're going to choose Create Calculated Field. And the first thing we're going to do is name this calculation, so we're going to name it Days to Ship, and then we're going to click in the box, and we're going to use a DIFF function here. So I'm going to start typing "date," and when it shows up on the list, I stop typing; I use my arrow key to highlight it, or I double-click it, so I can avoid typos. If I highlight it, I can tab it in, or you can double-click it. Now, of course, at the bottom it says the calculation contains errors because we haven't finished it; it's showing you the syntax of the DATE_DIFF function right underneath where we're going to put the function. So right now it's looking for the date part argument. So we want to see the difference between Order Date and Ship Date in days, and then it has an argument of start date and another one of end date. So we're going to build that up now. So it's inside the parentheses after DATE_DIFF, and we're going to start typing "day" or the letter "d." I see "day" on the list, so I'm going to dump it in—oops—and actually backspace; I made a huge mistake there. We don't want to use the DAY function here; we want to tell it the date part of day. So for that, I'm going to type a single quote, the word "day," and then close the single quote and type a comma. So now it's ready for the start date. For the start date, you're going to start typing "order," and you'll see Order Date on the list, and you can double-click it or tab it in. After Order Date, you're going to do—and at your outside the closing bracket on the Order Date, you're going to type a comma, and then you're going to start typing "ship," so you get Ship Date in. So we want the difference in days between the Order Date and the Ship Date, and the only thing we have to do is type a closing parenthesis after Ship Date. And down at the bottom, it lets us know that our calculation is valid, and we're going to click OK. So now in our field list, we have our Days to Ship calculated field, and we want our Gantt chart marks to be sized according to the Days to Ship. So we're going to drag our Days to Ship field onto Size on the Marks card, and you can see how it's showing different sizes. We have a legend over here because the Subcategory is now in color, all right? So our sizes of the marks are based on the Days to Ship. If you hover over Standard Class—the bottom Standard Class one, the blue one, right—you'll see that it's in the Accessories subcategory; it gives you the weekly Order Date, and then 86 days to ship. If we look at the next one to the right, that one is 206 days to ship. In this one, depending on the category, we're going to change this a little bit; we don't want the sum of the Days to Ship; we want to see the average Days to Ship. So on the Marks card, I'm going to do the Sum of Days to Ship drop-down, hover over Measure, and choose Average. So this chart is kind of overwhelming right now, so we're going to apply a filter, so it'll make more sense. So what we're going to do is we're gonna hold down our Control key, and in the Column Shelf, we're going to click and hold on the Week of Order Date and drag it to the Filter Shelf, and we're going to select Range of Dates. Next, we're going to put in January 1st, 2021 for the first date—get in there—and we'll do December 31st, 2021 for the second date, and we will Apply to Filter and click OK. So it's doing it by the week of the Order Date, but it has a range of dates, so it's not all four or five years of the data that we have in here. And so when we hover over any of the marks on the Gantt chart, you'll see the Ship Mode, the Subcategory, the Week of the Order Date, and the average Days to Ship. And let's drag Ship Mode to Color on the Marks card. So now we get—it looks a little bit better, right? First Class, right? Average Days to Ship is changing depending on the week of the Order Date. We're seeing Second Class; it looks like Same Day, which makes sense because they have the least amount of days to ship, although there's one Same Day in there; it took—most of them are zeros for Days to Ship for Second Class, depending on the week; we're seeing some fours, fives, threes, so on and so forth. And that is a Gantt chart in Tableau. Now, to give the end-user some more flexibility, we're going to show the Order Date filter so they can look at different date ranges. So I'm going to right-click on Order Date in the Filter Shelf and I'm going to choose Show Filter, so it shows up over on the right, and it shows up as like a sliding bar, right? So your end-users can go ahead and drag for different ranges of dates, or we could do the drop-down arrow next to it, right? And we could change it to Relative Date, Start Date, and Date Browse Periods. We're going to leave it on Range of Dates with the slider, and we're going to name this sheet Days to Ship. Before we actually name it, let's drag Subcategory to Detail on the Marks card, and now we can name it Days to Ship by Subcategory and Ship Mode and Save.

So I'm all set up on a new sheet so we can create our heat map. Heat maps are also known as density maps. So let's start by dragging Profit to Columns and changing it to Average from Sum. We're going to drag Sales to Rows and also change it to Average from Sum. So we have our average Profit, our average Sales, and we're going to drag State/Province to Detail on the Marks card. So now in the Marks card, we're gonna go to our Marks drop-down where it says Automatic, and we're going to select Density at the bottom. And so it gives you a heat map of sorts. Now the other thing I want to point out here is if I go to the Show Me pane and I select Heat Maps—it's the second one on the top—it makes it look more like a table with the stuff in there. So I'm going to do Control-Z, which is Undo. I want it to look like this, where you're actually seeing by the shape the density. So if I hover over one that's dense, it's showing me the average Profit and average Sales for Ontario, looks like in Canada, that has a lot more density. New Hampshire—you'll see the ones with the darker circles or kind of like the denser ones—it looks like. So let's go to Color on the Marks card and do the drop-down next to Automatic, and we're going to select one of the density color grids that they have there. We're going to do Density Multi-color Light. And so you can see it looks more like a traditional heat map when you're doing it that way by using the density colors. Let's change the intensity to 85 percent for that. Oh, so now you can really see the more dense areas. And to make it really stand out, we're going to do something here. Right-click anywhere on your visualization and choose Format, and the Format pane opens on the left side of your screen where your field list is normally. Underneath where it says Format Font, you'll see a series of icons; we want to select the Paint Bucket, which is for shading. And for our worksheet, where it says under Default for our worksheet, we're going to make it black, so the colors really pop there. And then underneath where it says Format Shading, we're going to go to the Lines icon, and for Grid Lines, we're going to do the drop-down and select None. So we're getting rid of the grid lines, which makes it look more like a heat map. So you can close that Format pane; there's an X to the right of Format Lines, and it brings you back to your data and/or analytics pane. And so you have an example of a heat map there. We're going to go ahead and name this sheet Average Sales and Profit by State/Province and Save.

Since we changed our worksheet shading to black, we can go ahead and—we can't really see the title of the worksheet or the axis title, so we're going to fix that. I'm going to start by right-clicking on the title of the worksheet up top and choosing Format Title, and on the Format pane on the left, I'm going to change the shading to white, just so it can be visible. And then I'm going to right-click on the Average Sales y-axis and choose Format, and I'm going to change that shading to white as well. And I'm going to do the same thing—do the same thing for your x-axis at the bottom. You'll learn more about formatting later in the course, but for right now, just so those are visual[ly] visible, we'll do it that way, and go ahead and save again. In Module 4, we created several multivariate charts. We started by creating facets, also known as small multiples, where we ended up having Sales, Profit, and Quantity by Subcategory in our small multiples graphs. Then we moved on to creating an area chart, which is a great supplemental chart to another chart on a dashboard, and it really is just a line chart with the area filled in. So you were shown how to do that, and then we added a field to create colors on the area chart, and we had them colored by Category. We moved on to creating a bullet graph, and you learned how to create the bullet graph from Show Me, but you also learned how to review it and how to swap reference lines back and forth. In the fourth lesson, you learned how to create a dual-axis chart by dragging a secondary measure to the border of the chart—existing chart or visualization—until you see the dotted—the dashed black line. So when you're using measures that have disparate value ranges, you would want a dual-access chart for clarity. We moved and created—to creating our Gantt chart, right, which—and you learned how to do a calculated field during that lesson where we used the DATE_DIFF function to calculate the days between the Order Date and Ship Date. We also filtered the Gantt chart so it's more readable, and we showed the filter on the page so end-users have the chance to select different date ranges. And lastly, we created our heat map; we did it not by…

Using show me, but by using the density mark in the marks card, we added color to our density. By using one of the colors that are built—the density palettes that were built in—and we changed the background of the sheet to black so that the heat map actually pops visually. We got rid of the grid lines to make it more clear, and then, as usual, we saved it after giving the sheet a name.

Our fifth module is all about creating maps. So, in the first lesson, you're going to learn how to create geographic roles. We already have our geographic roles created, but our review where you would go to create them if they weren't created. In the second lesson, you'll learn how to place marks on a map. Then we'll move on to overlaying demographic data, and in the fourth lesson, you'll learn how to create a choropleth map, which it just simply means a filled map. In lesson five, you're going to learn how to use polygon shapes on a map, and we'll do some further customization of maps to end this module.

So, as I mentioned, a choropleth map is known as a filled map, and they're great for showing ratio data. So I have an example here that says if you want to see obesity rates for every county across the U.S., you could use this type of map to spot any spatial trends. I already have my new sheet ready for us to create maps on, but what I want to do first is go to the data source view so that we could take a look at where you would assign geographic roles to fields if necessary. So, in your metadata grid, go ahead and click on the globe icon in the type column for City and hover over geographic role. So these roles have already been assigned; right, you notice that City is assigned a geographic role of City. If you look at the globe and the geographic role for State/Province, you see that it's already assigned. Now, it's rare that it will assign it the wrong place, but if it does, you can change it here at any point. So you have to have geographic roles assigned in order to be able to create maps.

Now I'm going to navigate back to my blank sheet, and I'm going to drag the State/Province field under Location to Rows, and then, using show me, I'm going to go ahead and select the symbol map. If you look at the requirements for symbol maps, you need one geographic dimension, zero or more dimensions, and zero to two measures. And so any of the fields that have the globe symbol can be used as that geographic dimension. I'm going to go ahead and collapse show me. You'll notice a few changes; you'll notice that the columns now says Longitude (Generated) and Rows says Latitude (Generated). And so it takes that geographic dimension and it separates it into longitude and latitude. And then if you look at the marks card, something interesting happened. We used the State/Province field, but it also gave us the Country/Region field, and let me explain a little bit about why that happened. If we look at Location on the fields list, it's in a hierarchy; that's what the symbol in front of Location represents, the icon. And in that hierarchy, you have Country/Region, Region, State/Province, City, and Postal Code. So it's given me the top layer, the upper layer of the hierarchy, the uppermost level of the hierarchy in addition to the one that we chose. Now we don't want Country/Region, so we're going to click on it in the marks card and press Delete on your keyboard. So that's how that's always going to generate the highest level of a hierarchy along with anything in a sub-level like State/Province.

So now we're going to give our map more context, and we're going to do that by dragging Sales to Size on the marks card. So now you'll notice the states that had sales—the states and provinces that had sales—have circles on them, representing the largest circle would represent larger sales, and the smaller circles, smaller sales. And you can hover over any of those marks to see the actual sales value there. Because we put Sales as Size on the marks card, we have a legend that populates on the right side. Now, on the marks card, we're going to select the Sales pill, and we're going to go to the automatic drop-down, and you can change it to a different shape if you want it. So we could change it to a square, and then we decide, no, we want it to be a circle again. So I'm going to just go back and change it to the circle. And let's grab the State field from the field list and drag it to Color on the marks card. So we have State both as Detail and we have it as the Color, so we get another legend on the right indicating the colors of the circles for their size by state. And we decide that we're undecided whether we want to use color for the State/Province; we may change our mind about it, but in the meantime, we certainly don't need its legend on the right, so we can go ahead and do the drop-down arrow to the right of the legend header and choose Hide Card.

Before we overlay demographic data on our map, let's do a couple of changes. So, at this point, we've decided we don't want color assigned to the State/Province. So, in the marks card, I'm going to select the State/Province pill and press Delete to get rid of it, and we're going to drag Sales to Color from the field list instead. So now we have a Sum of Sales color palette legend on the right. What I'm going to do is I'm going to click on Color on the marks card and Edit Colors, and I am going to choose a diverging palette. So I think I'll go with the—um—orange-blue; I'll do the orange-blue-white diverging one. And then I'm going to do something different here with my palette; I'm going to check the box that says Stepped Color. Stepped Color, and I'm going to leave it on five steps. So if you uncheck it, you see that it's just like blending all the colors together like that. If you do Stepped Color, it'll break it into five segments of differing colors, and I'm going to go ahead and Apply and click OK. So both the size and the color of the circles on the map representing sales are based on the sales value. The other thing we're going to do here is we're going to get rid of the Sum of Sales Size legend by clicking its drop-down arrow and hiding that card. At this point, go ahead and save. We're not done with this map yet, but it's a good time to save.

So now, if you hover your mouse over your map in its upper left corner, you'll see your map controls toolbar. Click on the—or hover over the—right-pointing arrow and select the four-arrow points, and that is the pan one. So now when you put your mouse on the map and you drag it up and down, you can pan the map. So you can see that we have Canada and the United States in here, and we're seeing Mexico as well. If I keep panning, we'll see other countries, and none of those countries have any sales in them at this point except for the United States, I believe. So that gives you the ability to pan the map. Now we're going to start overlaying demographic data, and the way that we're going to do that is we're going to go to the Map menu and choose Background Layers. The Background Layers panel opens on the left, and I'm going to size it so that I can see it a little bit better. So certain things—certain background map layers—are included by default, and we'll use the style and show you everything at the top, but I'm jumping right to the Background Map Layer section. And so we have the Base Map; we have Land Cover; Country/Region borders; Country/Region names; same for State/Province borders and names; and we want to add some more layers. So what we're going to do is we're going to check the box in front of Coastline. If you keep your eye on your map and you uncheck it, you'll see that the coastlines are not defined. When you check it again, you'll see the definition for the coastlines on your map. And we're also going to put a check mark in front of Water Labels. Again, try to keep your eye on the map while you're doing this, but now you're actually seeing the names of the bodies of water; there's your Gulf of Mexico down there, and that's what Water Labels do. You can take a moment, and you can check other background map layers as you like. I'm going to leave mine the way it is right now, but I want to point out another thing that you can do. If we checked Coastline and Water Labels, if we want all of our maps to include that automatically, we can go to the very bottom of that Background Layers pane and choose Make Default. So any subsequent maps that you create will default with those background map layers already included.

Now, if you look at the very bottom of your Background Layers tab, you'll see that they have another section down there called Data Layer, and we're going to explore that now. So right now it's set to No Data Layer, and we're going to do the drop-down, and you see a bunch of the statistical information that shows up: U.S. Households; U.S. Housing; Occupations; Population; Population by Race; Under Population; U.S. Population. We're going to just click on Population, and then it shows underneath it the detail is by state, which we want to leave it—the Population by State—and it assigns it a palette, and I'm going to switch it to a different palette, and I'm going to choose Orange-Blue Diverging. And so now we have an additional layer showing population, and you actually get a legend over on the right showing the population values and the coloration of the states. Now there are a handful of background styles that you can include on your map or you can switch to on your map. So it defaults to Light, and you can take a look at all of them; take a few moments to look at all of them and see what—how they change the background of your map. So you get to see the variety of things; Streets is kind of interesting on this map, but it does show you more detail; you get some city information on there as well. Outdoors is kind of nice, and then one of my personal favorites is Satellite; for some reason, I like looking at it that way. But I think I'll go with—you can choose one that suits your needs. I think I'll do the Outdoors one; it's bright; it's colorful; it has some state information on it—city information in the states—um—on it as well. And you can give your background style a washout effect so it's not quite as bold if you want to.

There's one last thing we're going to address before we move on to creating a choropleth map. And in the lower right corner of your map, you'll see 10 Unknown, and if you hover over it, it says there are 10 values that have unknown geographic locations. Let's go ahead and click on that, and there are three options for you: you could Edit the Locations; you could Filter the Data, which is what we're going to choose in a moment; or you can Show the Data at Default Position on the Axis, so it would show null values as zeros. Let's first click on Edit Locations. So notice it is all the—everything that is unrecognized is the provinces in Canada, and we don't have data that we need to really see up in Canada. So what we're going to do is click OK on that, and what we can do is close your Background Layers pane on the left, and you're going to drag State/Province to the Filters shelf, and you're going to select None. And now we're going to just exclude those provinces. So we'll start from the top; we'll exclude Alberta, British Columbia; scroll down for Manitoba, New Brunswick, Newfoundland and Labrador, Nova Scotia; we're going to do Ontario, Prince Edward Island, Quebec, and Saskatchewan. And once they're selected, it's easier to select—less of a list—we're going to choose the box in front of Exclude, and we're going to Apply and OK. So your 10 Unknowns disappeared from the bottom right of your map. Go ahead and save and bring up a new sheet, and it might be a good idea for us to name the preceding sheet—sorry about that—so the sheet with our map on it, we're going to call Sales by State, and later on you'll learn how to give your title a different set of text as opposed to the sheet; it's just that when you name a sheet, it automatically makes that the name of the title on your visualization, but you'll learn later how to change that. So now I'm going to go to the blank sheet.

Now we're ready to create our filled map or choropleth map. So we want to—in your field list—select the Country/Region field and hold down your Control key and select State/Province, and then you're going to click and hold on either one of those selected and drag to Detail in the marks card. Now we're going to use show me, and on the show me, notice the map that is selected has the highlight around it; that's what's recommended; that's a symbol map; that's like what we've created already. And then the one to the right of it, it just says Maps when you hover over it, and you're going to choose that, and that is your filled map. And now we're going to go back to Background Layers for a moment. So we're going to go Map menu, Background Layers, and what I want to do on—I want to uncheck the State/Province names; we're going to make them show up clearer on the map, and then we can close our Background Layers pane, and we're going to drag the State field—the State/Province field—to Label on the marks card. I actually meant to say drag it to Label on the marks card. So I've adjusted mine; um, you can just drag your repeat of State/Province from Detail into the Label box, and so they show up a little bit more clear on the map as opposed to getting it from the background.

Now we want to get a count of customers for each state in our map, and in order to do that, we're going to create a—a calculated field—and we're going to use it to apply both color and detail to our map. So we can go up to the Analysis menu, and we're going to Create Calculated Field. Now it would be ideal if we look over at our field list; we have Customer First and Customer Last because we split the Customer Name field, and we don't have like a Customer ID field, which would make each customer unique. So this is not going to be an accurate calculation, but it's the best I can come up with this data set. So the first thing we're going to do is we're going to just name the calculated field Customer Count, and then we're going to use the distinct count function. So start typing Count, and you have both Count and COUNTD; we want to select COUNTD, so that is the distinct count; it will only count each item once even if there is a repeat, and that's why this is not going to actually be accurate because we don't have a Customer ID column. So you need to make sure you're inside the COUNTD parentheses, and you're going to start typing Customer and choose Customer Last. And so if you had clicked anywhere and you were outside the parentheses at the bottom, it would say in red, the calculation is not valid. So now we're good with our calculation; we're going to click OK, and we have under Measure Names in our field list; we have our Customer Count, and we're going to drag it to Color on the marks card, and we're also going to drag it to Detail on the marks card. So we have it in two places. If I hover over any state, I will see the count of customers in that state based on distinct last name. So we're excluding any customers that might have the same last name, and we get an aggregate Customer Count legend over on the right, and it's just doing that non-stepped coloration. So I'm going to do the drop-down arrow next to that and choose Edit Colors, and I think I want to change it to my—I—I'm fond of my orange-blue diverging, and I'm going to use five steps for my color and click OK. The other thing I'm going to do is edit the legend title. Instead of AG Customer Count, I'm going to do the drop-down arrow and choose Edit Title, and I'm going to just call it—as you can see—Number of Customers, and then just go ahead and click OK. Now it's me—on your marks card—drag your Detail AG Customer Count; drag that to Label. So now we're actually seeing the customer counts on our map, and so we can hide that card for Number of Customers; we don't need it because we can actually see it on each state. And the other thing we're going to do is we're going to go to the Label on the marks card, and where it says Font, we're going to do the drop-down, and you're going to change the font to—actually, you can type in another number there. So we're going to type in a 7; it only goes down to 8—and press Enter. So everything sits better on the map as well. So you can come out of that with the—and go back to Label again—and this time click the ellipsis next to Text, and we want to make that AG of Customer Count bold. So I'm going to select that and do the B for bold and click Apply. So the number should stand out a little bit more on the map, and I'm just zooming in now. You can zoom by using your—um—your arrow; if you have your—your mark set to Zoom here—right, my mark is set to Pan, but if I use my Shift key, it will let me Zoom, and I can still pan. So you have your filled map, and so we're going to name this sheet Number of Customers by State/Province and go ahead and save your file.

So our next lesson is using polygon shapes in maps. Let's go ahead and bring up a new sheet, and I could make this very simple, but I'm also deciding to show you how to do groupings during this lesson. So what we're going to do is—in our field list—we want to double-click Country/Region, and notice it places it in Details on the marks card, and then it generated the longitude and the latitude, and this automatically creates a symbol map right when you—when you do something like that, it defaults to a symbol map. So now we're going to take Sales and drag it to Color on the marks card, and this will automatically change it to a filled map. So the last one, when we did our choropleth on the last sheet, we use show me to change it to a filled map, but if you drag a measure to Color, it will automatically make it a filled map. If we add a—if we had added a dimension to Color, it would be a symbol map. So let's drag Sum of Sales from Color to Detail in the marks card; we're back to a symbol map by doing this as well. So now we want to create groups using the United States—the states in the United States. So what we're going to do—in our field list—and I'll—we'll do the first one together, and then I'll have you do the subsequent groups on your own. So, in our field list, we're going to right-click on State/Province, and we're going to hover over Create and choose Group. So notice up at the top, it gives it a name of State/Province, and then Group (in parentheses), and we're not going to change that, and we want to create groups that represent the regions in the United States. And so we're going to just use the five regions: West, Southwest, Midwest, Northeast, and Southeast. And we'll do the West region together, and it's going to have nine states in it. I will—after we do this one together—you'll have a slide showing you the other regions that you're going to create, and you're going to create them all in this box. And actually, we'll do the first two together to make it a little bit easier. So we're going to start with the West, and what we want to do is we want to start selecting the states that we want in the West region. So—and I'm from top to bottom here—we're going to select California, and I'm just holding down my Control key, and we're going to select Colorado, and then we're going to go down to Idaho, and then I'm going to scroll down until I

See Montana, and then we want Nevada. Scroll down some more: Oregon, we want Utah, Washington, and Wyoming. So I've been using my control key to select them, and I'll read them out again from the top: California, Colorado, Idaho, Montana, Nevada, Oregon, Utah, Washington, Wyoming.

So once you have those nine selected, we're going to click the group button, and notice it puts them all in the group. It's showing California, Colorado, Idaho, and six more, and that's already selected. So we're going to name that West and press enter. And then what you could do, because you're going to be creating more groups, you can collapse West, and notice all of the states that we selected for West are not in the list; they're underneath the West group.

So let's do our second one together, and then you'll be able to do the other three on your own. So this one is going to be our Southwest Group. Starting from the top: Arizona. We're going to scroll down until we see New Mexico and control-click it. Then we want Oklahoma and Texas. We're going to click the group button, and we're going to name this South West, press enter, and collapse that group as well.

So now I'm going to put a slide up for you so that you can create the rest of the groups on your own. Here's the slide you can reference for creating the Midwest, Northeast, and Southeast groups on your own. I've included the number of members in the group because at the end, after you select everything, it shows you the first three and then plus however many more, so you can double-check that you have all of them that you need. And just a note at the bottom: you're not doing anything on the excluded column; um, it doesn't include Alaska; we're excluding District of Columbia and Hawaii on purpose there. So go ahead and create your three groups, and you can pause the recording to keep the slide on the screen.

So now that we have our groups created, we want to put everything that we did not include into a group; into a group it will create called Other. So we're going to check the box underneath the group button that says Include Other, and it grouped all of the provinces; it also has the District of Columbia in there, and that's fine, and we're gonna click OK at the bottom.

So now you'll notice in your field pane that you have a State/Province group, and we're going to drag that to the color box on the marks card. And so if we didn't include Other, we'd have a longer Legend here because it would list all of those things that we excluded with their own colors. And now we want to change the type of Mark from Automatic to Map, so the colors will fill the map based on the regions.

Now a couple of other things that we want to do: let's go over to our Legend on the right and do the drop down and choose Edit Colors. I'm going to choose a different palette. All right, I think I'm going to go with the orange gold palette this time. No, I won't do that one; I'll do the Summer palette. Hmm, can't seem to make up my mind here, so I'll figure out what palette I want while you figure out which palette you want to use. So My Mind Is Made Up, and I assigned the co-the colors that I want it to the data item, and I'm gonna go ahead and click Apply and then OK. And I'm going to drag State/Province—not the group, but State/Province—from the field list to Label so that they show up better on the map, and then I'm going to go to Label and adjust the font to seven point, like we did previously, so it fits better.

Now, if we'd want it, we could have put the regions in text, but since we already have the legend on the right side, that's not necessary; it's better to have the states in there as the label so you can see them clearly on the map. Now the only thing that we need to do is to change that State/Province group, or State/Province; we can change the shape of it to polygons. So we'll do the groups. So I'm going to click on State/Province group; we changed it to Map; go back to your Marks drop down and choose Polygon, which is a really different way of looking at everything. So that would be an example of using polygons on maps. You can hover over each part of the polygons and see the same data as you did before.

So let's go ahead and save this sheet, and we'll call it, um, Sales by Region, just to keep it simple. Our last lesson in this module is more on customizing Maps. So what we're going to do for this one, it's—let's go ahead and drag our State/Province group to the Filter Shelf, and then we'll leave it; we'll just click OK at the bottom, and then we're going to right-click on that filter and choose Show Filter. So this way we have the State/Province filter at the top. So if an end-user—I'm going to uncheck all there, and the map disappears—if the end-user just wants to see the West, they can do it like that. And I'm going to re-check all, and now let's go back to our Map menu so we can get back to our background layers, and let's change the style for this one to Normal, and then under Background Map Layers, let's choose Cities. We're going to check Cities, and we can close that pane now. And actually, I'm going to collapse this down a little bit; I want more room for my map. So as you zoom in on the map, you'll start seeing the cities and every state. Go ahead and save your file.

We started Module 5 by reviewing the geographic roles from the Metadata Grid in Data Source View, and we didn't have to change or create any, but you know where to go if it's necessary for you to do so. And then we started placing marks on a map by using Show Me to create our first map, a symbol map. You learned a little bit about the hierarchy for location and so on, and you also learned how to delete a pill. We use Sales values as the size of the circles on the map, and we use State as coloration on the map. You also learned how to hide a card during that lesson. We moved on to overlaying demographic data, so you learned how to add background layers to a map and to save them as a default for all future maps that you might create in the workbook. You learned how to address the Address Unknown flag in the bottom right of the map; we did that by filtering. We also were able to show the population at the state level on that map by adding a data layer to it. You learned how to select a palette, a diverging palette, and we changed the background style of the map; my favorite is Satellite, but I went with Outdoors on that one. And then we got rid of—oh well, I already discussed that—we we got rid of those Address Unknowns by filtering.

We moved on to creating a choropleth map, which is a filled map; sorry about that slide there. And we could do it a couple of different ways; it depends on what where you put the measures in the map, whether it's going to be symbol or filled, or you can use Show Me for that as well. So we got rid of some background data layers, um, and you learned how to—even though the states show up on the map, they're kind of dimmed out—so what we did is we added State to Label and change the size of the label to make it more readable. We created another calculated field here, which was not accurate, but it served our purpose, where we did a distinct count on the Customer Last Name, and we use that calculated field to provide color and detail to the filled map.

So in the next one, Lesson 5, Using Polygon Shapes, I took you the long way around; I had—I gave you some opportunity to learn how to create groups and how to use them, um, and we use those groupings as coloration on our map, and we also then change the shape on the Marks card for Polygon, so each point is pointing to a bit of data. Lastly, we ended up doing some more map customization, which we did throughout in this extensive course. We started by connecting to a variety of data sources; in particular, Text, Excel, and Access database data sources. We did more charts; This Time, bivariate charts. So we created a bivariate table, and you learned that tables are good as companion visualizations instead of main visualizations; they can give more detail to another visualization. We created Scatter Plots; you learned how to swap rows and columns and add trend lines and how to select and apply color palettes, and we started using dates as well, and you learned how to change the date from year to quarter or month or week or day, so on and so forth.

The next module is where we created multivariate charts. So we created facets, which are also known as small multiples; area charts, which are like filled-in line charts; we created bullet graphs, dual-axes charts, and you learned along the way two different ways to create those. We created Gantt charts, and we also created a heat map. We started creating Maps, so you learned about how to set Geographic roles from Data Source View, and we reviewed them in the Metadata Grid. We placed marks on a map, and then we got to overlay some demographic data from background layers, so we added Coastline and water labels, and we were able to do that very easily. We also added another background layer showing the population, the U.S. population from 2018. We moved on to creating choropleth Maps, which are filled Maps, and we created one also using polygon shapes, and we spent some time customizing Maps.

Hello everyone, I am Trish Connor Cato. Welcome to Tableau video training course. Tableau is a visual analytics platform that makes it easier for people to explore and manage data and faster to discover and share insights that can change businesses and the world. It helps people and organizations be more data-driven. Tableau supports data prep, analysis, governance, collaboration, and more. As a continuation of the Tableau introduction video training course, this Advanced course is designed to boost the student's competence when it comes to creating visualizations and creating dashboards. The course goes into considerable detail on these two subjects and explores, among other areas, how to create a range of different charts, Maps, user-defined Fields, as well as a host of advanced features and abilities. We'll start by connecting to a variety of data sources; this will leave you with some great workbooks to practice on and develop on your own after this course. We'll switch focus to calculating user-defined fields and use predefined Tableau functions along the way. We'll move on to customizing visualizations and utilizing some cool features to distribute your work and export data. We'll also explore Advanced features that will make your visualizations more user-friendly. Module 6 is all about calculating user-defined fields, and we have nine lessons in this module. We're going to start by using predefined functions; we've already used two when we created a calculated fields in here; we use COUNTD, which is distinct count, and we also use DATE DIFF, but you're going to use more in this module. Then we're going to move on to calculating percentages and showing totals. We'll use more predefined functions when we apply the IF THEN logic and apply logical functions. You're going to learn how to show the percentage of totals, discretizing data, manipulating text, and then aggregating data. So you've already seen this in action, and that's when you created a calculated field using a predefined function; the editor window will let you know if the syntax is incorrect for the function you're using, which is extremely helpful. I've also included on this slide a link to all of the functions that are available in alphabetical order in Tableau, and then another link for all the logical functions that are available in Tableau.

So in Tableau, I'm back on the Number of Customers by State/Province map, and we're going to create another calculated field here using the predefined MAX function. So we want to see the maximum amount of sales per State/Province on our map. So we're going to go up to the Analysis menu and choose Create Calculated Field, and we're going to name this one Max Sales. Now, if you notice—and it was open online when I first came in here—but on the right side you have a right-pointing arrow, and that is an alphabetical listing of all of the predefined functions in Tableau. So as you scroll through that list, you'll notice that that's where we got COUNTD earlier that we use distinct count, and we also use DATE DIFF from that list. This time we're going to scroll down until we see the MAX function and double-click it. So, and also on the right side, it gives you the Syntax for it, so you can give it either one expression or multiple Expressions separated by a comma; it tells you what it will return, and it always gives you an example, and that example is exactly what we're going to use. So in the editor window, it's already flashing inside the parentheses; we're going to start typing Sales, and we're going to get Sales in there; our calculation is valid, so we're going to go ahead and click OK. In order to see the Max Sales amount on our map, we're going to go to our field list, and under Measure Names, we're going to click and drag Max Sales and we're going to drop it on the Label in the Marks card. So now you have both on the Label; you have your count of customers and you have the maximum sales amount for that particular state. So let's take a look; let's hover over North Dakota. So they had two customers in North Dakota, and the maximum sales amount for that state is 705 dollars. And let's go ahead and save, and I'm going to go back to the last sheet, Sales by Region, and bring up a new sheet. On our new sheet, we're going to create a table, and then we'll calculate percentages of total sales in our table. So what I'm going to do is I'm going to select Order Date, the Order Date field, and I'm going to put that in Columns, and I'm going to leave it on here, and then I'm going to use State/Province under Location—not the group that we created—but I'm going to do State/Province in Rows. Then I'm going to drag the Sales measure to the Text mark on the Marks card. So we have our basic table structure here. Now, let's—under Location—let's drag State/Province to Filters, or excuse me, we don't want State/Province and Filters; drag Country/Region to the Filter Shelf and filter it just for the United States. So I put a check mark in front of US and I clicked OK. So we just don't have the Canadian provinces showing in here in this table. Now we're seeing the actual sales total for each year for each state, and we want to see the percentage of the sales total, and we want it by each year. So to do that, we're going to go to the Analysis menu; you're going to hover over Percentage Of, and it gives you all of these choices. So since our years are in Columns and we want it by year, we're going to choose Column. So what's happening here? Let's look at Alabama for instance; it's saying the Alabama sales total for 2019 is 1.27 of the total sales for 2019. So that means that each column grand total would be 100, and we can choose to show the grand totals here, and that's what we're going to do. Now we're going to go back to the Analysis menu, hover over Totals, and choose Show Column Grand Totals. And now if you scroll all the way down at the end of your table, at the bottom of your table, the last row is Grand Total, and all of them equal 100 percent because we did the percentages by Column. Let's go ahead and add another field to this table; grab the Category field and drag it to Rows to the right of State/Province. And since we are still doing the percentage by Columns, so it's now showing—it's just broken up in categories now, right? So the categories are there, but at the bottom you still have your 100 percent for each column's grand total. So you can add more detail unless you change the way the percentage is being calculated; like we're not going to change it; it's still going to calculate to 100 percent by the Column. And we'll name this sheet, and I'm using the percent symbol, so Percent Sales by Category and State, and I'm going to save.

Now we're ready to move into applying the IF THEN logic, and so we're going to be creating more calculated fields in this section using some predefined functions, and so we're going to bring up a new sheet for this, and on this sheet let's go ahead and put Order Date in Columns, and we're going to do Profit to Rows and Sales to Text, or Label rather, and using Show Me we're going to convert this into a text table, so we get the profit and the sales by the year of Order Date. And I'm going to go ahead and collapse Show Me. Now we're ready to create our calculated field, so I'm doing it from Analysis, and this one we're going to name Profit Status. And so with this one we're going to just type it in, and then I'll explain it to you, and we'll use our shortcuts so we're not making too many typos. So I'm going to actually collapse this list of predefined functions on the right side, and we're going to type the letter I, and we're going to get the IF function in there; we'll get it all in, and then I'll explain it. And then we want the Profit field, so I'm going to start typing Profit and select that measure off the list, and then I'm going to type the greater than symbol and a zero; start typing the word THEN, and it is a predefined function, so go ahead and get it in. And now we need to put the next thing in single quotes; it's a text value that doesn't exist in our data set, so we're going to do a single quote and type the word Profitable and then close the single quote. Now you're going to start typing the word ELSE, and you want to grab ELSEIF off the list, and we're going to use the Profit field again, so I'm going to go ahead and grab that measure, and as soon as I see it on the list I stop typing; I've made so many typos. We're going to do an equal sign here and a zero, and we're going to start typing the word THEN again and grab it from the list. Now at this point I'm going to press enter; I don't want to scroll across to have to see the rest of the function, so I'm splitting it up, and because I press the enter it tells me the calculation contains errors, and that's because it's not complete at this point. So I'm on the next line, and in single quotes I'm going to type Break Even, and then I'm going to start typing ELSE, and I'm going to grab ELSE—not ELSEIF this time—just ELSE, and in single quotes I'm going to type the word Loss, and then even though it won't force me to scroll, I'm going to press enter again and then start typing the word END, and we're going to grab END. I like my IF and my END to be at the same margin level so I can make sure that I have it there, but it's not necessary to do that or even to break it down by, you know, using Enter at all; I just don't want to have to scroll across to see a full function. So this says: If the Profit value is greater than zero, then show the word Profitable; ELSE IF, meaning if it's not greater than zero but it equals zero, then show the word Break Even; if neither of those is true, so it's not greater than zero, it's not equal to zero, then we want it to show the word Loss. Let's go ahead and click OK. And what we're going to do is we're going to drag our Profit Status field to Rows in front of Measure Names. So now you can see based on the value of the Profit, it's either Break Even, Loss, or Profitable based on our IF THEN ELSE IF THEN ELSE structure that we used. And we're going to name this sheet Profit Status by Year, okay, and save. Let's make a copy of the Profit Status sheet; so again I'm using my control key, clicking and holding, and just dragging it slightly to the right, and I'm on my Profit Status by Year Two sheet now. So we're going to create another calculated field here; let's go back up to Analysis and grab it, and this one we're going to name Simple Profit Status. Now I'm going to show you something; if you expand—so you can see the right arrow—and you see all—

Of the fields that are available, go ahead and scroll down until you see the IF function and select it. And if you look on the right, you can see that that tests a series of expressions, returning the "then" value for the first true expression. So we did IF, and then an expression, then do this if that expression is true, then this if it's not true, go to the next one, which is ELSE IF. Evaluate that expression; if that's true, then do what is after that. And you're not limited to how many ELSE IFs. I believe I usually limit myself, in some other languages I use, to seven, but you can have a huge long one if necessary.

Now I want you to click on the one that says IIF. IIF stands for immediate IF, and this is the one we're going to use for this simple profit status. It checks whether a condition is met, and it will return one value if true, another value if false. You can have an optional third value or NULL if unknown. So it only allows you to have three different things in this one, and so it is limited. And so I'm going to go ahead and double-click immediate IF. We'll build it, and then I'll explain it. I think this one is a lot simpler than the one we did previously.

So we're going to use the profit field here, and then we're going to do a greater than symbol, and we're going to do 0, comma, and now we're going to do, in single quotes, oops, the word "profit," close the quotes, another comma, and in single quotes, the word "loss." So we're telling it: if the profit is greater than zero, display the word "profit"; if it's not, display the word "loss." And we're going to go ahead and click OK.

And now what we want to do is we want to swap out our profit status calculated field for the simple profit status one. So I'm going to go ahead and delete the profit status pill that's in the rows, and I'm going to drag simple profit status up to rows before measure names. So now we're either getting profit or loss—no break even for this one. And we're going to rename this sheet to just "Profit or Loss," and as usual, save.

We're going to use another logical function here; we're going to use the logical function "AND," and we're going to nest it within the IF THEN construct. So let's bring up a new sheet for this, and on this sheet, let's drag Sales to Columns and Quantity to Columns. And the first thing we're going to do is we want to make both of these dimensions. So right-click on Sum of Sales and Columns, and instead of making it a measure, we want it to be a dimension. Do the same thing with your Sum of Quantity.

And so now what we want to do is grab our Market Segment field and drag it to Rows. So we're seeing Sales and Quantity for market segments. Now we want to make this a dual axis, so we're going to move Quantity from Columns. I'm going to just click and drag it onto the Sales portion of the graph, and when I see the dashed line, I'm going to drop it. So now I have a dual axes chart. And what we don't need is the Measure Names card over on the right, so I'm going to do its drop-down and hide that card. All right, so now we're ready to create our calculated field, and it's based on the Market Segment field. And so just another way—so far we've been using the Analysis menu for this—but what we're going to do this time, in our Fields list, right-click on Market Segment and choose Create, and then Calculated Field. So when you do it that way, it includes the field already in the editor. We're going to name it "Consumer Segment," and we're going to click before the Market Segment in its open bracket in the editor window, and we're going to start typing IF and grab it from the list. So you're going to press your END key to get to the outside of the outer bracket on Market Segment, and we're going to type in equal sign, and then single quotes, we're going to type "Consumer," because it's a member of the Market Segment, so we need to put it in single quotes. And now we're going to use the logical function AND, so I'm going to start typing the word AND, get it in there, and then we're going to go for the Sales field. We want greater than or equal 1000, and I'm going to use the logical function AND again, and now this time I'm going to press ENTER so I don't have to scroll across. We're going to grab the Quantity field and we're going to choose greater than or equal 5.

Then we're going to use the THEN function, in single quotes, type the word "true," and then we're going to use the ELSE function, and then single quotes, type the word "false." And so I'm getting a "My calculation contains errors." Let's see, and that's because I need that END function. So I'm going to do ENTER and then start typing it, grab it, and now our calculation is valid. So we gave it multiple things to test, right? The Market Segment has to equal Consumer, and the Sales has to be greater than or equal to a thousand, and the Quantity has to be greater than or equal to five. If all of those things are correct, it will give us the word "true," or else it will give us the word "false." So let's go ahead and click OK.

So now we're going to drag our Consumer Segment to Rows in front of Market Segment. And so notice, first of all, since we said that it had to be Consumer, right, the only TRUE is showing Consumer, and it's only showing those things that meet the criteria that the Sales are greater than or equal to a thousand and the Quantity is greater than or equal to 5. Let's grab Quantity in our field list and drag it to Tooltip on the Marks card. So now, in the TRUE section, if you hover over any of the marks, you'll see that the Sales are greater than a thousand and the Quantity is greater than or equal to five. And so the other thing we can do is let's right-click on Market Segment and show filter. So that's a way of getting a field in the Filters shelf as well as showing the filter on the right at the same time. In the Filter shelf, we're going to do the drop-down arrow and edit filter, and let's just get rid of Corporate and Home Office on this one, and apply and click OK. So we're just seeing the TRUEs and FALSEs for Consumer. If we hover over any of those marks on FALSE, like the first one, the Sales are not high enough, and nor is the Quantity, right? So they're still in the right segment, but they don't meet all of the criteria. And over on your Filter card on the right, we can go ahead and click All again if you want to see all. And we decide that we're going to hide the field label for Rows. So I'm going to right-click on either Consumer Segment or Market Segment and just hide field labels for Rows. This sheet we're going to name "Consumer Sales," we'll put "greater than or equal 1000," oops, and "Quantity," I'm using QTY, "greater than and equal to 5." And so the other thing I decided is let's go ahead and filter it by Consumer again. So I'm going to go ahead and use the card on the right to just filter by Consumer, and then I'm going to right-click on the filters in the Filter shelf and uncheck Show Filter. So we leave it like that. So let's go ahead and save.

Our next lesson here is discretizing data, which just basically means changing a field from continuous to discrete. And so we're going to go to an existing sheet for this one. We want the Days to Ship by Subcategory and Category sheet. So I'll point out that we have the Week of the Order Date showing on the x-axis at the bottom, and it's a continuous unbroken line. We're going to change that. And then we're going to do that is we're going to right-click on Week of Order Date in the Column shelf, and down toward the bottom, we're going to select Discrete instead of Continuous. So the whole thing flips. Now you don't have an x-axis, and each week is acting as a label at the top of the visualization. Now, to me, this makes the visualization a lot more complicated to read, so we're going to right-click on the Week of Order Date in the Column shelf again and change it back to Continuous.

Now let's go to the previous sheet, the Sales and Quantity by Quarter sheet, and we'll do a similar thing with this one. And we have a dual axis here, so let's see what happens if we change Quantity to Discrete. So I'm going to go up to the Columns shelf and right-click on Sum of Quantity and change that to Discrete. And now you're seeing the quantities kind of like all grouped together, and we're going to change that back to Continuous as well. And then we have to make it a dual axis again, so I'm going to grab the Sum of Quantity off of the Column shelf, drag it over the Sales portion of the visualization, and when I see the dashed line, drop it. Or we could have done Control Z to switch it back as well. Go ahead and save your file.

And so let's go back to our very last sheet in this workbook, and that would be our Consumer Sales greater than or equal to a thousand sheet, and then create a new sheet. And on this sheet, we're going to use a string function to manipulate text. So let's go ahead and grab Product Name and put that in Rows, and we'll put the Sales field in the text box on the Marks card. So we have a list of all the product names and their sales values in a table format.

So now we're going to right-click on the Product Name field in the field list, we're going to hover over Create, and we're going to create a calculated field again, and we're going to name this one "Starts with 3M." So Product Name is already there because of the way we came in here, and we're going to click in front of it, making sure you're outside of the opening bracket, and we're going to start typing the word START. So you'll notice the function STARTS WITH, that is a string function or a text function. Now the thing is, when I selected it, right, it didn't include Product Name in a parenthesis, so I'm going to grab Product Name and do Control X, click inside to parenthesis, and Control V. So now it's in the right place, after Product Name, still inside the parentheses, but after its closing bracket, we're going to do a comma, and then in a single quote, we're going to type "3M." So we want this one to show product names that begin with 3M; we want to focus on 3M. And we're going to choose Apply and click OK. So let's drag our Starts with 3M to the Rows shelf in front of Product Name. And so you'll see it gives us either a TRUE or a FALSE. If I go ahead and sort that Starts with, it brings the TRUE up top, and you'll see all of the product names that begin with 3M, and then we have all of the product names that do not begin with 3M listed next to FALSE. So STARTS WITH is a string function in Tableau, and what we're going to just do is we're going to name this sheet "3M Sales versus Non-3M Sales." This STARTS WITH string function that we used in the previous exercise didn't actually manipulate the text; it really served more as a filter.

So now we're going to use one that actually manipulates the text, and we're going to do it on the Percent of Sales by Category and State table. And so we want our states in this table to show up in all capital letters. So we're going to create a calculated field using a predefined string function to make that happen. Let's go up to Analysis, and we're going to choose Create Calculated Field, and we're going to call it Upper State, and in the editor we're going to start typing UPPER and grab the UPPER function, and we're going to use our State/Province field, not the group for this, and go ahead and click OK. So now we're going to go up to the Rows shelf and delete our State/Province pill, and we're going to drag Upper State to the Rows shelf before Category. So now all of our states are appearing in uppercase in this table. So that one actually does manipulate the text. And you can go ahead and save.

Our last lesson in this module is aggregating data. Now you've seen that Tableau automatically aggregates measures when you use them in a view. I'm on the last sheet in this workbook, and you can see that we use Sales, the Sales measure as text here, and it automatically aggregated it to SUM, and we could change that if we wanted to. When I do the drop-down on it, I could change it to a dimension, but I want to leave it as a measure, so it does the aggregate. Let's go ahead and create a new sheet, and on this sheet we're going to put Market Segment, the Market Segment field in Rows, and we're going to drag Product Name to Columns. So when we do this, because there's lots of product names, right, it gives you information; it may contain up to 1849 members, and a recommended maximum is a thousand. We're going to choose to add all members, and what we want to do is we want to do an aggregate. So on Product Name, which is a dimension, we're going to do the drop-down in the Column shelf, we're going to hover over Measure, and we're going to choose COUNT. So now we're seeing the number of products per each market is what we're looking at there. So we were able to take a dimension and change it into a measure, and notice that the limited list it was COUNT. Let me go back here and look, yeah, so it's not going to let you try to do a SUM of Product Names or anything like that; you just have MIN, MAX, COUNT, and COUNT DISTINCT. So we're getting a count of Product Names. So that's how you can aggregate a dimension is by changing it and using one of the measure aggregates. And we're going to go ahead and name this sheet "Count of Products by Market Segment" and save your file.

In Module 6, you were able to add to your repertoire of predefined functions, and we started doing that in Lesson 1. We used another predefined function, and we had already used two before we got to this module. Then we moved on to calculating percentages and then showing totals, and we did calculating percentages by columns, so we had them by year. And then we moved into applying IF THEN logic, and we added on to it by applying other logical functions, like using the AND function to give more conditions. Lesson 6 is an error on this slide; that was already covered in Lessons 2 and 3, so that should not be on the slide, and my apologies for that. We moved into discretizing data, which you can change a measure into a discrete field versus a continuous field, and you saw the effect of that, and we changed it back. The next lesson was manipulating text; we did two different functions for this, one of which didn't actually manipulate the text; it kind of served as a filter, and the second one did manipulate the text by making it uppercase. And then you learned how to turn a dimension into a measure for the purposes of aggregating data.

Now we're going to get into Module 7, which is customizing and saving, and I'll mention now before I go over to lessons with you that we've been doing some of this stuff along the way during this course. So Lesson 1, you'll learn how to add a title and a caption. In Lesson 2, you'll learn how to modify font sizes and colors. We already did a modification of a font size, but we'll review again. In Lesson 3, we've been applying various marks to our visualizations, but you'll get some more hands-on practice with doing it, and I'll probably have you do that once by example from me, and then the rest on your own. We've been adding colors and labels for our marks on our maps, but we'll do more of that, and not only on our maps but other visualizations. We used a reference line to create a box plot earlier, but we'll add a different reference line to a visualization in this module, and then you'll learn how to print to PDF, how to save a packaged workbook, and how to create a workbook data extract in this module.

So we used a box plot reference line earlier, and we accessed it by right-clicking on the y-axis, but these are the three other types of reference lines that you can add to a Tableau visualization. So the lines themselves are used to identify a specific value, region, or range on a continuous axis. You can add a reference line at a constant or computed value on the axis, and then you have bands, which shade the area behind the marks in the view between two constant or computed values on the axis, and in the distributions, add a gradient of shading to indicate the distribution of values along the axis, and a distribution can be defined by percentages, percentiles, quantiles, or standard deviation.

The first thing we're going to do is add title and caption. So so far, whenever we name the sheet, it also gives us the title, and I mentioned that we can separate that, right? So for the sheet tab, what we're going to do is rename it, and we're just going to call it "Pie Chart," and it updated the title. Well, this time we're going to go up to the title, and we're going to right-click and we're going to choose Edit Title, and this way you'll notice it defaults to the sheet name. We're going to select that placeholder, and this is where we're going to name it "Sales by Market Segment," and click OK. So now our sheet name differs from our title. If you want the process, would be if you're going to do that often, is go ahead and name your sheet and then edit the title. The other thing we want to add to this visualization is a caption, so we're going to go to the Worksheet menu for that, and we're going to click on Show Caption. So notice the caption is showing at the bottom, and we can right-click on it down there and choose Edit Caption, and we're going to change the whole thing. Let me move this box over so I can see what I'm going to talk about here. In the caption, we're going to say, "Would really like to increase Home Office sales. Any ideas?" Question mark, and click OK.

And then we decide that we want the title of our visualization to be in a larger font, to be bold, and to have a font color. So I'll start by showing you the way you're not going to do it, and the way you're not going to do it is by right-clicking on the title and choosing Format Title. Notice that title pane that opens, the format pane that opens on the left only allows you to address the title and captions shading and border, so that's not the way that we're going to do this. We're going to do the X to close that format pane. The way we are going to do it is by right-clicking in a blank area of your visualization and going to Format from there. So here you can see under Default that you have the ability to format the title here under Default. So we're going to click on the drop-down arrow to the right of Title. Let's make it 18 points, we'll make it bold, and I'm going to go ahead and give mine an orange color, and then I'll click away from that.

So I'm back on the Count of Products by Market Segment sheet, and for this one we're going to apply another mark to this visualization, and so we can do that a couple of different ways. Let's grab our Sales field from the field list, drag it onto the graphic, and when you see the dashed line, let it go. So we get a dual axis thing. Now notice it obviously, because we did that, I'm going to go to Show Me; it changed the chart type for us when we did that. And so what I'm going to do is I'm going to change it back to a table here, and actually, no, I'm going to change it to a horizontal bar, and we'll leave it on separate axes for right now. So you can apply more marks as necessary, as you see here. And the other thing we can do is add colors and labels, which you've seen already. So we decide we don't want to see the Market Segment label, so I'm going to...

Right-click on that, and I'm going to choose "Hide field labels for rows." Then I want to change this count of product name down here, so I'm going to right-click on it, and I'm going to choose "Edit axis."

When the "Edit axis" box pops up, I'm going to go down to the bottom where it says "Title," and I'm going to change it to "Using the pound sign to represent number of products." Then I'm going to close that "Edit axis" box.

Now we're going to do something that we've done previously as well. We're going to go to the label box on the marks card and check "Show Mark labels," and so we're getting that showing for the products. Now, if we want to show the labels for sales on your marks card at the bottom, click on some sales. Now click on "Label," "Show Mark labels." So whatever you have selected over here is what it's going to perform that action on.

To add some color to the chart, it's going to work pretty much the same way, except we're going to use the color mark for products. I have the count of products selected here in the marks card. I'm going to click on "Color," and for my products, I'm going to do an orange color. Then I'm going to select sales and assign a color to your sales bars that you wish to have.

Lastly, we're going to edit the title. So I'm going to get rid of the sheet name placeholder here and I'm going to use the pound sign for "Number of products and sales by market segment," and click "OK." So now I'm back on the "Sales by state" map, and to show you how you can change your mark sizes, so notice we have on this map, if we look at our MOX card, we have the sum of sales is the sizing that's being used, and it's based on the circle. So we're going to click on the "Size" panel on the marks card, and we're going to increase the size of our marks just a little bit, and you can see how it translates to your map.

Now we'll go back to our "Account of products by market segment" sheet, and we're going to add a reference line to the products portion of the visualization. So I'm going to right-click on the axis there where it says "Number of products," and "Add reference line." And so we've used the box plot, and I showed you the slide that showed you the difference between a line, a band, and a distribution. For the first one, we're going to leave it on "line," we're going to do the scope of the entire table, so that entire visualization, and notice it's doing an average count by default of product name, so it's going to show the average on the reference line, and we're going to leave it on "line only," and we're going to click "OK." So you'll see in your "Number of products" bar graph that we have that average reference line, and when we hover over it, it's giving us the average number of products. So you can clearly see which segments are at close to average, way below average, or above average.

Now let's right-click on that same "Number of products" axis again, and we're going to remove the reference line. Right-click again, "Add reference line." This time we'll do a band, we'll do it for the entire table, and we're in this time the band is doing the maximum count of product names, or the maximum count of products, right? We're going to change that to average as well, just for consistency. And without even clicking "OK," you can see that it shades the area. It's saying here, I think that says minimum, it's overlaying a label, and then the average where the average would be. And if we hover over that band, I have to do "OK" for that. If we hover over the band, it doesn't show a tool tip, but if you hover over minimum or average, it will give you those values. We're going to do this a third time, so we're going to right-click on the axis, remove the reference line. This time I'm going to have you add the distribution one, thank you, using the same scope. And so with this one, it's going to show 60 or 80 percent of average, and we could change that if we wanted to. So this is where you can use percentages, percentiles, quantiles, or standard deviation. So what we're going to change it to, we're going to leave it on percentages, but we're going to change it to 50 and 80, and leave it on average, and then we'll collapse that, and you'll see it update. And we're going to go ahead and you can actually see without clicking "OK" where 50 of averages and we're 80 percent of averages. Now just to leave one on here, let's go back and change it to "line" for the entire table, and then click "OK." And you want to go ahead and save at this point.

So in Tableau, you can print an entire workbook or an individual sheet to a PDF. And so we're going to do that on the same "Count of products by market segment" sheet, and we're going to do that by using the "File" menu. And if you look down, you'll see "Print" and "Print to PDF." We're going to use "Print to PDF," and this is where it gives you the choice to select the entire workbook, the active sheet, or if you had multiple sheets selected, it would print those. Let me show you how to select multiple sheets. We're going to cancel that, and we'll click on "Profit status by year," and then hold down "Control" and click on "Count of products by market segment." So just like selecting non-contiguous sheets in Microsoft Excel is how that works. Now we're going to go back to "File," "Print to PDF," and this time "Selected sheets" is going to be available for us. And you have your paper size and your orientation on the right, and then I'm going to leave both of the options selected, and I'm going to go ahead and click "OK." So it wants to know where I want to save the PDF, and I'm just going to put it on my desktop. So I'm going to navigate there, and it wants to give it the name of the entire workbook, and I'm going to change the name there, and I'm going to say "Annual profit status and count of products and sales values by market segment," and I'm going to go ahead and save it. I had the setting for portrait, and I probably should have done landscape here. I also had it set to open the PDF, so I'm looking at three pages here. I have my "Profit status by year," it had to split the number of products and the sales onto two separate pages. So if I had done landscape, it would have done a better job of that, but then you can send that PDF, you can distribute it to other people.

The next thing we're going to do is save a packaged workbook. A packaged workbook, when you save the packaged workbook, you can distribute it to other users who have the ability to open it if they have Tableau Desktop or Tableau Reader. And so what it does is it will save the workbook and a copy of any local file data sources and any locally saved background images that are used in the workbook file. Once it's packaged, the packaged workbook is no longer linked to the original data sources and images. So it creates a package for the users that you're sending it to that includes a copy of the workbook and its package with your locally saved files and images, so they'll be able to use it just like you're able to use the workbook. So in order to do this, we're not going to use "Sample Superstore live" because this is a built-in Tableau workbook, and we don't actually have the locally saved files that are producing the data. So we're going to start by closing "Sample Superstore live." So I'm just going to the "File" menu, and I'm choosing "Close." And then we're going to reopen a workbook that we created earlier in the course. So I'm going to go to the "Open a workbook" link on the right side of the start page, and we're going to open "Vehicles and pricing" because we have both of those Excel files stored locally, and we didn't create any visualizations in here. If you go to the "Data source" tab, this is the file where we created a join between the two tables so that we can merge the data. So we have information coming in here from the "Vehicles" file, which has that "Inventory" tab in it, and from the "Pricing" file. So we're going to package this because those two files are stored locally for us, and the way we do that is we're going to go to "File," "Save as." Now it's going to take you automatically to your "My Tableau Repository," and we're going to just name it. We don't really have to change the name, but I'm going to change the name by appending the word "packaged" at the end. And notice the default "Save as type" is a ".twb," which is a Tableau workbook. We're going to click on "Tableau workbook" and choose "Tableau packaged workbook," which has the ".twbx" extension, and we're going to go ahead and choose "Save." So now I'm going to go ahead and go to "File" and "Close," and I want to show you something. I'm going to just bring up my file explorer window, and this is my "Workbooks" folder in my "Tableau Repository," and I just want you to see that it has a different icon. So it has like a goldish colored column on the left side of the packaged workbook icon, and the type will definitely say "Tableau packaged workbook." Now you can actually take this and attach it to an email or otherwise distribute it to users that have Tableau Desktop or Tableau Reader, and they would be able to open it. So if somebody sends you a packaged workbook, you want to make sure it ends up in your "My Tableau Repository," "Workbooks" folder. So once it's in your Tableau repository, so we're seeing the tile here because we packaged it. So I'm going to get rid of that tile and the "Vehicles and pricing" tile. If you've moved it to your correct location in your repository, you can use "Open a workbook," and then you would want to open the packaged workbook, and you would have access to what you need to have access to in order to create visualizations. And we can go ahead and use "File," "Close" to close this one again. We can get rid of the tile, and we're going to reopen "Sample Superstore live."

So far, we've been working in Tableau using Live Connections, meaning if we go back to our data sources, like especially the ones we used earlier where we used Excel files and Access files, if we were to go and open those files and make any changes, the changes would come into Tableau automatically and impact your data source and your visualizations. With an extract, it's a little bit different. An extract functions as a batch file of sorts. Let's go ahead and go to our "Data source View," and we're going to focus on the upper right-hand corner where you see that our connection is live, and we're going to do the option button in front of "Extract." So initially it says "Extract will include all data." We're going to click the "Edit" button next to it, and we want it to just include a particular year. So in the "Filter" section underneath the "Filters" box, we're going to click "Add," and we're going to filter by the "Order date" field, and click "OK," and we'll filter by a year. So I'm going to select "Years," and go "Next," and I'm going to check the box in front of 2021, and at the bottom I'm going to click "OK." And now it lets me know that we have a filter on the year of "Order date," and it's keeping 2021, and we're going to click "OK" at the bottom. So now the screen refreshes, and it's telling you the extract includes a subset of data, and it gives you the date and time where you created the extract. And now when you switch back to "Sheet view," it will force you to save your extract file. So notice it's in your "My Tableau Repository," and it's in the "Data sources" folder, and there's the extract from when we connect it to SharePoint. And this one I'll just leave it named "Sample Superstore." It gives the extracts a ".hyper" extension, and go ahead and "Save." So since we switch from live to extract, all of our visualizations and everything that we're doing, we're doing on the extract, and we would have to refresh to get any updated data. So you'll notice I went to the "Profit status by year" sheet, and it's only showing 2021, right? Everything in here is now adjusted for the extract filter that we used, so all of your visualizations would have updated with the extracted information. That's kind of how that works. Now we can go back to the "Data source" tab, or "Data source view," I should say that you access it from a tab. And so we're using "Sample Superstore," we don't have the original files, we can't go and manipulate them and add or extract or delete data or change data in them, but if we were able to do that, that's when you would use the "Refresh" button to refresh your extract. We're going to go ahead, and we're going to do a "File," "Save as" on this one, and we're going to name it instead of "Sample Superstore live," just change "live" to "extract," and then we're going to go ahead and do "File," "Close." If it prompts you to save the changes, say "Yes," and we're going to go back to our start screen. We're going to get rid of the tile for "Sample Superstore extract," and reopen "Sample Superstore live."

In this module, we learned how to separate the title from the sheet tab name by adding a title by editing the title, and then we also added a caption, which shows at the bottom of the visualization screen. And we got into some more of modifying font sizes and colors, and we did that by using the format pane on the left side for the font sizes, and then we also used colors using the color marks on the marks card. We applied more marks to the visualization, we added some colors to those marks and labels, and then we added the three different types of reference lines, which are lines, bands, and distribution, to be able to see the difference between them before we settled on a line. You learned how to print a PDF, and you also learned that your trainer, that would be me, should have changed it to landscape instead of leaving it on portrait. You learned about saving a packaged workbook, which you can share with other users of Tableau Desktop or Tableau Reader, and how they can access it and how the icon is different from a regular workbook, as well as the extension. And we did that by using "File," "Save as." And then instead of working with a live connection, we ended by creating a workbook data extract, which saved a ".hyper" file for us in our "Data sources" folder. And if you're working with an extract and you want to get refreshed data, you have to use the "Refresh" link on the "Data source View."

In module 8, we're going to focus on exporting and saving, so you'll learn how to save to Tableau Server as well as to Tableau Cloud, formerly known as Tableau Online, and you'll learn how to export both images and data. If you want to save your workbook on Tableau Server or Tableau Cloud, you're going to use the "Server" menu to do so. So when you go up to "Server," the first thing it has is "Sign in." You can sign in to either Tableau Server or Tableau Cloud. There you can run an Optimizer, open a workbook that is from either the server or the cloud, and you can publish a workbook. You can also just publish the data source for it, right? And you also have access to Tableau Public from there. So what we're going to do is we're going to choose "Publish workbook," and notice, I'm defaulting to Tableau Cloud. If you have a Tableau Server account, you could just type in the server address and then connect, and it will have you sign in. Now, for some reason, I was able to retrieve from Tableau Server, but I cannot connect to it at this point. But once you connect, you'll get a secondary screen similar to what you're going to see in a moment for when you connect to Tableau Cloud. So if you put in your server address and you could select "Connect," it will prompt you to log in, and then you'll have screens leading you along the way. The only way I can show you the process is via Tableau Cloud, so I'm going to be able to sign in. I've been able to retrieve from my server, but when I'm trying to publish, it's not letting me in. So I'm going to go ahead and get myself signed in to Tableau Cloud here, which used to be called Tableau Online. They're changing the name of it. So let me go ahead and sign in here, and when I click "Sign in," and again the process is very similar for server, so it gives me this "Published workbook to Tableau Cloud," right? And I have some options. So on Tableau Cloud, I actually have a "Tableau training project" that I'm going to select. If you don't have projects set up, you can just do the default folder, and I'm going to leave it the same name as this file. I'm not going to put in a description or add any tags. It's going to send all sheets from the workbook, or I could edit to choose the sheets that I want to publish. My permissions are the same as that folder I have there, and then it says "Data sources." Now this is "Sample Superstore," this is one of the built-in Tableau Data sources, so the actual data source is embedded in the workbook, and we're going to click "Edit" next to that, and I can change it from "Embedded in workbook" to "Publish the data source separately" if I want to. And now it says "One published separately," and when I do that, this green button changes. So let me go back and change it back to "Embedded in workbook," and notice the green button just says "Publish" at that point. If I say "Publish it separately," then it says "Publish workbook and one data source" on that green button. I'm going to show the sheets as tabs. I don't have any external files here, but I would include any external files if it was one of those that we had the files like from the video description, then I would check that box. And now I'm going to click the green button to publish the workbook and the one data source, and it's still in the process of publishing. When it's done, it will give me the "Publishing complete" dialog, and I can share from that dialog. If I wanted to share the workbook at this point, I'm going to go ahead and close that dialog, and I can see all of my sheets. There's a "Data source" tab here, and here's the live connection data source for "Sample Superstore." Um, when I go back to "Views," that's where I see all of the sheets. And so it's in the cloud now, it's in Tableau Online, and I can share it from here. I can edit the workbook, so on and so forth, and it would be similar if we had published to the server. Once it's there, you can allow other users access to it. So whether it's Tableau Server, Tableau Public, or Tableau Cloud, you can access all three of those from the "Server" menu.

Once you've put your workbook up on Tableau Server or Tableau Cloud and you go back to your "Data source" tab, it's going to look a little bit different. So the upper half is showing like the connection information, right, that we just did. So I put it in my project called "Tableau training" on Tableau Cloud, and now on the lower part where your data grid is, I'm going to go ahead and do "Update now," just so the grid repopulates. So just so you know, after you upload to the server or to the cloud, you're going to want to come back to your "Data source" tab and "Update now" or set it to "Update automatically."

In module 7, we learned how to save as a PDF, and we actually saved selected sheets as a PDF, and I said I should have changed the orientation on it when I did that. Another way to get data out of Tableau is to export images, export as an image, or export actual data, and we're going to do that now. So I'm on the "Sales by state" map for this one, and I'm going to go up to the "Worksheet" menu for this, hover over "Export," and choose "Image." So you have different image options at the bottom. The best way to describe them is to use all of them and see what happens. I'm going to keep it on the first one, and I'm going to show everything that's checked here by default, and then I'm going to just click on "Save." So I'm going to save this image onto my desktop. It's named...

The same as the sheet Tab, and it's going to put it in a PNG format. You can also use JPEG, bitmap, scalable vector graphics (SVG) if you want to. I'm going to just leave it on PNG and Save. So now I have the sales by state image file on my desktop. I'm going to go ahead and open it, and there you can see the image. Now I can send this to anyone that needs to see this picture of the sales by state map. Just another way of distributing Tableau information.

In addition to exporting an image of this sales by state map, we can also export the data. So let's go back to the worksheet menu. For this, we're going to hover over export again, and when we select data here, it's going to export it in the form of a Microsoft Access database. We can also do a cross-tab to Excel. Let's start with the database. So we're going to select data there, and I'm going to put this on my desktop. Notice it's going to save it as an Access database, and I'm going to call it sales by state data, and I'm going to go ahead and Save.

So export data to Access dialog comes up; it has my file name; it's going to put it in a table called Data; and I'm exporting from this entire view, the entire map. I'm going to go ahead and click OK. So now I'm on my desktop where I saved it to, and I'm going to open this Access database, and I'm going to go ahead and enable the content. And I have one table in here, and it's called Data. And so for every state, it's showing the generated latitude and longitude as well as the sum of sales. I'm going to go ahead and close Access and bring up my Tableau again.

So the other way to export the data: let's go back to worksheet, export, and we can do it as a cross-tab to Excel. So I'm going to select that option, and when it's done, you'll see that it puts the information in an Excel workbook, just the state and the sum of the sales for each state. So different ways of getting information out of Tableau that you can share with other people that perhaps don't have Tableau, so they can further manipulate data.

So in module A, you learned ways of getting data out of Tableau. We started by saving a workbook; well, attempting to save a workbook on a Tableau server, I wasn't able to make the server connection; however, I showed you the similar process for saving a workbook on the web, specifically in Tableau Cloud, formerly known as Tableau Online. And you can use the server menu to export information to Tableau Server, Tableau Cloud, and Tableau Public. So we were successful in saving it to Tableau Cloud, and you saw that when you save it that way, and it's similar to the way server acts, that it will actually open it up for you once it's saved. Then we moved on to exporting an image of a map, and we saved it onto our desktop, and that image can be shared with anyone that needs to have access to it. We then exported data two ways: we exported it into the form of a Microsoft Access database and also to Excel as a crosstab.

In module 9, we're going to explore some advanced features, multiple lessons in this module. So we're going to start by learning how to view data in Tableau. We've already worked on changing the mark size, but we'll do it again. You're going to learn how to use presentation mode, how to add annotations, and how to exclude data on the fly. In lesson 6, we'll customize mark shapes, and in lesson 7, we're going to learn how to add drop-down selectors. You'll also learn how to add search box selectors and slider selectors. Lesson 10, we're going to start creating animated visualization using what's called page trails, and in lesson 11, we will be creating parameters.

So a couple of terms here: page trails are a way of animating a vis by using the pages shelf in Tableau; a parameter is a workbook variable, such as a number, date, or string, that can replace a constant value in a calculation, filter, or reference line. So we're going to switch over to Tableau and get started with this module.

When you right-click on a blank area of a visualization, you'll get the pop-up menu, and one of the choices is view data. Let's go ahead and click that, and it opens up a dialog where it's showing the data that's used on this particular sheet. So if you look at the top, it gives you a summary: 45 rows and four fields. And you can click on the show Fields button, and it defaults to showing all of the fields, and that's what you're seeing here: the latitude and longitude that have been generated, the sales, and the state or province. You can also download this data so that you can keep it if you want; it downloads as a comma-separated values file, which you can open in Excel. I'm not going to actually save it. And so it's showing you the summary here, and you can look through the data. Kind of cool, just pulling it all together. So I go to summary, and then there's like an orders table there that's showing some information. Down at the bottom, it tells how you can tell it how many rows to show, depending on, you know, the size of the data set. And you have a settings button that only allows you to show aliases. So an alias would be in the state and Province field; all of the states are known as aliases. And we are going to go ahead and close that dialog.

Now this is not on the agenda for this module, but I want to show you another feature that can be helpful for you. Let's go to the worksheet menu and choose describe sheet. So it gives you a full description of the sheet. So the map is based on longitude and latitude generated; the color shows the sum of sales; the size shows the sum of sales; details are shown for State Province. So it's listing everything from the marks card; map coloring shows 2018 population by state; that's the data layer that we added; and the view is filtered on state province, which excludes 10 members. So we got rid of the provinces in Canada. About the mark, the mark type is circle, and it's not stacked. For your shelves, it has what's on your rows, columns, filter, right, detail, color, and size. Your Dimensions State province has 45 members on the sheet, and it gives you a partial list of all the members. Then it goes to measures, and it gives you the range for the latitude and the longitude and the sum of sales range from 64 to 131,552 on a sheet. And then you have data source details. Now the other thing you can do is you can copy this information, paste it somewhere if you need to share it with someone. We're going to go ahead and close that. So that was from the worksheet menu, and it's called describe sheet, or control E to bring up that panel.

So we've done this already, but let's go ahead and increase the size of our circles on this map, right? And so we do that from the marks card. If you go to size, and you can increase the size, and we had already done this in the previous module, you can increase or decrease the size. Why don't you take a moment and find another sheet and see where you want to increase the size of the marks? And I went to our heat map and increased the size of the marks. Go ahead and save your file.

Now Tableau has a presentation mode that you can use if you're connected to a flat screen or a projector and you want to show everyone your visualizations. So I went to our first sheet, the West and Southwest order count by customer sheet, and I switched it on this toolbar from standard view to entire View. Now also on the toolbar, you can get into presentation mode, and that is the icon that I'm pointing to on the screen to launch presentation mode. So go ahead and click that icon, and what it does is it gives you the full-screen effect. So you're not seeing your menu bar, your toolbars, title bar, any of that; you're just seeing the visualization. And so if you notice at the bottom, you still have your sheet tabs available to you. So while you're in presentation mode, you can just go from sheet to sheet and have it display in that mode, similar to like a slideshow, but not really. So that is how presentation mode works, and to get out of it, you can just press the Escape key on your keyboard, and it will bring you out to whatever sheet you were on when you're exiting it. So really good feature.

So let's start this; we're going to add a couple of annotations to our sales by state map, but first I want you to hover over the New Jersey mark. So it just says State Province New Jersey and the sales values, right? If we look at, because it's sized by the sum of sales, it looks like California, Texas, and maybe Pennsylvania have the highest sales. So let's start with Pennsylvania. What you're going to do is you're going to hover your mouse over to Pennsylvania mark and right-click, and you're going to choose annotate, and we're going to choose we want to annotate the mark. So right where your insertion point is flashing, and this is like the same stuff that you're seeing in the legend, but we want it to pop out as an annotation, and before it, we're going to add High value. So high value State Province, and we're going to click OK. So you see that it has the annotation showing high value State Province for Pennsylvania and the amount of sales, and I can click away from that, and that stays visible on the map. And so I'm going to have you do the same for California and Texas; add the words high value; make annotations for California and Texas on your own; and when you're done, your map should look like mine with the three annotations on it. Now if you want to get rid of an annotation, you would actually click on it, and it puts a red border around it, and you could just press delete to get it off of there if you wanted to. I'm going to keep all three of these on this map. Go ahead and save your file.

Now we're going to move on to excluding data on the fly. We're going to do two separate exercises for this, but there are two different ways that you can do this, and then I'll show you how to get the data included. Now on the sales by state map, we already created a filter for State Province where we excluded all of the Canadian provinces. So let's just click on the Washington State mark. If you just select it, you get this pop-up that says keep only or exclude. Now another way of doing that is by right-clicking on the Washington State Mark, and you get that keep only and exclude on the pop-up menu. So I usually just click on the mark, and we're going to select exclude, so our Mark disappears from Washington State. Now since we already had a filter here to get it back, we're gonna go to our filter Shelf, and we're going to right-click on state Province and edit filter, and you're going to scroll down, and you see that Washington state is now filtered out. We're going to uncheck Washington and click OK. So now our Mark is back for Washington state. Now if you exclude data on a sheet that doesn't have a filter, it will automatically create a filter, and you're going to see that now. So we're going to do this on our account of products by market segment sheet, and let's right-click on the home office mark on the number of products part of the visualization. Well, actually, I'm gonna just click on the home office mark, and I'm going to exclude it. Now notice we don't have a filter here, so when I do that, it creates the filter for me, excluding home office. So if I want to get it back, I'm going to right-click on that market segment filter, and I'm going to edit the filter, and I'm going to uncheck home office, get rid of exclude as well, so I'll do all, and then OK. So now I got my home office back, and if I don't need that filter, if I'm not going to be excluding on the fly, I can just click on the filter pill in the filter Shelf and delete it.

You've already seen how to customize mark shapes, but we'll do it again, and I'm back on sales by state map, and so our marks are showing as circles. And if we go to our marks card and do the drop-down next to Circle, we might want them to show as squares, something like that. I actually prefer the circles on the map; I find them less distracting, if that's the right word for it. I'm gonna go back to the now Square drop-down, and I'm going to choose shape, and so now we get these open non-filled Circles on there, and I'm going to go back to the drop-down again and put it back on Circle.

We're going to start on sales by state sheet by adding a drop-down selector, and we want it to be for the states. Well, we already have state province in the filter shelf. So in the filter shelf, you're going to right-click on state Province, and you're going to choose show filter. So it gives us this multiple values list, which takes up a lot of space on the right side. Before we change the type of selector, I want to point out a few things. So at the very top in the selector's title bar, it says State Province, and then to the right of that, you have a funnel with an X. If you hover over it, it says click to show all values. Well, this is the filter that we excluded the Canadian provinces, so we don't want to click the funnel to show all values, or else it would include them again. To the right of the funnel, you have a find values icon of the magnifying glass. If I click on that, it gives me a search box, and I am going to type Vermont, and it just brings up that particular state. Now I want to clear that search, so I'm going to do the X to the right of the search box, and it clears the search, and then I'm going to do the X again to close the search box. To the right of your magnifying glass, there is a drop-down arrow. So if you look in the middle of this list, it lets you know that it's a multiple values list; that's the type of selector that we have currently. Before we change it, hover over customize. So the list is showing that all value, right? It has the search button, include, exclude, control types, and all values button. Depending on the type of selector, your customization options will change, so you'll see this in a moment. Let's go down and make this a multiple values drop-down selector, so it doesn't take up much space. Now go back to the drop-down arrow to the right of the funnel and hover over customize, and you see that it has it doesn't have a search option there, and that's why you don't have the magnifying glass. The drop-down selector does not have a search option. So again, depending on the type of selector, your customization options will vary, and we're going to click away from it. So this way, if I do the drop-down here next to multiple values, it allows me there; there are square boxes, right? They're check boxes, so I can select multiple values if I wanted to from this list. I'm going to go down, and I'm going to check Wyoming, and it's going to exclude it, so I no longer, and if I uncheck it, it will include it again, right? So we'll do another state; let's check California, and you'll notice that its Mark disappeared because it's excluded, and now I'll check it again, and it's included again. Go ahead and save your file.

Let's go to our days to ship by sub-category and ship mode sheet, and this sheet already has a slider selector for order date, but we're going to add another one. So days to ship is the calculated field we created, and in the field list, I'm going to right-click on it and choose show filter. So it adds it to the filter shelf, and it displays a slider because it's numeric data. So whenever you have numeric data, it will automatically give you a slider. Now if you look at the top of that slider, it doesn't have the search function; it doesn't have your magnifying glass there, but it does have the click to show all values, and I don't believe anything is excluded, so I'm going to go ahead and click that, and then I'm going to do the drop-down arrow next to it, and the first thing we're going to do is look at the customize options for a slider. The readouts are the numbers at either end of the slider, so it's showing those; it's showing the slider; and because it's a slider, it's a different customization menu for a slider, and let me go back to the drop-down. You can choose to have a range of values, which is what we're going to leave it on, or at least a certain amount or at most a certain value, right? So the other thing we're going to do is we're going to edit the title, and we're just going to, I'm going to just take everything out, and I'm just going to give it a title of days to ship and click OK. So now if I use this slider, I can start sliding it over, so you'll notice that my visualization will change according to the slider value that I put for days to ship, right? And I can drag either end of the slider to do like a range, and then I can click in the middle of that and drag it backwards and forwards depending on what it is I want to see. And I went ahead and expanded my slider back to its original position. So the good thing about having these on your visualization sheets is because it gives your end-users more flexibility in the data that they're analyzing. Go ahead and Save.

So we're getting ready to create an animated visualization using page trails, but before we do so, let me show you other ways to navigate your different sheets in a workbook. So by default, it's showing your sheet tabs, which we've been using, but I want to draw your attention, and I'm going to draw some arrows here, all the way at the right-hand side of your status bar; there are three different icons, and these control how you're seeing your sheets. So the last icon, if you hover over it, the last icon will tell you that it's showing the sheet tabs, right? If you can get the pop-up, the first one shows you like a, so here it's the pop-up for the first one shows sheet sorter. So when I click on that, it brings me to this view where I can see little thumbnails of all of my sheets in the workbook, and then the second view button down there is show film strip, and so it shows the little thumbnails down at the bottom, and you can use your navigation arrows to go backwards or forwards from the first sheet to the last sheet or wherever you need to be. So you do have choices there. I'm actually going to leave mine on film strip, and I'm going to use the new sheet icon. So now the, the icons for new sheet, new dashboard, a new story are vertical. I'm going to use the new sheet icon to bring up a new sheet. So even though I'm in film strip showing the film strip for my sheets, I'm going to go ahead and name that sheet the same manner; I'm going to just double-click, and we're going to name this one sales by month over time, and we're going to grab our order date field and drag it to columns, and we're going to drag sales to rows, change the order date from year to month. Now what another way you can do this is you can do the plus sign in front of year; it gives you quarter; you can do the plus sign in front of quarter; it gives you month; and then you can delete the year and the quarter pills; just another way, some variety. So now you're left with the month of the order date, and now we're going to drag the month; we're going to actually control copy it from columns to the pages shelf, which we have not used yet, so we're making a copy of it and dropping it in pages. So a couple of things happened: your line chart that was on the screen, it now just shows the mark for January sales; the rest of the line chart has disappeared; also notice the controls that show up on the right side of the screen; let's talk about those. So it has the first month January there, and if you do the drop-down next to it, you'll see

It goes all the way through December, because we chose month of order date. It also has a back arrow and a forward arrow, so if I wanted to go to February, I could just use the right-side arrow instead of the drop down, so on and so forth. I'm going to put it back on January.

Underneath that, you have a slider of sorts, which also goes through the month. Now, when I use that slider, look at the mark on your visualization—it's moving to catch up to whatever month you're in. We're going to drag it all the way backwards.

Underneath that, you have your animation controls: you have rewind, Stop, and Play. And to the right of that, you have a series of icons with lines on them. You can change the speed of your playback: slow, normal, or fast, and it's defaulting to slow.

Then you have a show history area. You're going to check the box in front of show history and do the drop-down arrow. So, instead of anything that's selected, we want the marks to show history for all. So we're going to select all, and we're going to leave the length at all. The length represents the number of pages in history. So notice here under show, it's on marks. Trails is dimmed out, and both is also dimmed out. And underneath marks, we have format none. We're going to leave fade checked, and you'll see what happens when we run it.

So, depending on the mark style—so our marks are set to automatic on the marks card—Trails won't be available to you. So you'll see in just a few minutes how to use trails and what they do, but right now we're cool with just marks, and we have the fade option selected.

So how does this work? We're going to go ahead and press the right arrow button, so it starts animating the visualization, and you see it's automatically going through each month. And when it gets to the next month, the previous mark fades. And if you wanted to speed it up, you could speed it up. And I'm going to reverse it. I'm using reverse to go back, so it's going backwards now. I'm using the reverse button, and I made it as fast as it will go, so now it's back on January.

So notice the title now says Sales by month overtime - January. So I ran it backwards, and it's on January now, so it's only showing the mark. Now, in order for it to show Trails, we need to change the type of mark that's being used. So let's go to our automatic drop down on the marks card and change it to Circle. And now we're going to go back to the show history drop down on the controls on the right, and you'll notice that trails and both are now available. Let's choose Trails for this one. And for Trails, let's go to the format drop down underneath, and I'm going to create a dashed line. I think I'm gonna use the dashed line. And now I'm going to go ahead and play this animation again, so I'm going to use the play button, which is on the right, and you can see the difference between using a mark or using a trail. And now I'm going to reverse it, so it goes back to January. And we're going to go back to show history again, and this time we're going to select both, and we'll go ahead and run it. So we're still getting our previous mark fading, but that way you can have both. And reverse it, so it goes back to January. So pretty cool, the ability to animate a visualization. And we started by putting the month of order date in the pages shelf, after we've populated columns and rows, and that's what caused the controls to show up on the right side. Go ahead and save your file.

So you do not have to use a numeric field for your page Trails animations. So I'm on the average sales and profit by state Province heat map that we did earlier, and for this one, I'm going to have you do it on your own. I'm going to have you copy State Province from the bottom of the marks card to pages, and then play the animation and see what it looks like. And you can see how the mark is just traveling along, going state by state. I'm going to go ahead and stop this one, and you can too. Actually, I'm going to reverse it, and once I reverse it and it gets all the way back to the beginning, I'm going to speed that up. We're gonna stop it. And I don't know that this would be beneficial at all for any analysis. I mean, if you want to keep it, you can keep it, but what I'm going to do is I'm going to go to the Pages Shelf and click on the State Province pill and delete it, and then it's as if we never did that. Save your file again.

I've already brought up a new sheet to get ready for our next lesson, where we'll be creating parameters. Now, just a reminder, a parameter is a workbook variable that can replace a constant. The beauty of using parameters is that you can show parameter controls on a vis, and users can select the measures to be used on the X and Y axes. So, for example, they might want to see quantity and discount, or they might want to see profit and sales, something like that. So we're going to go ahead and get started.

So what we're going to do to start creating a parameter is we're going to use the drop-down arrow that's at the top of your data pane. I'm pointing to it on the screen, so we can do it this way. So we're going to do that drop-down arrow and select Create Parameter. And we're going to name this parameter Choice One selector. So not a name that makes a lot of sense right now, but you'll see as we get into this how we're going to use these. We want to give this parameter a data type of string, and at the bottom under allowable values, we're going to do the option button for list, and then we're going to type in our values. So you're going to click where it says click to add, and we're going to type discount and press your tab key, and it will show you how it displays and take you down to the next click to add. And you actually have to click to add another one. We're going to type profit and tab, click to add, we have two more: quantity and lastly sales. So I will say here that all of what we're doing will make more sense when we're a little bit more along in the process. So we created a parameter named Choice One selector; it has a string data type, and we're using a list that we populated of values. We're going to go ahead and click OK at the bottom.

So notice in your data pane at the bottom, there's a section called parameters. They already had two in here that came with the data set, and we just created our own, and it's called Choice One selector. So in your field list, what we want to do is we're going to right-click on Choice One selector; we want to actually duplicate it. So let's do that, and then it gives us Choice One selector and Choice One selector (copy). And the only edit we're going to make to the copy is its name. So I'm going to right-click on it and choose Edit. I'm going to get rid of the word copy at the end of the name, and it immediately starts screaming at me in red that that name already exists. We're going to further modify this so it says Choice 2 selector, and then it stops screaming. So we wanted the same thing: we want it to string data type, and we wanted the list of available values. So we made a duplicate of it and just had to change the name, and then we're going to go ahead and click OK. So we have two parameters at this point: Choice One selector and Choice 2 selector.

Now we're going to create a calculated field, and you'll get introduced to another pre-built function. So this time we're going to do it from the drop-down arrow at the top of the data pane; we can create a calculated field from there as well. And this calculation we're going to name placeholder one, and we're going to use the CASE function. So start typing CASE. Now CASE, if you expand on the right, so you can see the list of functions, notice the syntax of CASE. So CASE is another way of doing that IF THEN ELSE IF ELSE END construct; it will give similar results, however, it's a different construct. So after CASE, we're going to type, start typing choice, and we're going to choose Choice One selector. I'll explain the rest of it once we get it all in. I'm going to press Enter, and now I'm going to type the WHEN or access the WHEN function. And now we're going to type discount in single quotes. We're going to use the THEN function on the same line, and now type discount and grab the field. So when we set up our parameter, we built a list of four items: discount, profit, quantity, and sales. All right, so this is in the first one we created was Choice One selector, right? It's saying if they choose discount, then display discount. We're going to do Enter; we're not quite done with this CASE statement yet. The next line is another WHEN, and single quote profit, THEN, and you want the profit field here. Enter. We have two more WHEN THEN statements to do. So we're going to do WHEN; the next one is going to be quantity, THEN the quantity field. And our last one, this one is going to be sales, THEN the sales field. And then we're going to Enter one more time and type the END statement. So we named this placeholder one; it has a CASE statement that's related to the first parameter that we built, and we're going to go ahead and click OK, just like we did with our parameter. We're going to duplicate our calculated field placeholder one, and we're going to edit its copy, and we're going to get rid of the word copy at the end of the name, and we're going to change it to placeholder 2. And in the CASE statement, we're going to change it to Choice 2 selector, so we don't have to build the whole thing all over again, and we're going to go ahead and click OK.

Now we're about halfway through this process, just so you know. And what we're going to do on our new sheet: let's drag placeholder two to columns and placeholder one to rows. We're going to drag the customer last name to the detail card on marks, and we're going to drag the region field under location to color. So right now we're not done; you'll see on your y-axis you have placeholder one, and placeholder two is on your x-axis. In your data pane, you're going to right-click on Choice One selector and choose Show Parameter, and do the same for Choice 2 selector, so they show over on the right. Now we're going to go up to columns and right-click on SUM(placeholder two), and we don't want this to be aggregated, so we're going to make it a dimension, and do the same with SUM(placeholder one). And just so you know, another way we could have done that instead of doing each one of these placeholders individually, we could have gone to the Analysis menu and unchecked Aggregate Measures. It's unchecked now. If I check it, you notice it puts SUM(placeholder one) and two back, and I could go there and uncheck it, and it does what we did manually a minute ago. So I just thought you would want to know that as well.

So right now we're in a situation where we can actually test what we've done to this point; we're not quite finished, and I'll explain why when we do our test. So over on your right side, notice that both selectors are on discount. So I'm going to leave Choice One selector on discount, and for Choice two selector, I'm going to select profit. So notice that my visualization updated. I'm going to go to my Choice One selector, and I'm going to select sales. Again, the visualization updates. What doesn't update are the titles of the axes, so they're still saying placeholder one and placeholder two. Let's put both of these back on discount—both of our selectors back on discount—and we're going to create another calculated field that will address the axes titles. So I'm going to go to my drop-down at the top of the data pane, Create Calculated Field, and we're going to name this X axis title, and it's going to be another CASE statement. So I'm going to go ahead and grab CASE, and I can actually collapse this over on the right, and it's going to be Choice 2 selector, which will show up on your list, and then I'm going to Enter and do WHEN, single quote discount, THEN, single quote discount. Go down one line, and we're going to do another WHEN, THEN, WHEN profit, THEN profit. Next line is going to be WHEN quantity, THEN quantity. So these are the list items that we made, and the last one is going to be WHEN sales, THEN sales. After that line, we're going to use ELSE, and then we're going to start typing NULL, and you can get that in, and then underneath that, we're going to access END. So it's saying to change the title of the axis based on the selector, the selection chosen in the Choice 2 selector, and it's specifically going to change the x-axis title, and we're going to go ahead and click OK.

So now in your field list, so we don't have to do it from scratch, we're going to right-click on x-axis title, and we're going to duplicate it, and we're going to edit the duplicate, and we're going to name this one—we're going to get rid of copy at the end, but we're going to name this one y axis title—and in the CASE statement, we're going to change it to Choice One selector, and we're ready to do OK. We have a little bit more to do, and then we'll be able to fully test this out. So what we want to do is we want to double-click on each axis and delete the title. Remember when we tested our parameters, the titles were not changing, but we did calculated fields to fix that. So we've deleted the titles from both of them, and then we're going to drag our x axis title to columns, and we're gonna drag the y-axis title calculated field to rows. So notice because our selectors are both set to Discount, both of them are saying discount. And so now if we make selections, they will change, but before we do that, we run a rotate the y-axis title. Going to right-click on it and rotate the label, so it looks like that. And we want to edit the titles of our parameters over on the right. So next to Choice One selector, I'm going to do the drop-down and edit title, and I'm going to put this one as First Choice, and for the second one, you're going to name it Second Choice.

Now we're ready to test. For my First Choice, I'm going to leave it on discount, and my Second Choice, I'm going to choose quantity. So notice that the x-axis title updated there when I chose quantity. So your end users will be able to do any choices that they need for their analysis, and the axes will update accordingly. And now we just have to name the sheet. Since it's so variable, I'm going to name it Analyzing by Region and Customer. So regardless of what they pick, it's still analyzing by region and customer. And if you hover over the marks, you'll see both titles: Customer Last Region and the placeholder one and placeholder two values. Placeholder one at this point is quantity; placeholder two is sales. Pretty cool. Go ahead and Save.

So you got to see some really cool Advanced features during this module. We started by showing you how to view data, and also I showed you how you can describe the sheet from the Worksheet menu—really cool features. We got to change our mark sizes again. You got exposed to using Presentation Mode, which is really cool if you just want everyone to see all of your visualizations on a big screen. We added annotations. You learned how to exclude data on the fly and how to include it again. We customized mark shapes, and then we added drop-down selectors. You saw the type of drop down that supports a search box selector, and we added a slider selector, and you saw that depending on the selector, the customization options vary. Then we created an animated visualization using Page Trails by placing a field in the Pages Shelf. We ended by creating parameters, which we then ended up creating like four calculated fields, so that the users can make a choice from each parameter that's visible on the right side; the data will update to what they need to see for analysis. We also created calculated fields that would make sure that the axis titles would update to the proper selections.

In this extensive course, we started by connecting to a variety of data sources, in particular text, Excel, and Access database data sources. We started calculating user-defined fields, so that's when we started using some Tableau's predefined functions. We also learned how to calculate percentages, how to show totals, and how to apply the IF THEN logic in a calculation. We applied more logical functions using the IF THEN ELSE construct along with the AND function, and we moved on and learned how to discretize data by making it discrete—so individual segments that act as labels versus continuous where you have a continuous axis. We learned how to manipulate text using a calculated field, and we used to start with function at that point. And throughout, you learned how to aggregate data and change the aggregate. We started customizing and saving; that's when you learned how to add titles and captions, how to modify font sizes and colors, adding colors and labels, changing mark sizes, adding reference lines, printing to PDF, saving package workbooks, and creating a workbook data extract, which you would need to refresh if the original data source has changed; then you would have to refresh to get those changes in your extract. We were able to save a workbook to Tableau Cloud, and you learned how to export data. We started exploring some Advanced features like describing a sheet, changing the mark size, using Presentation Mode, adding annotations, excluding data on the fly, customizing mark shapes, and you created your first animated visualization using Page Trails. We also started creating parameters, which are referenced in calculated fields, and then you learned how to use parameters on a sheet; that's when we created our first choice and second choice parameters.

Hello everyone, I am Trish Connor Cato. Welcome to Tableau video training course. Tableau is a visual analytics platform that makes it easier for people to explore and manage data and faster to discover and share insights that can change businesses and the world. It helps people and organizations be more data driven. Tableau supports data prep, analysis, governance, collaboration, and more. As a continuation of the Tableau introduction video training course, this Advanced course is designed to boost the students' competence when it comes to creating visualizations and creating dashboards. The course goes into considerable detail on these two subjects and explores, among other areas, how to create a range of different charts, Maps, user-defined Fields, as well as a host of advanced features and abilities. We'll start by connecting to a variety of data sources. This will leave you with some great workbooks to practice on and develop on your own after this course. And then we'll take a deep dive into dashboards, including preparation, summarizing data, and interacting with data for dashboards.

In Module 10, we're going to focus on more calculations, summarizing your data for getting them ready for dashboards. In Lesson one, we're going to focus on arithmetic, and in Lesson two, you're going to learn how to group your data with calculations. Now we did Manual groupings before for our regions for our map, but this is using calculations to do grouping; it's it's pretty cool. In Lesson three, you're going to learn about how to display correlation with calculations, and before we get to that lesson, we'll return to this slide show because the calculation for that one is really intense. In Lesson four, you'll learn how to use cross tabs flexibly, and in Lesson five, we're going to cover simplifying your business rules with custom calculations. And so there is a Word document in the video description named Calculations, and I have both the calculations for Lessons two and three in this module in that Word document, so you don't have to type them in, but we will review them when we use them. I already have a new sheet ready to go and our sample Superstore live file, and we're going to start with arithmetic, and you're going to learn how to do an ad hoc, also known as an inline calculation, during this lesson. So we're going to drag—let's start populating this a little bit before we do our calculation—and we want to drag Market Segment to rows, and then what you're going to do is...

You're going to double-click in the column Shelf and notice it creates that little long oval for you to type into. And we're going to type in AVG or a z, and then you can tab it in from the list. And then we want the profit field, so I'm going to grab that one, and then I'm going to do the slash for division. I'm going to type AV again and grab average again, and this time I want the sales field. So you have average profit divided by average sales, which actually equals a profit ratio. So notice at the end it says in order to apply it you have to do control enter, so I'm going to do control enter there. And now you see our visualization is populated.

Now we can right-click on the axis so we can change the name of it there by going to Edit Axis. And at the bottom, let's name it—and it's going to sound weird for a moment—but let's name it our profit ratio. And we can go ahead and close the Edit Axis dialog. The reason why I didn't just name it profit ratio is because there's already a profit ratio field in this data set, and I just wanted you to be able to do an ad hoc calculation. So there's already a profit ratio field in the data set, and we want our profit ratio to display as percentages.

So what we're going to do is right-click on any column in your Vis and choose Format. And the format pane opens on the left side of the screen. And we're going to go to the Fields drop-down and we're going to select our ad hoc calculation. And under Scale, we're going to do the Numbers drop-down and choose Percentage, and we'll get rid of the decimal places. So now you see your axis numbers have updated to percentages. And let's go ahead and name the sheet Average Profit Ratio per Segment. And on your own, let's go ahead and change the axis title to Average Profit Ratio and then save your workbook. Now I'm going to go ahead and close the format pane, and I'm going to click on Color on the MOX card, and I'm going to just go with my usual orange color.

So we're ready for a new sheet where we're going to do some more arithmetic. On this sheet, we're going to calculate cost. So let's start by dragging the Order Date field to Columns, and we want it to display the quarter of the order date. So whether you want to expand it or drop down and change it to Quarter is up to you, but the only one we want up there is Quarter. Let's double-click in the Rows Shelf and we're going to type Sales minus and then Profit, and go ahead and control enter to apply. Now this one we're going to treat a little bit different than the one we did just a few minutes ago. Let's go up to the Rows Shelf, and this time we're going to click and hold on Sum of Sales minus Profit, and we're going to drag it over to our field list and drop it. So once it's in the field list you can rename it; it's already highlighted for you to rename, and we're going to type Cost and press Enter. So now if you look up at your Rows Shelf, it's the sum of the Cost. Now we're not done with this visualization yet, but let's go back to our previous sheet so we can do the same with our average profit ratio field. Go up to Columns and you're going to drag it and drop it to your field list and then just rename it Average Profit Ratio, so that way it's available if you want to use it on other visualizations. And we can go back to our latest sheet.

So one thing that we're going to do is we're going to six the axis so that it is continuous. So let's do the drop-down next to Quarter of Order Date, and instead of it being a discrete field where it's showing each quarter like that, we're going to choose Continuous. So it still works if you hover over any point, any mark on your line; it tells you what quarter it is, but the axis just says Quarter of Order Date and has like one, two, three, four; it's a continuous line as opposed to discrete. So I want to point out some interesting information down in your status bar. On the left side of your status bar, where it's showing you the information from your visualization, which is pretty cool at-a-glance information, it's all the way down there; it's letting you know there's four marks; we have four quarters, so there's four marks on your line chart, one row by one column, and it gives you the sum of the cost as over two million dollars. So good information at a glance. Let's give this Vis some more detail. So let's add Profit to the Rows Shelf and add Market Segment to Columns, and then we decide we want a double line chart, so I'm going to go to Show Me, or I should say a dual line chart, and I'm going to choose the Dual Line chart so we can see both of those values for each segment in the same pane. I'm going to go ahead and collapse Show Me, and we're going to change the colors of the Legend on the right in a moment, just so you know. Just something to keep in the background: if it ever doesn't generate a color legend for you on the right, you can make it do so by going to your Analysis menu, and you can hover over Legend, and it wouldn't be checked here, but you would be able to check it to get that color Legend, and the same for a shape or a size Legend if they don't show up automatically; you can grab them from the Analysis menu.

So I'm going to go over to the Legend and do the drop-down and choose Edit Colors, and I am going to select a palette. The palette I'm going to select is called—it's all the way at the bottom—it's called Lightning Watermelon, and then I'm going to click on the Cost field and I'm going to change it to red, and for the Profit field I'll change it to Green. Actually, I want a darker red on Cost, and then I'm going to choose OK. Let's go ahead and change it to Month of Order Date. So I'm going to do the drop-down, and I'm going to select the second Month on the list, and you can see how it updates our lines; they're now showing monthly. And then we're going to show a filter for the Order Date. So I'm going to just right-click Month of Order Date in the Columns Shelf and choose Show Filter, so it shows up on the right, and it is, you know, a slider. And we want to do the drop-down to the right of our filter header, and we want to choose Start Date instead of Range of Dates. So on a filter, instead of using the slider, I'm going to click right at toward the end of January 2019, and I'm going to just manually edit it to tell it to start with January 2021, and you can see how it adjusts. And I'm going to clear that filter, so I can right-click on it in the Filter Shelf and clear it. Now if you want to give your end users the ability to filter, then go ahead and show the filter again and just leave it there so that they have that option to filter if they need to, so they can see whatever they need to see. So I'm going to just add it back and change it back to Start Date.

Lastly, we're going to do just a little bit of formatting on this visual, and so I'm going to right-click anywhere in the chart and go to Format, and as usual it opens on the left side, and I'm going to go to the paint bucket up at the top of the format pane to get to shading, and I want to shade this worksheet. I'm going to go to More Colors, and I'm going to choose like a really palish green, a little bit paler… yeah, very pale, very subtle, and click OK. So that really adds, for lack of a better word, some drama to the visualization; makes it more eye-catching; people will be more interested in viewing it. Little color goes a long way. And we'll end by naming this sheet Monthly Cost and Profit by Market Segment and save. So even though Tableau saves in the background, I always like to save along the way, and I'm going to go ahead and get rid of the format pane so we don't need it anymore for this portion, and go ahead and get a new sheet ready.

So I have on the screen that Calculations Word document, and we're getting ready to group data with calculations. So instead of having us type in these calculations, I put them in Word, and so let's grab the first one. I'm just going to start with the IF statement, and once we get started with this lesson, I will, of course, break down this calculation for you. And by the way, this is in Word, so I changed it so it is straight quotes instead of smart quotes. If you have smart quotes, it won't work in our calculation editor in Tableau. So I'm going to go ahead and copy that first calculation, and on our new sheet, let's start by dragging Category to Columns and Sub-Category to Rows. So the thing that happens here, right, if maybe there are times where you just want to see the Sub-Categories and other times where you just want to see the Categories, right, and you don't want to have to keep deleting the pills in a visualization. So the calculation that we're going to do is going to create dynamic grouping and ungrouping, and so we can delete both of those pills from the shelves. Just wanted to give you an explanation of what's going to happen here: the calculation we're going to build will allow us to expand or collapse. So collapse would just be showing the Categories; expanding would be able to see the Sub-Categories, so you don't have to, like I said, delete a pill to change that kind of viewing.

So what we're going to do is we are going to create a parameter. So I'm going to do my drop-down arrow and Create Parameter, and we're going to name it Group and Ungroup. We're going to give it a data type of String, and we're going to allow a list, and we're just going to add two values to the list. So the first one is Group, and the second one is Ungroup, and we're going to go ahead and click OK. Now we're going to create a calculated field, and I can collapse that right side, and we're going to name this calculated field Dynamic Grouping/Ungrouping, and this is where we're going to paste the calculation. So let us discuss this calculation. I'll make my box bigger. Okay, so we're using the IF THEN THEN IF THEN ELSE ELSE IF statements with OR statements mixed in. So if the Sub-Categories equals Bookcases OR Chairs OR Furnishings OR Tables, then if the parameter we created is set to Group, then it will group them together and call them Furniture, or else it will just show the Sub-Category. If none of those things are true, it would just show the Sub-Category. Then we have an ELSE IF block in the middle. So this is the same; it's saying that Appliances, Art, Binders, Envelopes, Fasteners, Labels, Paper, and Storage and Supplies would be grouped together as Office Supplies, or if that's not the case, it would just have the Sub-Category name. The last ELSE IF block is creating another grouping. So this one is Accessories, Copiers, Machines, Phones; right, they would be grouped together as Technology, and then it has ELSE Sub-Category. So if none of those are true, it would just show the Sub-Category. Then it ends that portion, then it gives another ELSE calculation, which saying if none of the above are true, just show the Sub-Category. So everything from Bookcases to Phones, if none of those are a match, just show the Sub-Category. So I didn't want you to have to type all of that in, so that's why I put it in the Word doc. We're going to go ahead and click on OK. All right, so now we're gonna use our Dynamic Grouping Ungrouping calculated field in Rows, and we'll put our Sales in Columns. Now we do want to show our Group and Ungroup parameter, so I'm going to right-click on it and choose Show Parameter. So now it defaults to Group, so we have our—these are actually our Category fields, right—but if we go over to the Parameter and we choose Ungroup, we just get the Sub-Categories. So it's not like you would normally—like we saw when we before we started—this was: you can have Category and Sub-Category, but if you were to collapse it, you're still going to see the Category, right? So this way it gives you a choice of either seeing—by Grouping, you're seeing the Categories; by Ungrouping, you're just seeing the Sub-Categories. So this is another useful interaction that you can have for your end users. And let's go ahead and name this sheet; we'll call it Dynamic Group—Dynamic Group—and then I'm going to do a dash, and it's going to be Sales Information, and I'm, as usual, going to change my color to my favorite orange here to give it some more visual appeal.

So in our next lesson, we're going to figure out if there is a correlation between sales and profits per category. Before we do so, I have to give you some background information on the calculation. So a correlation coefficient is a value that quantifies the relationship of two or more variables. In linear correlation, the coefficient quantifies the strength and direction of the correlation between the variables. One type of correlation coefficient—and that's the type we're going to use—is the Pearson product-moment correlation coefficient. It's also known as R, which measures linear correlation and provides a value between negative one and positive one. Positive one is total positive correlation; zero is no correlation; and negative one is total negative correlation. If two variables have a strong positive correlation, then the R value will be nearer to positive one; for example, X increases as Y increases. If they have have a strong negative correlation, then the R value will be nearer to negative one; X increases as Y decreases would be that example. A strong positive correlation is generally considered to be a value between positive 0.8 and plus one, with anything below positive 0.5 considered to be weak. So for those of you unfamiliar with correlations, just a reminder: the slide deck is in the file for video of the videos' description.

So to measure R, the strength of a correlation, the covariance—which is the dependence between variables—needs to be determined and then divided by the product of the variable standard deviations. There are a few different types of formula to determine the correlation coefficient; we're using the below formula, which means in terms of data that n would represent size, X would be Profit, and Y would be Sales. This formula is pretty daunting, but once you break it down into parts, it becomes much easier to understand. So on the lower left of this slide, you have the entire calculation, and on the right side you have it broken into four parts, which we're going to review before we do this. Okay, for the first part, we'll be using Tableau's SIZE function, which returns the number of rows in a partition. For the second part, we'll be using the WINDOW_SUM function, which returns the sum of the expression within the window, and the window is defined as offsets from the current row. For Part 3, Xi equals the sum of Profit and mean of Profit; for example, the window average of the sum of Profit, and Sx is the standard deviation of Profit; therefore, we would need to subtract the mean from the sum of Profit and then divide that by the standard deviation, and you'll see the line of the calculation that will do that. And in Part 4 is almost the same as Part 3, except we have to swap Profit for Sales. Once we have all of the parts, you'd need to multiply them by each other. And the reason why I put this in the calculations is because parentheses is everything with this particular calculation. So I put this in the Word document so we can copy and paste it, make sure we get it right, but there is a reminder to make sure to take special care that the parentheses are in the correct places. So then I have the final formula, which is a net Word document, and a screenshot of the whole thing put together at the bottom. Now we're ready to go in and do it.

So now in that Word document, I'm going to go ahead and select the calculation at the bottom and copy it, and then I'll go over to Tableau, and we're going to create a new sheet. So again, we're looking to see if there's a correlation between Sales and Profits per Category. So we're going to put Category and Profit in Rows, and we'll put Sales on Columns, and we'll use the Customer Last Name for Detail. Now we're going to go ahead and create our calculated field, and we're going to name it Correlation Coefficient, and we can paste in our calculation. So it's 1 divided by 5 minus 1, right? Then it's times the WINDOW_SUM… yeah, this one is pretty deep, so I broke down the different pieces; there's four parts to this, and you can see that they're all multiplied to each other. Let's go ahead and click OK. And before we use it, let's right-click on it in the field list and edit it. So you notice when we come back in it says the results are computed along a table across, and it says Default Table Calculation. Well, table calculations were covered extensively in the introduction course, but I will tell you that they have two characteristics: partitioning, which is also known as scoping; in this case, it's partitioned on the table; and then the second part is addressing, also known as Direction, and it's going across the table. So let's go ahead and click OK again, and we're going to drag Correlation Coefficient to Color on the Marks card. And so you'll notice that nothing really happened, right? Kind of dimmed out a little bit, and that's because we want that Correlation Coefficient to be computed using the Customer Last Name. So in order to do that, we're going to right-click on its pill in the MOX card, hover over Compute Using, and choose Customer Last. So we're using a specific dimension for it, and so right now the darker the color is an indication to you that it is a stronger correlation. I'm going to go to Color and Edit Colors, and I want to choose a different palette here, so I'm going to choose the Red-Green-Gold diverging palette, and I'm going to use five steps for it, and I'm going to click OK. I'm also going to—and I'm going to grab it from the field list—I'm going to drag Correlation Coefficient to Tooltip on the Marks card as well, and I'm going to make this fill the entire view instead of the standard setting, so it's easier to look at. And actually, let's delete the pill with Correlation is in the Tooltip because it's already going to be there because we put it in; we computed it along the Customer Last Name, so it will already show in the Tooltip. But if I hover over any of these, we'll see the Correlation Coefficient, like where I'm looking, right: 0.64. So that's pretty strong correlation, right? It means that if Sales increase, Profit increases; that's what that is meaning. Let's go ahead and add a trend line to this, so I'm going to go to the Analytics tab, and we're going to do a linear trend line, and we'll add some more detail to this. I'm going to close the Analytics pane. I wanted to go back to the Data tab. We're going to add some more detail by dragging the Region field to Detail, and so we're looking at it by Category and by Region at this point, and our color scheme changed, and that's fine. Go ahead and let's name this one Correlation Between Sales and Profit.

Now we're going to use cross-tabs, and we're going to do it in a really cool way. So earlier I spoke to you about using a table as an accompanying element to another visualization, and so let's go to our Sales by State sheet, and I'm going to show you a really quick and simple way of creating a crosstab or a table. And the thing is is that everything we've been doing so far and that we're going to continue to do is leading up to what we're going to be using on our dashboard. So we already have this map, and we decide that we're going to want an accompanying table. Well, instead of building that table from scratch, this is what we're going to do: right-click on your Sales by State sheet tab and choose Duplicate as Crosstab, and then you're going to go to the duplicated sheet right next to its side, and voila, it did it for us automatically; didn't have to create a table. And so this table could be…

A great companion piece on our dashboard for that particular map. And we're gonna change some things here. Let's start with changing the sheet name, so we want to get rid of the number two, and we're going to put the word "crosstab" instead. "Sales by State Crosstab." And I want to show you another formatting thing here. Let's go up to the Format menu and hover over Workbook Theme. Now, this is Workbook Theme, so it applies to every sheet in your workbook, and it's set to Default. Let's choose Modern, and look at how that makes our crosstab look. And you can go to—I'm going to go to the Count of Products—and you see that's also now in the Modern Workbook Theme. I'm going to go back to my Sales by State Crosstab, and let's go back to Format, Workbook Theme, and try Classic. And so Classic does the shading in the first row of a crosstab, and I kind of like the way that looks. And if I go to Percent of Sales by Category and State, you'll see that it has the shading as well.

Our last lesson in this module is simplifying your business rules with custom calculations. Well, we've done several custom calculations already, but we're going to do this one, and the one that we're going to do will show if sales values are meeting the annual quota by region. So I already have my new sheet up. Let's put the Year and the Quarter of the Order Date in columns, and we'll use Sales as our text field. So now we're going to create our calculated field, and we're going to name it Quota Status. We're going to type this one in. After we get it all the way typed in, I'm going to make sure that an error happens, just so you can see how it can be resolved, right. And this error is kind of a tricky one, so doing it on purpose. So we'll type it in, I'll explain the whole thing, and we'll get rid of the error. So we're going to use the WINDOW_AVG function to start, and we want the window average on the sum. So I'm using the SUM function on the Sales field, and right now you're in between two closing parentheses, and we're going to type a comma, and we're going to type—so this is the thing—the WINDOW_AVG, when we did SUM(Sales), that was the expression you can see underneath it, the syntax. So SUM(Sales) is the expression. When we do the comma, it wants us to give it a start and/or an end. These ends are optional, at least. So after our comma, we're going to type -1, and then we're going to do the asterisk for multiplication, and we're going to type another open parenthesis, and we're going to use the ATTR attribute function, ATTR. We can pick it from the list, and then we're going to use the DATEPART function, which you can also choose from the list, and then in single quotes type the word "quarter" with a capital Q. After the closing single quote for "quarter," you're going to type a comma. So now, in the DATEPART function, the date part that we put in for that argument is "quarter," and now it's looking for the date. So we're going to do Order Date. And after Order Date, you now have three closing parens. I want you to go in between the second and the third one and press Enter. Now you're going to type +3. Come outside of the closing paren. After +3, type a comma, -1, asterisk for multiplication, and we can go and copy that whole ATTR, DATEPART. Right, so copy—you don't need the parentheses there—copy the ATTR, DATEPART all the way through Order Date field and paste it after your asterisk. Saves us a little bit of typing. After Order Date on the second line, we need to have three closing parentheses, and it lets us know that the calculation contains errors. So this is the error I want it to happen. If you go to the drop-down next to "Calculation contains errors," you'll see it has two errors, and they're both the same. "Argument 'quarter' to DATEPART must specify a date part: year, month, etc." Look at how they have "year," "month" in those examples at the bottom; they're all lowercase. And if you notice in your calculation, both "quarters" have the wavy red underline. It needs to be all lowercase. So change both of your "quarters" so they're lowercase. I just wanted to give you an example of an error that could happen because of casing, and it doesn't say, "Hey, this is because of casing." You have to look at the examples it gives you, right. And now we get our calculation is valid. So what is this calculation doing? It's calculating the window average of the sum of sales, and then it says -1, that means for the previous year, and then it's multiplying that by the date part of quarter. So it's multiplying that by the quarter of the order date. Now, again, you have built-in help. If you go to the right arrow on the right side, and you can click on ATTR if necessary, and you see it returns the value of the given expression if it only has a single value for all rows in the group; otherwise, it would display as an asterisk, and null values are ignored. And we can collapse that. And after that part, it has a +3. So -1 means previous year in this context. The +3 is meaning it's going to do it on the calculation on the current quarter, but do it for the next three quarters as well. Then we have another -1 times. So let me back up a little bit. I made a bit of a mistake here. +3 means the three rows advanced three rows, which would be the rest of the quarters in a year, and then it repeats the -1 times the quarter piece again. So this is going to determine the quota status based on the average of the sum of sales for the previous year for the subsequent periods. Let's go ahead and click OK on our calculation. So if sales meet the quota, we wanted to say "Quota Met"; if sales don't, "Quota Not Met." So what we're going to do here is we're going to create another quick calculated field, and we're going to name this Quota Met ?. I'm going to use the IF function here, and we're going to reference—we want the SUM(Sales)—and we're going to do > = Quota Status, then, in single quotes, "Quota Met," ELSE, in single quotes, "Quota Not Met," and then I'm going to press Enter, and we need the END statement, and we'll click OK. And now we can drag Quota Met calculated field to Rows. So the first thing I want to point out is that for 2019, there's nothing that's been met, and that's because there's not a year previous to that. Remember, it calculated based on the previous year. So for your subsequent years, you'll see when the quota was met versus when it was not met. And what we're going to do is we're going to hide the field labels for Rows, so we don't need that Quota Met ? there, and we can see which quarters and in which years where the quota was met versus when it was not met. Pretty handy calculations. We're going to name the sheet "Quota Status by Sales," and then we're going to save.

In this module, we started with arithmetic; we created two ad hoc calculations, and we were able to save both of them in our field list for use on other sheets. Then we moved on to grouping your data with calculations. We used a calculation that was in the word document that allows you to either display subcategories or categories and not both at the same time, and it's based on a parameter, so you can either group or ungroup the data. Then we moved on to correlation with calculations. We went over several slides breaking down the correlation coefficient function before we ended up using it, and you saw that there is, in some cases, a correlation between profit and sales. You learned an easy way of creating a crosstab as a companion to another visualization, and you also learned about the workbook themes that can be applied. And then, in the last lesson, you learned how to create another custom calculation which allowed you to see whether sales quotas had been met.

Welcome to Module 11, where we will begin interacting with our data in preparation for our dashboards. In the first lesson, we're going to have fun with filters. Hopefully, we've already used filters during this course, but specifically, you're going to learn how to use a wildcard and a conditional filter to group your data with clarity. In the second lesson, Hierarchies for Revealing the Dashboard Message. We're going to start by creating a set. A set is a grouping based on a filter that can be used to show members that are in the set based on its condition or out of the set based on its condition. After we create our set, we're going to create a hierarchy and add our set and a couple of other dimensions to it. And you know the hierarchy is like Category. If you do the plus sign in front of Category, you'll have Subcategory, so on and so forth. So it allows you to drill down on your visualization. So we'll have a hierarchy, and we'll be able to show items that are in or out of the set. And then we're going to move on to Actions and Interactions. And when we get to this point, we're going to be able to do something really cool called an asymmetric drill down by using another set, another calculated field, and then we're going to use a worksheet action. And I have another slide right after this one where I'll show you the actions that are available. And by using the action, it is going to allow us to create the asymmetric drill down. In Lesson Four, we'll do some more drilling down into the details, and so we can do that from a hierarchy. We'll also have our asymmetric drill down. In Lesson Five, we'll start working with input controls, and the way we're going to do that is we're going to set up a what-if scenario. So this is going to require us to create another parameter and another calculated field. And at the end, when we're done with it, it's going to show a dual line chart. One line will show the actual sales value, and the other line will show the what-if sales value. So what if sales are two percent more than actual sales, or four, or six percent, or eight percent? That's what that's going to produce. And then we're going to spend some time preparing for our first dashboard. We're going to go through our sheets; we're going to make sure our coloration is okay; we're going to change some filter titles, and we're going to add colors to our filters and legends. We're going to make sure that we have Mark labels showing when appropriate, and we're going to want them inside the marks, which I'll show you how to do. Now, I promised you a slide with the actions that are available. So there are actions at both the worksheet and the dashboard level, and so each of them have the same actions: you have Filter, Highlight, Go to URL, Go to Sheet, Change Parameter, and Change Set Values. In this module, we're going to use both Change Set Values and Go to URL. Okay, so we're going to create more filters now. Let's go ahead and bring up a new sheet for this, and we're going to drag Product Name to the Filter Shelf. And we've already done general filtering; we did a top filter; we're going to do a wildcard filter now. So in the Match Value box, we're going to type "acco". Now, at this point, we could exclude it, so all other product names that don't match that wildcard will come up, but we're not going to exclude it. Now, let me show you what happens when we click on "Exactly Matches" and we apply. Let's close the filter and drag Product Name to the Rows Shelf, and we're not seeing anything because there is no product name that exactly matches "acco" or "Echo". Let's right-click on our filter and edit it, and let's choose "Contains," and now apply that one. So you see all of the product names that contain "Echo," and it would be anywhere within the product name, and since it's a wildcard, it's including "EchoHide". Let's click OK on that. Now let's go ahead and drag the Sales field to the Column Shelf, and I'm going to have you do this one on your own. I'm going to have you edit the filter so that it contains "Avery". So now your chart looks like mine. Now what we're going to do is we're going to right-click on the Product Name filter and clear the filter. So now we have all of the product names, which are kind of overwhelming this chart. So we're going to do a different kind of filter, but first we need to do a little bit of research. So what I want you to do is right-click in a blank area of your chart and choose View Data, and we want to sort the Sales in descending order, so we see the highest sale right here, right, and they're in descending order, and I scroll down, and I'm like, okay, so we have some that are greater than 10,000. So we're going to use that in a filter to make this visualization only show those products that have sales that are greater than 10,000. So we're going to go ahead and close the View Data sheet, and we're going to bring Product Name—I'm going to copy it from Rows and put it back in the Filter Shelf—and this time we're going to go to the Condition tab at the top. So we're filtering Product Name by the Sales field based on its sum, and where it has the equal sign, we're going to do the drop-down and select "Greater than or equal to," and the value to the right of that is going to be 10,000, and we're going to apply and OK. So now we have a more usable visualization; it's not overwhelmed; it's focused on the products that have sales that are greater than 10,000, greater than or equal to 10,000 dollars. Now we're going to sort this chart in descending order by Sale. So I'm going to go down to the axis and click. When I click once, it's in descending order, and I'm, as usual, going to change my color to Orange, and we're going to name this sheet "Products with Sales Greater Than or Equal 10,000," and now we're going to create a set and a hierarchy, which are useful for revealing the dashboard message. So a set is like a grouping based on a filter that can be used to show members that are either in the set, out of the set, or in and out of the set at the same time. And then you have hierarchies, and we already have two hierarchies in our data set. If you look in the Fields list, Location is the name of the hierarchy that contains these five members; Product is the name of this hierarchy which contains these four members. So we're going to get started by creating our set, and to do that we're going to go to a new sheet, and we're going to right-click on Customer Last, hover over Create, and choose Set, and we're going to name the set "Top 20 by Sales," and then we're going to go to the Top tab, Select By Field, change the 10 to a 20, and change Average Profit Ratio to Sales, and we'll leave it on the Sum of Sales, and we're going to click OK. So now we see our set, and it's still selected toward the bottom of your field list, and notice the icon in front of it, which indicates it's a set. So with that already selected, hold down your Control key and click on Customer Last and Market Segment. Right-click on any of the selected ones, hover over Hierarchy, and choose Create Hierarchy. We're going to just name the hierarchy "Customer and Market Segment," and click OK. So the three fields we had selected are in the hierarchy, but we want the Top 20 by Sales set to be the first thing in the hierarchy. So I'm going to just click and hold and drag it up so it's in the top position in the hierarchy, and you'll see a guideline going across. So you have your hierarchy, which is collapsible, and it includes a set. Now we're going to pull this all together by creating a visualization. So for our visualization, let's go ahead and drag the Sales field to Columns and our Top 20 by Sales set to Rows, and we're also going to drag Top 20 by Sales to Filters. So what we can do here is—and we could do it in two different places—first let's edit the filter, and we want to choose "Show In and Out of Set," and both In and Out are selected, so we just want to check that and click OK. So now it's showing the sales that are in the set, meaning they're in the top 20, and those that are out of the set. Now we can get more detail on here; could do it two different ways. We're going to end up hiding this field label, so let's do that first. Hide field labels for Rows. And we can do it from the Rows shelf. Do the plus sign in front of In and Out, and now it's showing Customer Last, which is the next thing in our hierarchy that we created. If we do the plus sign in front of Customer Last, it will show the Market Segment. I think it's pretty cool using sets and hierarchies. So I'm going to collapse it to Customer Last, so I'm going to just do the minus sign on Customer Last, and there we have the items that are in the set part of the top 20 and the items that are out of the set. And since we hit the field label, if we wanted to get it back, we can do that from the Analysis menu, and if you go hover over Table Layout, you can do Show Field Labels for Rows, and that also gives you the ability to drill down into the set members if necessary, into the hierarchy if necessary. We're going to hide the field labels again. Let's show our In and Out filter, so I'm going to right-click on it and Show Filter, and so the end user has the ability to just see—All. I'm going to uncheck All, and I just want to see the ones that are in the set, and then I'm going to uncheck that and see the ones that are out of the set. Go back to All. I'm going to name this sheet "Top 20 Customers by Sales - In/Out," and I'm going to give color, of course, to my bars. Go ahead and save.

Now you're going to learn a cool action which creates an interaction for your end users, and we're going to do this by, of course, creating yet another sheet. And on this one, let's start by—let's grab our Category field to Rows and expand it. So when you expand the Category field, it shows the subcategories for every category. What we're going to create is a situation where you can expand just one category at a time. So we can go ahead and get rid of Category and Subcategory on the Rows Shelf, and what we're going to do is we're going to right-click on the Category field, hover over Create, and we're going to choose Set. So this is going to be like a placeholder set; we're not going to give it a different name, just Category Set. Pick any member, so just one, and click OK. Whatever category you chose is going to be overwritten by the set action, so consider it temporary. Now we're going to create a calculated field, and we're going to call it Asymmetric Subcategory, and it's just an IF THEN ELSE statement. So we're going to grab IF, and we're going to choose Category Set, THEN Subcategory, ELSE Category, and then we just need the END statement. So this is what's going to cause the set we created to change according to a selection, and we're going to click OK at the bottom. And now we're going to drag the Category field and our Asymmetric Subcategory calculated field both to Rows Shelf, and go ahead and drag Sales to Text. At this point, we're not quite done. If I click on Category to expand it, it's still going to show all the subcategories for each category. I'm going to go ahead and collapse that. We have to create a worksheet action to pull this all together. So we do that from the Worksheet menu and click on Actions. So it's showing actions for this entire workbook. We created our pie chart; it actually created a highlight action on its own for us, and so we are going to go down and click on Add Action, and you have six different worksheet actions that you can add: Filter, Highlight, you can go to a URL, you'll get see examples of that, go to a sheet, change the parameter, or change set values. Now we also have dashboard actions, so you'll get…

More actions later in this course, we're going to choose change set values, and we're going to name this action asymmetric drill down. The source sheet is the sheet we're currently on; we're going to run the action on select. You'll learn more about these choices in a little bit. And the target set, we're going to do the drop down, hover over Sample Superstore, and choose our category set. Running the action will assign values to the set; clearing the selection will—we want it to—remove all the values from the set. Click OK, and OK again.

So this is the tricky wicket; it's going to look like it's not working. So if I go to the Rose shelf and I expand category, we get the usual behavior. I'm going to collapse that again. But in our table, if I click on a category—so click on Furniture—that's the select action, and you can see that it only expanded the furniture category. If I click on Office Supplies, the same thing happens, and Technology might as well. And then I'm going to click on Technology again, and that's how you collapse it. And that is known as an asymmetric drill down. I've already named the sheet Independent Category Sales, and we're going to add another worksheet action that will take you to a URL. The URL will open in a new browser tab.

So we're gonna go to Worksheet Actions again, and at the bottom, we're going to choose Add Action and go to URL. We're going to name this Learn it! And just to point this out to you, if I look through this list of sheets here, it's not going to show every sheet that we have in our workbook. However, if I go to the Sample Superstore drop down, it will show you all of the sheets in alphabetical order. So we want to go to our Independent Category Sales sheet. Let's talk about the choices under Run action on. I don't think you want to use Hover; that literally means if you hover over anything, it's going to run the action. Select will force you to select something in order for the action to run, and we're going to use Menu, and I'll show you what that does when we get out of here. And so we're going to leave it on Menu. We're going to choose New browser tab under URL Target, and when we enter the URL, we don't have to do the HTTP formatting in front of it; we can just type learnit.com, and you'll see underneath it, it gives it the right HTTP prefix, and we can click on OK and OK.

So because this is a table—if this was a line chart or a bar chart or some other kind of visualization—we'd be able to right-click anywhere. But since we have this asymmetric drill down going on, if I right-click, it's going to expand right. So I don't want to right-click anywhere but on a number. So I'm going to right-click on a number, and it's still going to expand it, but you'll see on the menu that pops up at the very bottom, there's a globe, and next to it, it says Learn it!. We're going to go ahead and click on that, so it opens on a new browser tab. And there you have it, an action that points to a URL. I'm going to go ahead and close the browser and get back over to Tableau, and I'll show you another place where you can access that go to URL action. If I expand Furniture by clicking on it, you'll notice right here at the bottom, it gives you that on the menu as well.

Now I'd like to show you the other Run action on choices. And so let's go back to Worksheet Actions, click on your learned action, and choose Edit. Instead of Menu, let's put it on Hover and click OK and OK again. Now if you hover over anything, it's going to cause that to happen. And so that's why I said I don't think that you're going to want to use Hover because you can end up with like a whole bunch of different web tabs going if you choose Hover. Let's go back to Worksheet Actions; we're going to edit Learn it again, and this time choose Select and OK and OK. So we actually have to select something for the action to happen. If you click on any value—if you click on anything in here—it's going to run the action. So I prefer on the Menu; I feel like that gives me more control. What I'm going to have us do is go back, and I'll have you do this on your own: go back and change that Learn it action to Menu.

So our next topic is literally drilling into the details, and I think we've covered that a few different ways. We created the asymmetric drill down, which is really super cool, and you know already know how to drill down using hierarchies or like date fields, right? So, for example, we've done this several times throughout the course, but let's just—we're going to get rid of it—but let's grab the Order Date field and put it up in Columns for a moment. And so if we wanted to see the quarter or the month of the Order Date, we can drill down by using the plus sign, right? And we've done that several times. So I think the new thing—the really interesting thing here about drilling down—is the asymmetric drill down for a dimension. And I can keep drilling down on the date. I'm going to get rid of all of the date pills in the Column shelf, and we can go ahead and save this.

We've also had a little bit of experience working with input controls, but we're going to do a really cool situation here. And so let's go ahead and bring up a new sheet. Sorry, I might nerd out on you on this one because we're going to create a what-if scenario with a parameter. So, for example, what if sales were four percent more, or six percent more, or ten percent more? We're going to create that situation. So the first thing we're going to do is we're going to drag Order Date to Columns and Sales to Rows, and we're going to right-click on the Year of Order Date, and we're going to hover over More, and we're going to click on Custom. From the drop down where it says Years, we're going to select Month Year and click OK. So now we're going to go ahead and create a parameter, and we're going to name it Sales What If. We're going to give it a data type of an integer, and we're going to change the current value to zero, and we're going to allow a range. We're gonna check Min Max and leave their values in there, and we're going to change the step size to two, and you'll see what that means shortly. Go ahead and click OK. And then we want to show that parameter, so I'm going to right-click on it and Show Parameter.

And now we're going to create the calculated field that's going to reference our parameter. So we'll name this calculation Sales If, and we're going to reference the Sales field, and we're going to use the asterisk for multiplication, and then in an open—we need two open parentheses here—and we're going to reference the Sales What If parameter. We're going to do the slash for division, type 100, close the parentheses, type plus one, and close parentheses. So the calculation is: take the Sales field and times it by whatever is what in the Sales What If parameter, divide that by 100, and then add one. Basically, that's what's going on because of the way it's written, and it's changing the order of operations by using the parentheses, so it's going to be doing the division part first, then adding 1, and then multiplying it by Sales. We can go ahead and click OK. So we have our parameter and we have our calculated field. I want you to notice that on our Sales What If parameter over to the right, it's set to zero. So what's going to happen next will make a little bit more sense because that's set to zero, and you'll see what I mean right now. So we want to drag our Sales If calculated field and drop it on the Sales axis, and we're only seeing one line right now because that parameter is set to zero. So when we use the parameter control and we do the right arrow on the slider, it goes up by two because that's the setting that we put in there, right? So once we get it on two, we see two different lines, right? So this is saying what if sales were two percent more. If we right arrow on the parameter again, we're seeing what sales would be if they were four percent more. So the green line is the actual sales, and the orange line are the what-if sales based on the value of that parameter. So we can go up and see it's going up by two, and it would be nice to have a color Legend on this, so we're going to go to the Analysis menu, hover over Legend, and choose Color Legend. So we get our Sales and our Sales If, and we're going to go ahead and name this sheet, and it will be Sales What If Analysis, and you can save your workbook again.

So now we're going to spend the rest of this module preparing for our first dashboard, and that means we're going to review the sheets we have, do some formatting things on them, and also decide which sheets we're going to use on our dashboard. So what I'm going to do is I'm going to switch to Sheet sorter view—the first view button down there—so that we can see all of our worksheets at the same time. And let's select the Sales by Category and Subcategory sheet. You can just double-click on its tile to bring it up. So I look at the title, and it's descriptive enough. I've already applied the orange colors to my bars, so it has a little bit of that formatting going on. If you have a category filter on the sheet, you can go ahead and clear the filter. We're going to end up—in the next module—we're going to create what's called a dynamic filter, so whatever you filter for will show in the title with some additional text. So we don't need the filter on this particular sheet, and this will be the first sheet that we're going to add to our dashboard when we're ready to create it.

Let's take a look at our pie chart sheet, and we're happy with the Sales by Market Segment, and what we want to do is—we're happy with that title, we're happy with the coloration—at least I am—and the caption; we can—we're happy with that caption as well, although we'll have to put the caption on the dashboard as well. So we're going to also use this sheet, and remember I said pie charts are good as companion charts to other related data. So the next sheet—the Market Segment Histogram—we'll use with that pie chart sheet, and that when we're good with the coloration. Now on this one, we're showing the summary on the right-hand side; that will not come over to the dashboard. Let's go to the next sheet: Sum and Profit by Year. For this one, what I'd like to do is have it fit the entire view instead of just standard, thank you. And I think because I've been using oranges a lot on my sheets, I want to change the colors on this one. So I'm going to just go to the color card and edit the colors, and I will change Profit to Orange and then apply. So we have that color coordination going. You know, you want to have consistency when it comes to stuff like that. So whatever colors you really like, those are the colors you should be using, or if you have a company standard that needs to be used, then go ahead with that standard. And so on this one, I think we should go to Label and show Mark Labels. Now that's kind of convoluted, so let's change the size of the labels to like seven point and see if that makes it a little bit better. Yeah, some of them are overlaying, so I might decide to just—let me see if I can get it easy and smaller. I don't know how small it is to go. I know it'll go to seven, but I'm going to try five. Oh, it's not gonna like size. So the lowest you can go is seven because they're overlaying. I'm gonna just get rid of the mark labels; just—it's gonna add confusion. Let's see, maybe I can put them on for one and not the other, which is what I have now. So I just have the labels on for Sales. On a dashboard, I might make a caption saying that the labels are representing the sales values. And before I forget, let's go back to the pie chart for just a second. The other thing we want to pay attention to are titles on our cards on the right. So this is just showing the grand total of all sales, and so I don't want it to say Sum of Sales. I'm going to do the drop down and Edit Title, and I'm going to call it Overall Sales, so it's a little bit more clear there. Now I'm going to go to the Annual Sales sheet, and this is by Category and Subcategory, and so we have our Legend on the right side for the subcategories. I think this one is in pretty good shape, so we'll go to the next sheet. Now we're not going to use this Total Sales by Subcategory Box Plot; we're going to use the Total Sales by Subcategory Box and Whisker Plot instead for a dashboard. So let's review what we can do with this one. So the first thing I'm going to do is have it fit the entire View, and then I'm going to just change my color to my orange color. And let's move on to Sales Aggregates, and we're not going to use this on our dashboard, so let's move to the next one. On this one, I think the only thing I want to change is the position of the mark labels; I'd like them to be centered inside the bars. So we're going to go over to Label, and for Alignment, we're going to do the drop down, and under Horizontal, you're going to select Center. So now they're inside the bars, exit a little bit more concise. Now if we go back to our Sales by Category sheet, we could consider doing something like that. Let's see what happens if we change this from Standard fit to Entire View. So this bar is kind of—when you have short bars like this—we could do it. Let's see what the effect is, but I don't think it's going to fit in this Office Supplies Fasteners bar even if we adjust the font size, but it's worth a try for consistency. So I'm going to go to Label there, Alignment, I'm going to Center, and so it just almost fits. I'm going to go back to Label, and let's see if it'll let me go—yeah—let's go to Font and change it to seven, so that will work, and we have the consistency. Now let's go to the chart after our Top 10 Products by Sales Value, and that's the Average and Total Sales by Market Segment, and I think that we may use that on the chart; we'll make that decision later, but I'm going to go ahead and give it my color as usual. And then the next one is—let's see what we're going to do with this one—we will use this; let's make it sit the entire View; coloration is fine; we have our Region and Category Legends over here, and I think that that is fine. Let's go to the next one: Quantity by Sub-quantity and Category; we're not going to use this one on our dashboard, so let's go to our Sales Trend by Year. We'll use this one; let's change the color; it's already sitting the entire View; and let's go to Label and show Mark Labels to give it more depth, and we're ready to move on to our next sheet. So this is Sales Profit Quantity by Category and Subcategory; we will leave the title as is; we just won't show it on the dashboard; and let's go ahead and fit to the entire View. I think the coloration is okay; it could be a little bit better; let's see what we can do about this. So I'm going to go over to Sum Profit, and we're going to change that title too, but let's go to Edit Colors first, and we're using Red Green Diverging—Diverging—and I'm gonna just change that to Orange Blue Diverging, and we'll do five steps and click OK. And let's go to the next sheet, which is Profit by Category; we're definitely going to keep this one. Oops, I'm gonna go back one sheet because I didn't change the title here, and the title is going to be Profit Range. And so yeah, we're keeping this one; it's in good shape; our area chart. And I'm gonna go ahead and look at the next one: Sales and Profit by Subcategory; this looks like it's in good shape. And let's go to the next one; we're not going to use this on our dashboard; let's go to our Days to Ship, and we'll use this on our dashboard; I just might want to play with the colors here a little bit. So go ahead and change these colors for Ship Mode; I'm going to Edit Colors and see what I can do here. I'm not fond of that red color, so what I'm going to do is I'm going to change Standard Class to like that greeny goldish color, and I already have a blue in there; I have my orange, so I'm gonna go ahead and do OK and apply. So I like that. We have our Days to Ship slider here, filter, and we have our Order Date filter, and they're both fine for now. Actually, I want to give them some color, so I'm gonna go to the Days to Ship one and do the drop down, Format Filter, and Set Controls, and over here for the body—for shading—I'm gonna do like that pale orange color. And so you see it did it for both to make them stand out a little bit more, and I'm going to close that panel, and I'm going to do the same for the legend, so I'm going to do its drop-down arrow, Format Legends, and use the same color for that one. Let's go ahead and save at this point, even though you know it's saving in the background. This one, I also fit to the entire view; it makes those same-day ones a little bit easier to hover over the individual ones. And we're going to go to our next one, which is our heat map. Let's go ahead and fit it to the entire View, and I want to get rid of that worksheet background color there; it's not really too visible. So for that, I'm going to right-click anywhere within the heat map and go to Format, and then I'm going to go to the paint bucket, and for the worksheet, I'm going to put the shading back to None, and then I can close that panel. And since we're only dealing with States and not provinces here, we can go ahead and edit the title. So I'm going to right-click and Edit Title, and I'm going to get rid of Sheet Name, and then I'm going to just type Average Sales and Profit by State. Next we have our Sales by State map, which I think is in pretty good condition. We may need to do some things with our cards on the right, but let me actually scroll across on the map to kind of center it really well, and then State Province; we can just change that filter heading title—well, the filter title—just change it to State and get rid of Profit Province. And we have our Sum of Sales Legend, which is good, but we're gonna make it Overall Sales the title. And this is our 2018 Population, our data layer, so I think that's pretty good, and we can move on to our next one, which is the Sales by State table that we're going to use as a companion piece. First thing I'm going to say is we can get rid of its filter over here; we just don't need the filter there, the filter card. And I'm going to just change my color to Orange. Let me see what happens if I do fit with—that's just too much of an area—so I'm going to just go back to Standard, and we can change its title to just Sales by State; it doesn't have to say Crosstab there. And by the way, if you double-click a title, it will open up, so I'm gonna just do Sales by State as the title. You're going to go to our next map, which is our filled map—the Number of Customers by State Province—we don't have to make any changes to this. Let's go to our Sales by Region where we did the polygon, and I really want to change this to—so in the Marks card, let's go to the drop down and choose Map—so it

gives us we're still at the filled map and actually we'll leave it like this. I think the only thing that will make it clearer, well we want the regions to be to highlight, so we'll just leave it like it is now. And I just wanna scroll it, so let's Zoom, go to my scroll Arrow here, just move it a little bit on the page, and let's go to our next one. This is percent of sales by categories and state. We're not going to use this on our dashboard. Let's go to profit status by year. This is pretty cool; we'll use this on the dashboard. So what I want to do is just give it the color. Profit status by Year, and that could be a companion to another visualization. And I'm going to scroll across some more; we're almost done with this process. And let's go to profit or loss, and I think we might use it. Let's change the color on it; we can make that decision at the dashboard level as well. Let's go to our next one, consumer sales, and we're not going to use this. We're not going to use 3M versus non-3m, so let's keep proceeding. Number of products and sales by market segment; they might use this one. I'm good with the coloration on it. Continuing sales by month over time; this is our anime animated visualization; we're definitely going to use this one. And I'm just going to change the color to my normal Orange. I'm going to have it fit the entire View, and on the right side on that control, I'm going to do its drop down and edit the title, and it's just going to be month, and okay, and we can proceed to the next one.

Analyzing by region and customer; let's do some clean up on this one. This is where we have our parameters where, and we did Dynamic titles, right? So it's on quantity and sales now. What we're going to do is let's put this to the entire View, and we're going to get rid of this y-axis title, the field label there. So I'm going to right click on it and hide field labels for rows, and I'm going to do the same thing, hide field labels for columns, so clean it up a little bit. We'll go to the next one, which is a average profit ratio per segment, and that's when we created our own calculation there. We may keep it; it's in good shape. Monthly cost and profit by market segment; I think this is in fairly good shape. Let's see what we can do here. Gonna change the month order date title to just month, and I'm going to format it, and I'm going to give it the orange, the light, the pale orange shading, and I'm going to do the same with the legend in terms of the shading. I'm gonna see what it looks like when I fit it to the entire View; not much change; it was already taking up pretty much the entire View. Now it looks like I have some kind of green shading on the worksheet, so I'm going to right click and go to format and go to the paint bucket, and I'm going to get rid of that shading and close that pane. I'm going to save again at this point. I think I want to switch up the colors a little bit too, so I'm going to go to color and edit. I think I want the cost, yeah, I want the cost to be red; profit I'm going to make green. I'm gonna deviate from my orange here and click apply, and now we're going to go to the next sheet, which is our Dynamic grouping, which we're going to keep. I think what I'm going to do is I'm going to fit it to the entire View, and I'm going to show the mark labels, and for the mark labels, I want them to be centered horizontally. And so if I group it, has the marked labels, and if I ungroup it, has them as well.

Let's go to our correlation. I think this is good. I think I want to use a different color palette though, so let me go to correlation. I'm going to go to color and edit the colors, so we have red, green, gold diverging palette. I'm going to change it to the orange, blue, white diverging palette, and I'm going to click on that first box that has that deep dark color on it, and I'm going to select orange for that one and click ok, and I'm going to apply. Hmm, yeah, let's take off the step color, so now it's custom diverging. I'm going to go back to Let's do orange and gold, and let's see what happens when we step that one. I like that one better; we'll go apply and click ok, and let's save again. We're gonna go to quota status; this will be a good companion piece, so I'm going to just change my color to Orange. And then we have products with sales graded in ten thousand; this one's in good shape; we just want to add the mark labels and Center them. We can go to our top 20 sales by customer in and out set; this is in good shape. Yeah, I think if I put it to entire view it doesn't make sense there, so I'm going to leave it on standard, and actually let's see in and out sales; let's go ahead and show the mark labels centered, and we can go to our asymmetric drill down, which we're definitely going to use as a companion, and we're going to just change the color to Orange on this one. And then we have our what if sales; happy with the color on this one, and we want to change the title on the sales parameter; we're going to change it to use slider to adjust percent, and I'll use the percent sign. I'm going to set it back to zero, and we have that one line; actually I'm going to just leave it on two, so we did two steps for this one. So we've gone through every sheet, did some minor formatting, determined mostly which sheets that we are going to use on our dashboard. Go ahead and save your file again.

By way of recap, in module 11 we started interacting with our data in preparation for our dashboards. We started with more filtering, and this time we got to use a wild card filter as well as a conditional filter. Then we moved on to hierarchies, but first we created a set, which is a grouping based on a filter that can be used to show members that are either in or out of the set. And once we created our set, we then created a hierarchy which allows you to drill down to the hierarchy members, and we added our set to the hierarchy. In lesson three we created another set and a calculated field, and then we used a worksheet action to replace the set values so that we could have an asymmetric drill down. We also used another worksheet action by adding a URL, and we showed it on the menu. We reviewed drilling into the details by using our asymmetric drill down. We also went over drilling into the details by expanding different levels of a hierarchy. Then we moved into working with input controls where we created a what-if scenario with a parameter and a calculated field, so you could see actual sales versus what they would look like at two percent more or four percent more, so on and so forth. The last part of this lesson we spent some time preparing our sheets for our dashboard, so we made sure that our colors were alright, that Mark labels were showing when necessary, we changed the color of our filter cards and our legend cards just for consistency, and we decided for the most part which sheets we're going to use on our dashboard.

In this extensive course we started by connecting to a variety of data sources; in particular, text, Excel, and access database data sources. We started summarizing the data for dashboards. We started by doing arithmetic using ad hoc calculations, which are calculations you perform right in a shelf, and then we moved into grouping data with calculations, and that's when we did our Dynamic grouping. You learned how to perform correlation with calculations and how to use crosstabs flexibly. We moved on to simplifying your business rules with custom calculations, so that's when we created the quota status calculated field and the quota met calculated field. In the next module, module 11, we began interacting with data for dashboards. We had some fun with filters, so that's when we use the Wild Card filter and using the contains keyword, and then we did a conditional filter. At that point we moved on to creating sets and hierarchies, so a set is like a grouping based on a filter that can be used to show the members that are either in or out of the set, and then we created a hierarchy which you can drill down on. We got into some actions and interactions, and that's when we created the asymmetric drill down, and we used a worksheet action to add a URL to the sheet that pointed to learnit.com. We began working with input controls, so that's when we created our what if scenario with a parameter and a calculated field where we could see what our sales values could be if they were two percent or four percent higher than where they are right now. We spent a significant amount of time preparing for the first dashboard; we went through several sheets and adjusted formatting, titles, colors, so on and so forth. We tried to make sure that there were accompanying tables and pie charts for for dashboards.

Hello everyone, I am Trish Connor Cato. Welcome to Tableau video training course. Tableau is a visual analytics platform that makes it easier for people to explore and manage data and faster to discover and share insights that can change businesses and the world. It helps people and organizations be more data driven. Tableau supports data prep, analysis, governance, collaboration, and more. As a continuation of the Tableau introduction video training course, this Advanced course is designed to boost the students' competence when it comes to creating visualizations and creating dashboards. The course goes into considerable detail on these two subjects and explores, among other areas, how to create a range of different charts, Maps, user-defined Fields, as well as a host of advanced features and abilities. We'll start by connecting to a variety of data sources; this will leave you with some great workbooks to practice on and develop on your own after this course. You'll learn how to use dashboards to get results as well as some more advanced dashboard features that will make it easier for users to understand and manipulate them. In module 12 we'll finally build a dashboard, and we're going to be using dashboards to get results, so the first lesson is about guided analytics with Tableau. I'll show you what all of that means, and we've already done some of it when we were preparing for our dashboard. You'll learn how to share your results in a meeting; we're going to be doing notes and annotations on the dashboard and using external data to enrich our dashboard, and we're going to do a really cool thing on dashboards concerning dates.

Guided analytics; what are guided Analytics? Well, it means several things. One thing that it does is it enables easier dashboard navigation by increasing accessibility and Clarity. It helps increase usability of the content you've created and helps the audience glean valuable insights faster. Most importantly, it helps the audience transition to using visual Analytics. A lot of people are still doing their analysis in like Excel; no visual analytics is in their life, so this will be helpful to that audience. So what do you do for guided analytics? Well, we've done some of this; you customize filter titles for clarity; you encourage action with captions; you track filter selections with Dynamic titles, which you'll learn how to do in this module; you'll drill down with Filter actions; you can pack your tool tips with more details; you know, when you have a visualization and you hover over it and you see the tool tip, it automatically includes the fields that you're using in the view, but you can add to them, and then you can filter by selection, which is really cool, and it allows greater control. Let's get into it. Okay, so let's start with guided Analytics, and we've already done some of those steps. So we've already customized our filter titles for clarity; we will put descriptive captions on some of our visualizations or some of our dashboard pages when we get there; and then the other thing that suggested is to track filter selections with Dynamic titles, so we're going to set that up now, and then we're going to use it on a dashboard with a companion sheet. And so what it means is that it would be nice when you filter if it says at the top of your screen what it's filtered for, or if it's not filtered at all; that's what we're going to set up now, and we're going to do that by creating a new sheet, and that sheet is just going to contain one thing; what we're going to use as the title that updates dynamically. So let's name this sheet category title, and depending on what kind of dynamic title you'll need, you may have several sheets with different dimensions and then title that you can use on dashboards. So this is a title specifically for visualizations where you can filter by category, and it's a weird setup, but we're gonna also we're gonna grab the category field and drag it to detail on the marks card, and then we're going to change the mark shape to polygon, so you just have that blank box sitting underneath the title. So now we're going to double click the title placeholder to open it up, and you're going to select and delete sheet name placeholder from in there. We're gonna go over to insert on the toolbar, and at the bottom we're going to select category, so it puts it in as a placeholder. Now press your home key to get in front of that and press enter, and then up Arrow to go up to the empty line, and on this empty line you're going to type select a category, and then at the end of the categories placeholder on the second line you're going to do a space at the end of it, and you're going to type the word selected. Okay, and let's select all of that stuff and change the color to Orange and also make it bold, and we're ready to click OK here. Now the second thing we're going to do is grab the category Dimension and drag it to the filter Shelf, and we're going to have all of them are selected, which is what we want, and we're going to click ok. So notice it immediately updates; it says select a category, and once we added the filter it says Furniture, office supplies, technology selected; pretty cool; it's dynamic, but it's going to get better because we're going to use this as a companion to another sheet, so we're going to create a dashboard in order to do this.

So now we are going to go ahead and create our dashboard. So we're going to use the second button; we've been using the first one to create a new sheet; we're going to use our second button, and the first thing I want you to notice here is this white area is not really filling up the gray area, so we want it to fill it up as much as possible. On the left side you have a dashboard tab; it's set to default; you can also create a dashboard for mobile view, and then you have the size, and I'm going to change the size now. Would I change mine to might be different than what you change yours to because of what type of monitor you have and its resolution. So I'm going to change my width to 1400, and I'm going to change my height to 900, and that fills up most of that gray space for me. So now it says I have a custom size of 14 by 900, and if I click anywhere it will collapse that, and then you have your list of sheets in the order they are in your workbook. So what I'm going to do is I'm going to drag this slide bar down so I can see the last sheet, and if I hover over that sheet in its right corner it shows a little box with a diagonal Arrow. If I click on that box it's going to take me to that sheet; we don't want to do that; it also shows a little thumbnail of what's on the sheet, which in this case is not very much. We're going to click and hold on that sheet, and we're going to drag it and drop it where it says drop sheets here, and then we're going to go to the toolbar, and we're going to change it from standard to fit width. Now we're going to locate the sheet we want to use with this by scrolling all the way up to the top and hover over sales by category and subcategory. We're going to grab it, and notice as we drag it into the view, if I stop here it's going to place it on the left; if I go here it's going to place it at the top and overwrite our title; it'll place it on the right as I go here, and if I point toward the bottom, that's where to place it, and that's where we're going to drop it. And then what we're going to do is we're going to put our Mouse right above its title, and it changes to a double arrow; we're going to click and hold and drag up and drag up until you're covering that polygon shape that's underneath the title there. The other thing we can do is we can get rid of the visualization title, so I'm going to right click on sales by category and subcategory and choose hide title. So how are we going to make this filtering happen? So select your title, select a category all selected, and if you look to the right of it you have an X which will remove it from the dashboard; you have that go to sheet icon, and then you have a funnel that is set to use as a filter; you also have a more options drop down arrow; we want that funnel set the way it is, and then we're going to select our bar chart, and it has the same icons, and what you want to do on that is you don't want to use this as a filter, so you're going to hover over the funnel that says use as filter; you're going to click it, and now if you hover over it it says don't use as filter, and you can click away from all of that. So this is how it works; dynamic titles updating. All right, so this is a bar chart that's showing the category and the subcategory; the filter is select a category, right? So if we select any of the bars within a category, you'll see that it now says Furniture is selected. If we select any bar in office supplies, office supplies selected, and if we do one in technology, it updates, and if we click away then it's all selected again. So this leads me to believe that maybe we should name this select a subcategory bar or click on a sub category bar. And so we can easily get back to that sheet by scrolling down here and using that go to sheet icon; that's one way of doing it, and then all we're going to do is edit the title by double clicking it, and I'm going to choose click any sub category bar and apply and click ok, and then when I go back to my dashboard it says that there. So it's more specific information instead of click a category, so and then I notice it should say all selected; well, it does say all selected if I click on that furniture selected, so that'll be fine, right? Maybe we need to modify it and make it a little bit better. So once you have a bar selected again, you can click on that bar again or you can click in a white area to deselect everything, and this time we're going to go to the sheet from the title, so I'm going to use that to go back to that sheet, and I'm going to modify the title again. So category selected; I'm going to put the word the in front of the category placeholder, and then afterward I'm going to type the word category is selected, so we're telling them to click on a sub category and then the category would be selected, and I'm going to put a period at the end of that one and click ok, go back to the dashboard. So now it says the all category is selected, and that's fine when they click on a bookcase, the furniture category is selected, so on and so forth. So that's how you can track your filter selections with Dynamic titles, and I think we're going to add something else to this dashboard. Let's see what would be a good companion here. In the meantime, go ahead and save your file, and by the way, you can select more than one bar by using your control key. So I'm going to click on a bar in the furniture category, click on another one in office supplies, and another one in technology, so you can see how it updates, and I'm going to just click in a blank area to deselect everything. Another

The first thing I'll point out to you is in your sheet list, any sheet that you have on your dashboard will have that little blue check mark next to it. And so we're going to add another sheet to this dashboard, and we have one right above the one that we have on there; it's a table: Total Sales by Category. And so I'm going to click and hold on that one, and I want it on the right side. So when it's shaded on the right side, I'm going to let it go. And of course, that doesn't take up a lot of space. I'm going to go ahead and change it to sit the width, and I want to put a couple of things underneath it to fill in that blank space. Right. And so one of the things that we can do, if we look on the left side, on the dashboard tab at the bottom, we have objects. Right, and we're going to select text and drag it onto the bottom right side, so we get our edit text dialog box. So I type: "The table above shows the total sales by category. It will also filter based on your bar selections." And I'm going to do Control-A to select all of that text. I'm going to make it bold, I'm going to make it 12-point, and we might make it even bigger, and I'm going to give it an orange color and click OK. That's pretty good sizing. So what I'm going to do is I'm going to just leave that one right there for now, and we're going to add something else before we add the image. Let's do a few other things. We don't need the title, the sheet title for the table on the right: Total Sales by Category. So I'm going to right-click on that and choose Hide Title. Let's double-click our dashboard sheet tab, and we're going to name it Sales by Category and Subcategory. And so notice we already have a sheet with that name, so I'm going to click OK on that message, and at the end of the name, I'm going to do a dash and then I'm going to type the word "dashboard". Then we're going to go to the dashboard menu and choose Show Title, so we have this at the top, and then we can edit the title. Notice it's saying "Sheet Name" in there. Well, we'll just leave it like that. So we can't have two sheets with the same name, like in most programs. So now that we've done that, we're going to do some sizing here before we add our image. So I'm going to put my mouse in the middle between the bar chart and the table, and I'm going to click and hold and drag it to the right, about that much, so you can clearly see more bar than anything; that's the star of the dashboard, the bar chart, and it got rid of having all of that extra space in the table. And then we'll resize the right side after we get our image in. Now, before you are going to be able to get the image in, you need to know what directory you need to save it in. So I'm going to just show you this on my screen; you don't have to do this yet. There is a file in the video description called learnit.png, and you're going to want to go there and grab that file and cut it. It has to be in a specific directory, and I'm going to tell you the directory that it has to be in. Now I'm going to show it to you. So it needs to be in My Tableau Repository, and then there's a folder in your repository called Shapes, and within that folder, you need to create another folder and name it My Shapes, if you don't already have one. And then that My Shapes folder is where you want to put that learnit logo. So: My Tableau Repository\Shapes\My Shapes. Go ahead and pause the video until you have it there, and now we're ready to add the image. So under Objects on your dashboard pane, I'm going to click and hold on Image, and I want to drag it over so it's on the lower right, underneath the text box. I'm going to let it go. So now you can insert an image file, which is what we're going to do, and you're going to click on the Choose button, and it should take you directly to your My Shapes directory, and I'm going to just double-click the learnit logo, and then I'm going to click Center Image under Options, and for Alt Text, I'm going to say "learnit logo," and I'm going to do OK. So now we have the little logo there, and we can resize things. I'm gonna put my mouse between the table and the text box, and I'm going to drag upwards, so I'm kind of getting rid of that blank space, and then I'm going to put my mouse between the text box and the logo and drag upward a bit as well. So there you have it; you have your dashboard, you have your Dynamic titles, you have your Sales by Category and Subcategory dashboard title up there, and the thing is is we can also connect the table so that it's filtered as well when we make a selection. So go ahead and select your table. I selected Office Supplies in a table, but it doesn't matter, and on the right side of it, you want to click that filter button, so you're not using it as a filter. And then in my bar chart, anything I click, not only does the title update—well, at this point, subtitle—not only does that update, but the table will update as well. So all the focus right now is on Office Supplies, and that's why it says here: "It will also filter based on your bar selections." So we made that happen. All right, now I'm gonna just click away so I get my full scheme of everything back, and save your file.

So we're going to create another dashboard, but before we do so, we want to copy our pie chart. So I'm on the pie chart sheet; I'm going to hold down my Control key and click on the sheet tab and drag it to the right of itself to make a copy. So on the copy, the first thing we're going to do is edit the title. We can leave the word "Sales" there; just put the word "Average" in front of it. And then on the Marks card, we're going to change the Sum of Sales for the Angle and for the Size, both of those to Averages. So I'm going to right-click on the Angle one, hover over Measure, and choose Average, and do the same for the Size one. So instead of recreating the wheel, so the dashboard that we're going to create is going to have two pie charts, a histogram, and a table on it. Let's go to our sheet that says Average and Total Sales by Market Segment, and because the histogram has Quantity on it, we're going to grab the Quantity field and drag it to Text on the Marks card. And then what we're going to do is we're going to click on it, and we're going to drag it into our table, so you'll see that dashed line, and it changes the whole thing. Well, we do want it in a table, so we're going to fix that. So just go to your Show Me and choose Text Table. And so in our Text Table, we have Average Sales, Sales, and Quantity. So we just need to update the title here, and instead of Sheet Name, I'm going to put "Average," I'm going to do a dash—average total and quantity of sales—and actually, instead of a dash, I'm going to put a comma between Average and Total, and click OK. So we have our two pie charts, we have the market segment histogram, and we have this Average Total and now Quantity of Sales by Market Segment, and we're going to put those on a new dashboard. So I'm going to do my New Dashboard button. So go ahead and customize the size of your dashboard. I'm using the same size I used on the previous one, and the first thing we're going to do is we're going to grab the market segment histogram and drag it into the view, and then we're going to grab our first pie chart and we're going to drag that on the bottom of the view. The second pie chart is going to go to the right of the first one on the bottom half of the view, and then we're going to grab the one that says Average and Total Sales by Market Segment table, and we're going to drag that one—I'm actually going to put it in the middle on the bottom, between the two pie charts—and then what I want to do is I can decrease the size. So the market segment histogram, I'm going to put my mouse—I'm going to select that heading—I'm going to put my mouse there and drag it down, so it takes up more of the view.

Now I went and changed—so, and and you're going to need to do this because your titles on Sales on the two charts are orange and too big, and we want consistency here. So, and I didn't finish modifying mine, so mine are still bold, and I don't want them bold, so I'm going to go back to that sheet, using the Go to Sheet for the Sales by Market Segment pie chart. I'm going to go to that sheet, double-click the title. Now, in your case, if it's still orange and 18-point, you're going to do Control-A to select everything, make it 11-point, get rid of the bold, and make it black, and OK. And do the same thing—since you're already out here—do the same thing on the second pie chart. We're going to select everything; we don't want it orange; we want it 11-point, not bold, and the color black. And now let's go back to our dashboard, our second dashboard, and we can see that the titles match. Now, on our previous dashboard, we took away a lot of the titles on our visualizations, but in this case, we're going to leave them there because they're very descriptive as to what the user would be seeing. For our table, we're going to select the table, and we're going to go to the toolbar and tell it to Fit Width, so it looks a little bit better in there. And we want to format the Overall Sales and the Average Sales cards. So I'm going to click on Overall Sales, due to drop-down arrow, Format, and I'm going to give it that light orange shading, and I'm going to do—have you do the same for the Average Sales one—and we should probably color the market segment legend as well. Yeah, so that one's selected; I can do that one as well, just for consistency. Now we want to show the dashboard title, so we're going to go to Dashboard, Show Title, double-click the title, get rid of that Sheet Name placeholder, and we're going to type "Market Segment Information" and click OK, and we'll name the dashboard sheet "Market Segment." All right, two dashboards just like that. I'm going to go ahead and close this Format Legends panel and Save.

So another part of guided analytics is packing your tooltips with details. So I am on the Sum and Profit by Year line chart—dual line chart—this is going to end up on a dashboard with our What-If line chart, and so we're going to make some modifications to it first. So I want the colors to align a little bit better between the two charts, so what we're going to do is we're going to go over to the Measure Names legend and edit the colors, and we want to make Profit orange and Sales a darker green, because that's what's on our What-If chart. And then over in your Marks card, you're going to select Sum of Sales, and we're going to get rid of those mark labels. So I'm going to uncheck that; doesn't make sense to have them on just one. And we're going to go to Size for the Sum of Sales, and I'm going to grab that bar and drag it to the right, and you'll see two tick marks; I want it right in between those two tick marks. And then in the MOX card, I'm going to click on Sum Profit and make the size the same as we did for Sales. The other thing we're going to do is we're going to—just to be consistent—we're going to go to the Measure Names legend and format it, and we're going to give it that light, really pale orange shading like we've been doing so far. So now, if you hover over any line on any mark, you'll see that everything that's in the view is automatically included in the tooltip. So we have the Order Date, we have the Sales, and if I hover over Profit, we have the Order Date and we have the Profit, because those are the three fields that are in the view. Well, we want to add more to the tooltip. So in your Marks card, we're on the Sum of Profit mark, and we're going to go to Tooltip. And so you see it has the plain text, the Year of Order Date, and then it has the field Year Order Date, and it has Profit and Sum of Profit. So I'm going to click at the end of Sum of Profit and press Enter, and I'm going to say—just regular text—since—and I don't want it bold, so I'll get rid of that—I'm going to say "Since 2020, profit is correlating with sales most of the time," something like that, and then click OK. So now when I hover over a mark on Profit, I'm seeing more information. Let's go ahead and Save, and I'm going to get rid of that Format pane on the left. We're going to modify its tooltip. So I'm going to click at the end of Sum of Sales and press Enter, and I'm going to type—and not bold—I'm going to type "For more detail, see:", a couple of spaces, then I'm going to use the Insert drop-down at the top, hover over Sheets, and you're going to go to the sheet that is Sales and Profit by Subcategory and click it. And in this case, it doesn't really matter whether we make it bold, but I like consistency, so I'm going to make that part of it bold, and we're going to do OK. So now when we hover over a Sales mark, it says "For more"—it gives you the year, the sales, and "For more details, see," and it gives you a little thumbnail of that page, that sheet page that we directed it to. So that's what it means by adding more detail to your tooltips; you're not limited to what's on them. And so since we're here, I'm going to go back to Sheet Sorter view—just easier sometimes to find sheets in that view—and we're going to go to What-If Sales and let's put it up to like six points or six percent. And by the way, since we're here, let's do the drop-down on that slider, and we're going to format it, and we're going to give it the pale orange shading, and it doesn't seem to do anything. Hmm, interesting. Let's try to Measure Names one, Format Legends. Very interesting. I'm gonna try it again because maybe I didn't click on it properly. So Format Parameters. Nope, the shading is showing there; it's just not showing up in the parameter. That's fine; I'm not going to worry about that right now. So I'm going to make this go like maybe to eight. I definitely want to separate the lines. So if we hover over to What-If, that's what it's going to say, right? Sales if—and then I want to hover over one of the Sales lines, right? And it just gives the month, year of Order Date and the Sales. So for this one, for the tooltip—so the Measure Names are grouped together—so we're going to have whatever we put in a tooltip is going to be for both. So we're going to go to the Tooltip. Notice it says "Measure Values," right? And we're going to click at the end of that, press Enter, take the bold off, and we're going to type "See:", then we're gonna just do a colon, two spaces; we're going to go to our Insert menu, hover over Sheets, and under Sheets, we're going to select our other line chart that we were just working on, which is called Sum and Profit by Year, and we're going to click OK. And now if you hover over either of any of the marks, you'll see that it says it has that there as well, a little thumbnail of that. Okay, save your file.

So we have one other thing to cover that's under guided analytics, and let's go to any bar chart. So I'm going to—Count of Products—and you'll notice it's—and we've been doing this throughout—but if I click on—for Number of Products—if I click on Consumer bar, right, it filters everything else out other than Consumer, and that's called Filter by Selection. We've been doing it the whole time, right? So that's a filter by selection action; when you click on one thing, it could be a pie chart, it could be a map, it could be anything really; it filters out all the other data. And to get all the other data back, you can just click outside of the visualization. So let's say you have your two dashboards built, and management wants to see where you are right now, so you're going to do a presentation for them, but before doing so, you want to give it a little bit more formatting. So what we're going to do is we're going to go up to the Dashboard menu, and we're going to choose Format, and on the pane on the left, where it says "Dashboard Shading," let's do the drop-down and select that pale orange color. So now all the edges around everything has that pale orange color, right? The actual background of the dashboard itself—to have you do a similar thing on your second dashboard on your own. So we're going to just go to the second dashboard; Format pane remains open, and go ahead and do your shading, so it should look like this; it's decreasing a little bit of the white space around the edges. Go ahead and close the Format Dashboard pane. And another thing that you can do is I'm going to select my histogram on the dashboard, and I can actually right-click in a blank area of it and go to Format. So on the Format Font pane, underneath, I'm going to go to the paint bucket, and you see I can give the worksheet itself a shading color. So don't do this; just watch my screen. I'm gonna do this green color, and you're not seeing it because the worksheet is actually on the dashboard, right? So I'm going to go back to None on that, and so I'm gonna try something else. I'm gonna say, well, can I shade the pane? And let's see what happens there. And so now it's blending too much into the background color of the worksheet. So what I could do here is I could go to More Colors, and I can mix a different pale orange color, a little bit deeper, and click OK. So now I have a little bit of contrast, and that color now shows up here. So since this is open, go ahead and use that same color for the pane on both of your pie charts. And so on mine, I used it on both of the pie charts as well as the table, but now I can't really see the values in the table. So for the table, I'm still on Shading here; I'm going to go to the letter A, so I get my font choices, and you see the pane has that orange color, right? I'm gonna make it bold—actually, gonna make it a little bit bigger—so I'm going to go to 10-point there, and I probably should make the font color black now, so it shows really well in the table. So now go back to your first dashboard, and you want to shade this bar chart and the table; the text box and the image are both taking on the background dashboard color, so you want to do the same thing we did on the next dashboard with these two visualizations, and the end result will look something like this. Now these are examples; it depends on what color scheme you need to use and how much you want to do, but I do like having color on my dashboards. Go ahead and save your file, and then we'll mimic what we're going to do to present to the managers these two dashboards. So there are a few other fixes that can be done on here, but you know the steps to take to do the fixes. I'm going to go ahead and close the Format Shading, and this is something that you've seen before, but since we were working only—when we were working with the sheets, not in a dashboard view—so if we wanted to show our managers these two dashboards, we could use Presentation Mode, which we used in sheet view. So I'm going to go ahead and click it.

On the toolbar, and so this dashboard comes up right, and the managers can look at it and give their thoughts on it. And then, using my film strip at the bottom, I can just show the other one. Of course, this would be hooked up to a flat screen or a projector screen in a conference room somewhere so they can give their feedback on your dashboards. Again, to get out of presentation mode, you can press Escape on your keyboard.

So when we did our first pie chart, that's when you learned how to put a caption on it. The caption doesn't come over to the dashboard with it; we actually made a copy of that sheet, so both of the pie charts have a caption on them on your dashboard panel. On the left, hover over the first pie chart and then click the "Go to Sheet" button, and you could see the caption at the bottom didn't come over to the dashboard. So I went back to sheet tabs here, but I'm going to go back; I'm going to just go to the end and go back to my market segment dashboard.

So what we can do here is kind of have to play this out a little bit. If I go to the worksheet menu, I would have to show, and this actually, to make sure that your sales by market segment chart is selected. When you go to the worksheet menu here from within your dashboard, you can click on "Show Caption," and then the caption will come in. Now I want to show you something because this was frustrating to me until I learned better. Right, if I don't have—let me just not have anything selected—and I go to worksheet, everything is dimmed out, so you won't be able to get to "Show Caption." You have to be able to have something selected. We don't need it on the second pie chart, but we have that caption: "Would really like to increase home office sales; any ideas?" So we were able to bring that over.

So we've added annotations on one of our Maps before, but we're going to do it here on that first pie chart. I'm going to click on the home office segment and right-click and choose "Annotate," and I'm annotating the mark. Right, so it has the market segment and the sum of sales in there, and what I want to do is add a line that says, "Let's get these values up by the end of 2023," something like that, and click "OK." So now you see the annotation, like a pop-out, just like we did it on a map, right, shows up as a pop-out, and I'm going to kind of move it over a little bit and size it down a bit. And actually, since the values already show in the tool tip, I'm going to edit the annotation, and I'm going to remove everything except what we typed in, just so it doesn't take up so much space, and I centered that, and I'm going to click "OK." So now I can just increase the width of it a bit, move it over a bit, so when I click away from it, it's clear that it's pointing to that slice of the pie, and it just has that "Let's get these values up by the end of 2023" annotation. This section is called "Notes and Annotations." So we did the annotation here on a dashboard.

Let's go back to our first dashboard, and this text box gives us the ability to put in notes, and you can have multiples text boxes on a dashboard. Go ahead and save your file.

So our next topic is using external data to enrich your dashboard. Let's go ahead and bring up a new dashboard window and go ahead and get your size the way it needs to be. And don't worry, I didn't forget that I said that we're going to use a dashboard for our two different dual line charts, but for right now, I'm in order of the outline, so we're at using external data, and then we have one more topic in this module. In the next module is when we'll use those line charts. So for this one, using external data, what we're going to do is we're going to use the sales by state map; drag it onto the view. The first thing I'm going to do is select the annotation for Pennsylvania, and I'm going to just drag it down just a little bit so we can see New York. I'm going to right-click on New York and go to "Annotate the Mark," and we're just going to put "High value" in front of "State/Province," like we did on the other annotations on this map, and click "OK." And then I'm going to click on New York again so that everything else comes back into the view fully. Now I'm looking at this, and I see one other circle that's comparable in size to Texas, so annotate Washington the same way we have the other annotations. Annotate Washington State on your own. Now I'm going to decrease the width of the map a little bit because notice on the right it's cutting off our cards, so we don't want that to happen. On the map, I'm going to just zoom out a little bit so that everything that is important to us is still visible, just a little bit more. I want to make sure that right panel is wide enough to show everything.

So since this is where we did a data layer of the 2018 population—that was the latest one that it had in there for us—we are going to use external data to enrich this dashboard. So what we're going to do is we are going to grab the web page object on the left, and I'm going to drag it—try to get it on the bottom—yeah, we're going to put it on the bottom for right now; we'll move it when we're done. So I'm going to type in a URL here; it's starting with the "https://", and it's "worldpopulationreview.com/states," all together.com/states, and go ahead and click "OK." So this is cool; on my end, it's still loading some information, but I can scroll down; it actually gives you a window where you're actually seeing the web page on here now. Because we really want our map to be the focal point of this, we are going to remove that web page object. So on its right, go ahead and "Remove from Dashboard," and we're gonna get a link on here to the web page in a different way. So we're going to go up to the dashboard menu and choose "Actions," and this is just like—so you know, it generates actions on its own depending on what you do—and so we already did an action, and we went to the learn it website; we already did a web action; we're going to add another one. We're going to click on "Add Action," "Go to URL," and we're going to name this "Population," and the source sheet is "Dashboard Three," and we are going to leave it on "Menu"—you saw the choices; you know you don't want to hover—and we're going to choose to have it open in a new browser tab. So all we have to do is type "worldpopulationreview.com/states," "worldpopulationreview.com/states," and we're going to click "OK" and "OK." So in here, the only place you can right-click and see it on the menu is on an annotation, so I can right-click in the middle of the Gulf of Mexico if I want to, and you'll see that we have "Learn" on the menu as well as "Population Information," and you can go there to make sure that the link is correct, so it opens in a browser tab, and you can go through the information, and at the bottom there's a table. So this is updated population information by state; again, the data layer that we used on our map was from 2018. So we can just have this hyperlink here or this URL on our menu so that people can get the updated information. So you saw two ways of doing it, and we chose this way because we want the map to just be on that dashboard. You can go ahead and close the browser window.

All right, let's name this dashboard "Sales by State Map," and then we're going to get rid of the title from the sheet. So I'm going to just right-click on the title and "Hide the Title," and now we're going to go to the dashboard menu and choose "Show Title," so we don't need a redundant title there. I'm going to actually double-click the dashboard title—like it's centered—yeah, it's centered over the whole sheet, so that's good, and we can cancel. And now you're going to save again.

Our last topic is dashboards and dates. The first thing we're going to do is we're going to create a new sheet. This is a similar but easier process from when we created the dynamic title for category. Right, this what we're going to do here is we're going to create a title that shows today's date, whenever today is, at the top of the dashboard. So in order to do that, we're going to create a calculated field on this blank sheet, and we're going to name the field "Today," and we're going to type the function "TODAY()" and click "OK." So now we're going to drag the "Today" calculated field—and just another point here, I'm going to actually scroll up; if I want to search for a field, I have a search box at the top of my field list, so I can go in there and type "to," and it scrolls down until I can see the "Today" field. So I'm going to grab that "Today" field, and I'm going to drag it onto "Detail" on the marks card, and then it says the year of today. So I'm going to right-click on that pill, and I'm going to hover over "More" and select "Custom," and in the drop-down, I'm going to select "Month/Day/Year" and click "OK." So now it's the month, day, and year of today. Now we're going to double-click the title on that sheet to get in and edit it. We're going to get rid of the sheet name placeholder here, and we're going to go to the "Insert" drop-down, and at the bottom, we're going to select "MDY(Today)," and we're going to click "OK." So let's name this sheet "Today Title"—it's like we have a category title; sheet subtitle does not have two "e's" at the end of it—and go ahead and create a new dashboard sheet. Go ahead and adjust your size, and we're going to drag "Today Title" into the view, and we are going to go and fit it to the width of the view, and then whatever else we add to the dashboard in the next module will size it so it covers the little box that's there for the detail, and it just has the date at the top. Go ahead and save your file.

In Module 12, you learned about using dashboards to get results. We started with an explanation of guided analytics with Tableau. Guided analytics make it easier to navigate a dashboard; it increases accessibility and clarity, increases usability of the content you've created, and it helps the audience glean valuable insights faster, as well as helping them transition to using visual analytics. We created several different things that encapsulate guided analytics, including customizing filter titles for clarity, encouraging action with captions on worksheets, tracking filter selections with dynamic titles, drilling down with filter actions, packing tool tips with details, and having greater control with "Filter by Selection." Then you learned that you can use presentation view in your dashboards as well as the worksheets. We definitely did some more annotations, and we use the text box to capture some notes, and then we connect it to a website to give more up-to-date detail on population data for the United States. We ended by creating a title sheet that will automatically display today's date on a dashboard.

In Module 13, we'll be putting the "dash" in dashboards. In Lesson 1, we'll be choosing our visualization; we've already kind of gone through that process, but I have another example for us to do that in this module. They weren't going to be using parameters in dashboards; you're going to learn how to profit from Big Data to rev your visualization, filtering your data for focus, and the final lesson, we'll be creating choices in dashboards using conditional logic.

To get started with choosing your visualization, I've gone to the "Sales by Month Over Time" sheet, and we're going to make a copy of this sheet. So I always do it by dragging it while holding the control key, so I'm going to just drag it to the right of it, and on this one, we want to make some changes. So in the column shelf, we're going to right-click on "Month of Order Date," hover over "More," choose "Custom," and we're going to go to the drop-down, and we're going to select "Month/Year" and click "OK." So this is our animated visualization, and now we've given it more detail. And if you notice on your column shelves, it says "My Order Date," which is "Month/Year Order Date." Now we're going to remove "Month of Order Date" from the pages shelf because now we're using "Month/Year," and we're going to copy "Month/Year" from columns to the pages shelf so that now its history will be correct "Month/Year" instead of just by month. And for clarity, we're going to change the title on your history control over there; we're going to edit the title; we want it to be more specific, or more clear; we're going to name it "Month/Year Order Date" and click "OK." So now we're going to go back to the dashboard we created where we put the "Today Title" at the top, and we're looking for our "Sales by Month Over Time Two" sheet, but before we drag it onto the view, let's right-click on it, and we can rename it from here, so we're going to call it "Sales by Month/Year Over Time," and get rid of the "Two" at the end. And now I'm going to drag it onto the view on the bottom half, and then I'm not going to try to move it; I'm going to resize it, so I have my mouse at the top, the double white arrow, and I'm going to just drag it up until the blue box from "Detail" on the "Today Title" sheet is covered, so we'll always have today's date, whenever it is, at the top. And then we want to pair this with our "What If Sales," so let's drag that on and put it on the right side of the dashboard because "What If Sales" is also in the "Month/Year" format, which is why we made a copy and made this in the same format in terms of the date, so then—so that we can view more of the information—I'm going to take "What-If Sales" and drag it to the bottom underneath "Sales by Month/Year Over Time," so one is right above the other, and we can see more of it. So this is definitely going to need some captioning or text boxes; what you want to do is use those things either to get people to start doing analysis, like, "How can we increase these sales by this category?" or to give them instruction on how to use the dashboard sheet.

So make sure that your "Sales by Month/Year Over Time" visualization is selected, and we're going to go to the worksheet menu and choose "Show Caption," so we get a caption for that visualization. Double-click the caption, and we'll use the caption to describe what the visualization is showing. And after we're done with captioning, we'll use text boxes to give guidance on how to use the right panel. So for this one, we need to give a full explanation: "This is an animated this that will show sales by Month/Year over time. You can use the controls on the upper right to play the this and animate it," and we'll give more detail in a text box on the right pane. And we can go ahead—I think I want to select all of that text—and I want to make it orange, and I'm going to click "OK," and I'm going to double-click it again; I'm also going to make it bold so it pops out just a little bit more. Okay. And now you want to make sure "What If Sales" is selected; we're going to go back to "Worksheet," "Show Caption." Let's double-click the caption for this one: "The trends of sales and sales if for order date." All right, we can keep that part, but before—and I'm going to put, "This is showing the trends of sales," and we're going to change "sales if" to "projected sales five percent for the Month/Year of the order date," and then I can get rid of that "MY" at the end of that, and then, "Color shows details about sales and projected sales," and you know, after that, when, in parentheses, I'm gonna put "sales if" because that's what's showing on the color legend on the right, and I'm going to select it and make it orange and bold, and "OK." Now we're going to add a floating text box, and we're going to end up having it in the bottom of the right pane; it's going to explain the controls in the right pane, so we'll make it floating after we get it on there. So let's go ahead and grab the text object and drag it onto the lower right side of the visualization. You want to make it left-aligned instead of its default of center, and you can pause the video and copy the text that's on my screen in the text box. I've made it bold and orange like we did in the captions as well. Once you have it in, we're going to go ahead and click "OK" on the text box, and then, since it's selected at the bottom of the objects, we're going to click "Floating." We're going to grab our text box and drag it over into the right pane and drop it so it's right underneath the controls. Now what you can do is save your file, and I format it—the parameter—the slider parameter and gave it some shading. I'm going to go ahead and close that panel.

Now we're going to add some Big Data to a dashboard. So let's bring up a new dashboard and go ahead and size it accordingly. On this one, we're not really going to use a sheet here; so you saw an example of this before, but we didn't keep it; we decided to do a dashboard action instead. This time we're going to use a web page for our dashboard, so you go ahead and grab your web page object and drag it on, and the URL here is "https://tradingeconomics.com/united-states/retail-sales." So this is sample Superstore data; we have sales, we have customers; we want to know what's trending in the United States in terms of retail sales. So we're going to go ahead and click "OK," and I went ahead and closed the ad that popped up, but you can see here it has a summary, calendar, forecast, stats; you can download information from here; it's data from November 2022, but there is historical data going back to 1992. So if you're into retail sales, a lot of this could be useful Big Data information that could help you maybe head in a different direction or look at different ways to achieve newer goals, so on and so forth. So this is the sum total of this dashboard; it's filled with a web page. So let's add a dashboard title, which we can also do underneath the objects pane, and we'll call it—and this data is, I believe, from the Census Bureau—well, there's actually different sources; this data up here is from the U.S. Census Bureau—so we're going to go ahead and edit the title, and we'll say that this is "Trading Economics Big Data," something like that, and I'm going to select the text, make it bold, and make it orange, or whatever color you happen to be using, and go ahead and click "OK," and I'm going to just name the dashboard tab "Big Data."

Now we're going to get into filtering your data for focus. And I'm only analyzing by region and customer sheet; we're going to create another sheet that shows the count of customers by region. So let's go ahead and grab a new sheet, and for this one, we're going to drag the region field to rows, and we're going to drag "Customer Last"—which is in our customer and market segment hierarchy—now we're going to drag that to text, and then we're going to right-click on that pill, and we're going to hover over "Measure" and choose "Count." We're going to right-click that pill again and go to "Format"; we want to format the numbers, so we're going to do the numbers drop-down; we're going to choose "Number," "Custom," get rid of the decimal places, and at the bottom, uncheck "Include Thousand Separators," and we can close the format panel. And now we want to drag "Region" to color, so the numbers adopt the color for each region. Now let's go ahead and hide the field labels on that table for the rows.

We don't need them there. And let's name this sheet. I'm using the pound sign for number, number of customers per region. And then we're going to edit the title to just say "Number of Customers" and go ahead and make it bold and orange, and click OK.

So now let's go ahead and create a new dashboard sheet. And let's drag our "Analyzing by Region and Customer" sheet onto the view. Now we don't want our little table to take up any space in the view itself, so we're gonna grab that "Number of Customers by Region," drag it onto the right side of the view temporarily, and then make it floating. Once it's floating, drag it into the right pane like we did the text boxes earlier, so that the actual visualization can show in its entirety in the View.

Now something else we're going to do here on the right side: let's go to our first choice parameter and select it, go to its drop-down arrow, and we're going to format parameters. And we want to give them that light orange shading, so both of those are done. So this way we can go ahead and close "Format Parameters." And what we want to do is we want to go to our "Number of Customers" and select it, and we're gonna click on the funnel, and we're going to do the same thing for "Analyzing by Region and Customer."

So now if we click on any mark on our visualization, the table will filter, and we can click on the mark again to get everything else back. Now this is the one where we have dynamic axes: Sales and Discount, because those are the choices. And we're going to put a text box over on the right pane to explain how to use the choices. We're still on floating, so go ahead and grab your text object, and you can drag it right over to the right pane, even though it's going to open up the edit text box. Make it left-aligned, and I'm going to go ahead and do bold and orange before I start typing here. And so the text is going to be: "Use the first and second choice drop downs to change the y axis and x axis accordingly." [Music] And go ahead and click OK.

So now we just have to size it correctly. I might have to move it over a little bit, size it correctly so it fits in that pane. And then we're going to select our visualization; we're gonna go to Worksheet, Show Caption, so it comes up with, when reading the tooltip, "Placeholder one represents the value of your first choice and placeholder two is for your second choice." I think I might have put that somewhere in V4, so make sure your caption says that, just to give—so when you hover over any of the marks it shows "Placeholder one" and "Placeholder two"—so we're explaining what they represent. I want to add on to that caption by saying, "Your axes will update according to your choices," and OK. So we can go ahead and get rid of—hide the title for the visualization—and then let's show our dashboard title, and we're going to edit it to say—and get rid of that sheet name placeholder—we're gonna edit it to say "Analyzing by Region and Customer," and of course I'm going to make it bold and orange. Now, should have just named the sheet because it had that placeholder in there, but go ahead and name the dashboard tab the same thing: "Module 13."

We started by creating a copy of our animated visualization, and we change the date format to match our "What If Sales" visualization, and we place both of them on the same dashboard. We created captions for each visualization to explain the intent of the visualization, and then we added a text box in the right pane so that we can explain how to use the animation controls and the "What If" slider to change the percentage of projected sales. The "What If" used parameters. Then we moved on to profiting from Big Data, and we did that by adding an industry web page to a dashboard. We moved on to filtering your data for focus, and it was combined with creating choices in dashboards using conditional logic. So we started that one by creating another sheet that was a text table showing the number of customers per region, and we use that as a companion to our "Analyzing by Region and Customer." This, we actually put the text table in the right pane so that the visualization could fill the entire View. We also created text boxes to explain the controls in the right panel, and this one was using conditional logic because this is the one where we created dynamic axes, and they had parameters where whatever their first and second choices are will change the title of the axes.

In this extensive course, we started by connecting to a variety of data sources, in particular text, Excel, and Access database data sources. You learned about the concept of guided analytics and what that can involve, and then we went into showing the captions, customizing filter titles for clarity, and you learned how to create dynamic titles so that they change based on what's being chosen. You also learned how to share your results in a meeting by using Presentation View, and we added some notes using text boxes and more annotations. We also created a dashboard with just one item on it; we used a web page so you could use external data, and that's where we put the World Population Review by States. And then we created a sheet where we could have today's date showing at the top, and we could use that on a dashboard as well, and we did. We started putting the dash—into dashboards—so we put "Sales by Month Over Time," our animated visualization on the same dashboard with "What If Sales." We use captions and text boxes and to explain to the users what's going on on the dashboard, and then we added the "Sales by State" cross-tab to the right pane on an existing dashboard. You learned how to profit from Big Data to re-view visualization, and that's where we use that Trading Economics website. We learned how to filter your data for focus and creating choices in dashboards using conditional logic, so we brought that first choice and second choice sheet onto a dashboard. You learn the difference between using tiled or floating on a dashboard. When you use tile, it kind of maps the grid: the left side, the right side, the top, the bottom, the middle, that kind of thing. Floating, you can place it anywhere you need to place it.

Hello everyone. I am Trish Connor Cato. Welcome to Tableau video training course. Tableau is a visual analytics platform that makes it easier for people to explore and manage data and faster to discover and share insights that can change businesses and the world. It helps people and organizations be more data-driven. Tableau supports data prep, analysis, governance, collaboration, and more. As a continuation of the Tableau introduction video training course, this Advanced course is designed to boost the student's competence when it comes to creating visualizations and creating dashboards. The course goes into considerable detail on these two subjects and explores, among other areas, how to create a range of different charts, Maps, user-defined Fields, as well as a host of advanced features and abilities. We'll start by connecting to a variety of data sources. This will leave you with some great workbooks to practice on and develop on your own after this course. We'll also cover making dashboards relevant and some visual best practices that you can use throughout your Tableau career. We'll end with other ways to publish your dashboards and how to mobilize them.

In Module 14, we'll focus on making dashboards relevant. In the first lesson, we're going to do some string manipulation on dashboards. In lesson two, we'll review how to correct data exports from Tableau to Excel, if you have any problems—so to warn you about a situation you could perhaps run into in the future. In lesson three, we're going to blend data. We have two Excel files in the files for video description that we'll be using: "Data Blending File 1" and "Data Blending File 2." In Lesson Four, you'll learn and use some optimizing tips for efficient, fast visualization. And in our last lesson, we're going to add an infographic to a dashboard, and for that there is a shapes folder in the files for video description. You're going to want to access those shapes, and so just have that folder open when we get to lesson five. At the bottom of this slide, I have a link to a website where you can grab some more infographic images that you can play around with on your own. We're going to use several of the ones that are in the shapes folder, but some of them we're not going to use. We're going to use some in this module and some in the next module, but it'll still leave you some to play with.

I brought up a new dashboard sheet, but before I did that, I named the sheet tab for the previous one "Analyzing by Region and Customer -," since there's already a sheet, as you've seen previously, with that name, you can't have two sheets with the same name, so I just added a dash at the end of the sheet tab. Now, on this dashboard, before we start building it, I just want to show you something: if you go to the Analysis menu, you'll notice from the dashboard you could only edit a calculated field; you can't create one. So we want to create a calculated field for string manipulation. We'll come back to this dashboard, but in the meantime, bring up a new sheet. When we first started working with the Sample Superstore data, one of the first things we did from the Data Source tab is we split the customer name into "Customer First" and "Customer Last." Now we have a need to have them as "Customer Name" again. Also, we'd like to have the region and then the state all combined. So we're going to actually create two calculated fields here. You can either go to Analysis or to our usual drop down, and let's create a calculated field, and we're going to name this field "Customer Name," and it's a really simple calculation. In Tableau, you use the plus sign for concatenation, and you have to concatenate in any spaces that you want between the first and the last name as well. So what we're going to do is we're going to start typing "Customer First," and then we're going to do a plus sign, and then we're going to do a single quote space single quote, another plus sign, and then "Customer Last." So we're saying we want the customer first name, and we want a space between it and the customer last name.

Now let's see—while we're having—OK, so we can't name this "Customer Name" because that field already exists, and even though we hit it, it's still in our data source, so we're going to name this—I'm going to just abbreviate it to "Cust Name"—and now we can click OK. Now we're going to drag "Cust Name"—it's fine there, I guess it'll be fine there right now—on the Rows Shelf, so you can see that each customer name has a space in between the first and the last one. If we didn't do that single quote space single quote, if we just did "Customer First" + "Customer Last," it would be almost together. And sometimes I work so fast I forget to put the space in, and then I look at it and I go back in and edit the field. So we could have gone back to the Data Source view and unhid "Customer Name" so that we'd be able to use it again, but wanted to show you how to concatenate. So I have one more concatenation example for you here. We're going to put the region and the state together, and that doesn't already exist in our data set, so this is a more valid use of concatenation. So we're going to create another calculated field, and this one we're going to call "Region/State," and so it's the same thing: we're going to grab the Region field, and I do our plus sign, and then I want to concatenate in a slash, so I'm going to do the single quote slash single quote, another plus sign, and then grab the "State/Province" field—not the group—and go ahead and click OK.

So the first thing we want to do is we want to grab the "Region State" field that we just created, and we want to add it to the hierarchy of Location under Region. So one thing I can do is I can click on its down arrow, hover over Hierarchy, Add to Hierarchy, and we're going to select Location. So we'll put it at the bottom of the Location hierarchy, and we can just drag it up so it's after Region. Now let's drag "Region State" to the Filter Shelf, and we're going to select All and click OK. And now we're going to right-click on that filter and Show the Filter. So I'd like you to change that filter to a multiple-value drop-down filter, and so it should look like the one on my screen. Now we're going to find our Sales field and drag it onto Text, and then we want to format our sales numbers, so we want them to look like currency with two decimal places. So we're going to right-click on the SUM(Sales) pill, go to Format under Default, go to Numbers, we're going to choose Currency (Standard), because I believe that comes with the two decimal places—yes it does—and so we can click away from there and close that Format pane.

So when we look at our drop down for our "Region State" filter, we see that the region is combined with the state, and they're separated by the slash. So if I wanted to, I could filter for something. I'm going to uncheck All, and I'm going to filter for "East/New York." So here are the customers and the sales from the East region and from New York State. And then I'm going to go back and choose All. The other thing we want to do with that filter is we want to format it, so we can give it the shading that we've been using, and we can close that Format, and what we'll do is we'll name this sheet "Customer Sales by Region/State," and go ahead and Save. So I've dragged that onto our waiting dashboard sheet, and now when I go to the Analysis menu, I can create a calculated field from the dashboard because it's going to be attached to the sheet. When it's a blank dashboard, all you can do is edit existing calculated fields. So if I wanted to edit the calculated field that we created called "Cust Name," I can just access it from this list. But what I'm going to have you do is create another calculated field and call it "Customer Last and First," how about that? "Customer Last and First." So I'm going to have you do that on your own while I'm doing it on my side. So your calculation should look like mine, accepted the second one should be "Customer First." I grabbed the wrong one, and I concatenated the comma space in there, and I'm going to go ahead and choose OK. So now what I'm going to do is I'm going to go back to this sheet from the listing of sheets on the right side, and I'm going to swap out "Customer Name" for "Customer Last First," and it looks like we have a customer that doesn't have a first name. So now we're seeing this one up at the top; it looks like it doesn't have a last name, and the first name is after the comma. So the first name is "Corey-Lock." I guess they just said it's like Madonna, with just one name. So now when I go back to our dashboard, it will have updated because we made the swap at the sheet level. And we don't really need to keep this as a dashboard, so I'm going to go over to the right side of it, go to the more options drop down, and choose Remove from Dashboard. And we'll leave this dashboard here for future use.

So now I'm back in Worksheet view because I want us to go to the "Sales Aggregate" sheet, and we're going to modify it somewhat. So before we get into this, we're talking about correcting data exports from Tableau to Excel. So sometimes when you export to Excel as a cross-tab, when you open it in Excel the data could be out of the order that you intend it to be. And so the reason why that happens is that Tableau will arrange it first by dimensions, then by measures, and each of those are arranged alphabetically. So it really depends on the amount of data you have. I don't know if I can force this issue with the data, but we'll see what happens when we finish modifying the sheet and we export it, and I'll show you another tricky wicket as concerns exporting as a crosstab to Excel along the way. So the first thing we want to do on this sheet is we want to add the Sales field to Rows five more times. And once we do that, the second one we want to do the drop down, and we want to change the measure to Average. For the third one, you're going to go back to the drop down, and we want the Median. The fourth one we want the Count. The fifth one we're going to go for the Maximum, and the last one we're going to choose Minimum. So, and then we're going to add another field to Columns, and that's going to be Order Date, and we want it in front of Market Segment, and we'll leave it on here. So this is really not an a lot of data; I mean we have several measures on here, we have a date, we have one dimension; we'd probably need a lot more things on here for it to mess up when it will require a correction in Excel. So now we're on the Worksheet menu; we're going to hover over Export and we're going to choose Cross-tab to Excel. So it may take a little bit to load everything into Excel. So this came over pretty clean. I forgot that we had Category and Color over there, so we actually have two dimensions and six measures and a date, and it came over really cleanly. However, it's not going to perform that way all the time, and you just need to be prepared for that. So it just depends on the data load that it's processing. Now I mentioned that there's a tricky wicket when it comes to exporting to Excel as a cross-tab, so let's leave this Excel book open, and it may have opened in the background behind your Tableau, but we're going to leave it open, and I'm going to bring up the Worksheet view again, and we'll go to—let's go to "Pie Chart 2"—and on this one we're gonna go up to Worksheet, Export, Cross-tab to Excel. And now let me minimize this. Now it's going to work sometimes if you export to Excel and you haven't saved the previous workbook, it will give you an error message, but of course because I wanted to show you that error message that says "Cannot export to Excel as a crosstab," it's usually because you have a sheet hanging out open in the background. But since I'm trying to show you that error, it's not going to happen. So you need to kind of be prepared for that as well. I'm going to close this one, and I'm not going to save it, and actually I'm not going to save either one. Typically, if you have one that's open and hanging out there, it won't let you do another one until you save the previous one or discard it. So just want to prepare you for those situations.

Before we get into blending data, I want you to have a little bit of an understanding of blending. So blends, unlike relationships or joins, never truly combine the data. Instead, blends query each data source independently. The results are aggregated to the appropriate level, then the results are presented visually together in the View. Because of this, blends can handle different levels of detail and working with published data sources. They're also established individually on every sheet and can never be published because there is no true blended data source, simply blended results from multiple data sources in a visualization. Data blending is particularly useful when the blend relationship linking fields need to vary on a sheet-by-sheet basis or when combining published data sources. So we have those two Excel files that are in the video description that we're going to be using for this: "Data Blending File 1" and "Data Blending File 2." So if you haven't already grabbed them, you want to put them in whatever directory you've been using for those files, and we're going to open both files before we actually go back to Tableau and blend the data. So on the left side of my screen I have "Data Blending File 1." I'm just going to adjust that column, and then on the right side I have "Data Blending File 2." So in the first one, the tab is "Employee Data"; it has the name, the employee ID, and the salary. In file two, it also has the name and the employee ID, but in addition it has a department ID and a bonus. So we're...

To blend this data so that we can use fields from each file in the same visualization, you can go ahead and close both of those Excel files and bring Tableau back up.

Now, in Tableau, what we want to do is save Sample Superstore live again, and we're going to go to File > Close. We will be using it again, so you want to bring the first file in from Excel. So we're going to go to Connect to Microsoft Excel, and we want to grab data blending file one. So it brings us to the Data Source View, and we're going to go to Sheet1. The way this works is you bring in the first file and you drag a field from that file into the view. So we're going to drag the Name field to Rows, and then we're going to go to the Data menu and choose New Data Source.

And we're going to go ahead and grab the second blending file from Excel. So when we bring that in, it also brings us to Data Source View, and we're going to go to Sheet1. So now, at the top, we can see that we have two different data sources here: File 1 and File 2. Now, the File 2 is what we're currently on, and you'll notice to the right of the Name field there is an orange link—it looks more red to me, but it's described as orange—and that means it's blending them based on the Name field at this point. Now, sometimes you might see a gray link, and that would mean there's something wrong with the connection between the files, or no link, which means it wasn't able to automatically detect, for some reason, the common file or find Name in the other file for some reason. So if that happens, if you don't have the orange link, you would want to go to Data > Edit Blend Relationships. And notice over here it's showing both Name fields; it's saying the primary data source and the secondary data source. But sometimes if that's not there, you would have to go to Custom > Add, and then you would be able to choose Name. And once you do that and you say Okay—so I did it, and it's going to replace it with the same one, so I'm going to say Okay—and that's only because it did map it, but if you have to map it, that's the way you would do it, and you would just Okay your way out of there.

Now, what I'm going to do is I'm going to display my Show Me pane. I'm on the second data source, and I want to drag Bonus. I'm going to drag it right into the table. It's going to change the type of this; that's why I have Show Me open. I'm going to force it back into a text table, and then I'm going to go to the first data source. And now you see that we added a field from the second data source; it has the orange check mark on it. I'm back on the first data source, and we're going to just drag Salary into the table, and it didn't change it; it left it as a table; that's cool. And then we're going to go back to the second data source, and we want to drag in Department ID and Employee ID, and then we want to arrange them. So I'm going to click on the Employee ID header and hold, and I'm going to just drag it over and drop it in front of Bonus. Then I'm going to put Department ID to the right of the Employee ID. Salary I want to be after Department ID, so you should have Employee ID, Department ID, Salary, and Bonus.

Now, take a look at Yana. Yana wasn't on both of those sheets; so she was on the Department sheet, but she wasn't on the other sheet, and so we'll say that she left the company, but she wasn't removed from the sheet. So I'm going to right-click on Yana and choose Exclude. I can collapse Show Me now, and let's go ahead and name that sheet Data Blending. You can save the workbook with the same name, and then we can go to File > Close. And we're going to reopen Sample Superstore live.

So our last lesson in this module is optimizing tips for efficient, fast visualizations. And so the first tip is: reduce the scope. The fewer sheets and data sources, the faster your viz will perform. You would also want to consider limiting the number of filters. Each filter in the view requires a query in order to populate the options. If you add a lot of interactive filters, it can cause the dashboard to take a long time to render. Also, reduce the number of marks. More marks mean more processing power and memory to render. Keep in mind that too many data points can reduce the visual analytics value by causing information overload. To avoid this, compile related views and connect them with action filters, so you can go from an overview to a more granular view as you explore the data. And you would also want to remove any unneeded Dimensions from the Detail Shelf.

So let's use an optimizing tip. Let's go back to our Sales by State Map dashboard. And I should have pointed this out earlier: dashboard tabs have the plus sign in the box in front of them. So I'm going to go to Sales by State dashboard, and I'd put the Sales by State cross-tab as floating over in the right pane. So an optimization tip would be not to do that, right? So I'm going to select that Sales by State cross-tab, and if you hadn't put it there, you could, you know, do this just to undo it. And I'm going to do the drop-down arrow, and I'm going to remove it from the dashboard, and I'm going to use a dashboard action instead to connect to that crosstab. So I'm going to go up to the Dashboard menu, click on Actions, and we're going to add an action, and the action is Go to Sheet. So we're going to name this Sales by State cross-tab. So the Source sheet is the Sales by State Map dashboard, and then the Target sheet down here, we want to look for that Sales by State cross-tab. Now, for this one, we could put it on a menu or we could put it on Select. I think the menu gives you better control, and I'm going to click OK, and I'm going to click OK. So now, instead of having that additional data on the dashboard, I can right-click anywhere on my map, and you'll see that the Sales by State cross-tab is on the menu, and when I click on it, it takes me to that sheet. And we can go back to our Sales by State dashboard because they want to do something a little bit different. And so because we took that off and we put it on the menu, it might be a good idea to have a caption or a text box explaining that you, you know, for the end-user that they can right-click to get to that. So I'm going to go ahead and add a caption for that one. So I'm going to Worksheet > Show Caption. And actually, I think we should keep the caption that's there, except that we're going to select all of it, make it bold, make it orange, and we'll use a text box to explain how to get to the other sheet from here. So I'm going to choose Floating, grab the text box, and I'll put it over on the right, and then we'll have to resize it down. I'm going to make it left-justified, and I'm going to type: "Right-click on this to go to the Sales by State cross-tab sheet for another view of this information." And then, of course, I'm going to select it, make it bold, make it orange, and then I'll just size it so that it fits over on the right. And we can go ahead and save our file. Whenever you access a dashboard sheet and it takes a little while to render, once it does, just as a reminder, you can look down on the left side of the status bar to see how many marks are on the dashboard. If you have an exorbitant amount of marks on a dashboard, it's going to take up more processing time, so that's when you want to think about other ways, like that dashboard action that we just used. If you have additional supporting information, it would be better to leave it on its own sheet and not overwhelm the dashboard.

Now, we're going to do something really interesting: we're going to add an infographic to your Tableau dashboard. On the module slide, I showed you the link where you'll be able to access more shapes. Now, we're not going to use all of the shapes that you put in your files for video description shape files, and this module, we'll use some in this module; we'll use some in the next module, and then there's a few extra ones in there for you to play with on your own. So I have all of the ones from the video description selected, and I'm going to hold down my Control key—this is my Tableau repository shapes, my Shapes folder where we put the LearnIt logo earlier—so I want to hold down Control and copy all of these shapes into my Tableau repository shapes, my Shape folder; otherwise, we won't be able to access them. And now we can go ahead and bring up Tableau. The first thing we need to do is create a new sheet, and let's add Region to Color, and we're going to drag Sales to Rows. On our Marks card, we're going to change the Shape from Automatic to Shape, and then we're going to click on the Shape mark, and we're going to choose More Shapes. And over on the right, the first thing you're going to want to do—well, I'll show you this so you'll know if you forget what to do—so let's do the drop-down next to Default, and we're going to select My Shapes. Now, even though we dragged those into the My Shapes folder, they're not showing because down here you have to reload the shapes, and now you're seeing all the shapes in that folder. So what we're going to do is we're going to select the data item, and I'm going to use the people shapes, and we'll select the blue one and just click OK. So since we have Region in Color, it changed the color of all of those to match the Region Legend. Now we're going to drag the Region field to Filters, and we want to select None and then select Central and click OK. So you only have the blue shape on there for the Central region. We're going to go to the Size on the Marks card, and I'm going to increase the size of that shape, and then I'm going to go up to the toolbar and change it to fit the width, and that's about a good size for the shape. What we're going to do is we're going to go to the Label on the Marks card, Show the Mark Label, and we want to format that label. So let's go down to the font, change it to 20-point bold, and we're going to give it a corresponding blue color. Now we're going to hide the title on the sheet, and we are going to name the sheet Central Graphic. And now we're going to copy the sheet. On the copy of the sheet, we are going to change the filter. So I'm going to just right-click and edit the filter in the Shelf and uncheck Central and check East and then OK. So now it updates to the East color, and what we want to do is we want to go to Label and change the label color to match the graphic. So now what I'm going to have you do on your own: you're going to copy the sheet two more times. You can copy East Graphic, and you're going to change the region and change the color of the mark, so the label and… go ahead and do that now, and then I'll be doing it on my end, and we'll compare when we're done. So go ahead and pause the video.

So here is my West Graphic, which is my last sheet, and here is my South Graphic. All right, so now we're going to go ahead and move on and create the other things that are necessary to make this into an infographic dashboard. So we're going to make individual dashboards for each region ultimately, but before we do so, we're going to create another two visualizations that will also go on the dashboards. And so let's bring up a new sheet, and on this sheet, let's drag Order Date to Columns. We're going to leave it on here, Sales to Rows, Region to Color, and we want Region to be in the filter as well. Let's go ahead and filter for Central and click OK. Let's go ahead and change it to fit width, and we don't like seeing it up at the top. You can go ahead and hide the title. And by the way, we can get rid of that Region card on the right; we can hide the card, and we want it to scale better, so we're going to change the axis. I'm going to right-click on the axis and choose Edit, and on the right, I'm going to uncheck Include Zero, and you see how it sizes it more appropriately, and we can close the Edit Axis box. Let's go ahead and show Mark Labels, and let's format the font, make it bold, and make it blue. There's another cool feature we haven't covered yet: right-click anywhere on the line and choose Explain Data, and the Data Guide will open on the right side of the screen. So it lets you know whatever mark—I happen to have a mark selected—so I'll deselect the mark. So it gives you the viz details. You could enter a description that helps users understand this viz, and we don't have to do that. Additional resources: you can add a link, any applied filters, the data that's in this viz, no outlier marks found. If I click on a mark, then it updates to let me know the data in that is represented in that mark, and it gives you an explanation. Now, Explore > Explore underlying values for Central, and then it gives you the high amount for some of sales, so on and so forth down at the bottom. What is unique about Central 2021? Oops, and now it's executing the query for me. So down at the bottom it says: "16 of 34 Fields analyzed," so it analyzes all the other dimensions, and then it gives you other dimensions of interest, right? And up at the top there is a back-pointing arrow, so we can go back to the first page of the Data Guide, and I'm going to deselect that mark, and we're going to name this sheet Annual Sales by Region and then a colon and a space and type Central. So now the cool thing is you're going to get to do this on your own three more times; we need one for East, West, and South. So just like we did with the graphics before we start doing that, go back to your Central Graphic and notice that the Data Guide is showing there as well. Let's go to the Region card and hide the card, and we're going to do the same for the other graphic sheets. I forgot to have us hide the card; if we had hit it on the first one, then it wouldn't be on the copies, but better late than never; we're just not going to need that on the dashboard. So now I'm ready to copy the Annual Sales by Region Central sheet, and again, you're going to just do one sheet for each region. Go ahead and do that on your own; pause the video, and I'll be doing it on my end as well.

So here is my East one; I just actually renamed the sheet, changed the filter, and colored the label to match the line. Here's my South; same thing. And here is my West. So we've created the graphic sheets; we created the individual line chart sheets. Now we're going to create another sheet that has a different type of visualization on it, and it's going to be for all regions, so we won't have to duplicate this one at all. Let's go ahead and bring up a new sheet, and for this one, we're going to drag Order Date and Sales to Columns, and we want Region to be in our Rows and also Region on Color. We don't need a filter here; we can go ahead and hide that Region Legend card. We're going to hide the title. And we want to show the Mark Labels and go to the font so we can format them as bold, and then let me go back to Label, and for the Alignment, we're going to choose the Horizontal Center option, so they're inside the bars. We're going to name this sheet All Sales by Region and Year. And so your Data Guide updates for every visualization that you're on. A couple of the lines had an outlier, but this one has two outliers, meaning the values are dramatically different than the other values across all of these different regions. And now we're ready to bring up a new dashboard sheet. Once you bring up the dashboard sheet, change your size on the sheet and save your file.

So I've made my size on this one; I did this one at 1600 by 900 because I want to accommodate for this Data Guide on the right, which carries over, and when we're done with creating this dashboard, we're going to collapse this panel, so there'll be more space. If you can make yours wider, go ahead and do so. And now we're going to start building this dashboard. So the first thing that we want to do is—I'm going to scroll down in the list so I can see all my graphics—we want to make sure this is untiled at the bottom; it should be, but we're going to grab the Central Graphic and drag it into the view. And then, instead of Entire View, we're going to do Fit Width. And even though we hid the title on the graphic, it's coming over here, so let's go ahead and hide the title. And I'm going to just move this panel over a little bit while we're working, and then I'll resize it a little bit bigger at the end. So the next thing we're going to do is—where is it—we're going to grab our Annual Sales by Region Central and drag it on the bottom half of the dashboard, and then we're going to drag its top edge up so it's right underneath the graphic. And now we're going to grab All Sales by Region and Year and drag that onto the bottom. And for that one, instead of Standard, we're going to do Fit Height. And let me check the line chart, so the line chart we'll just change it to Fit Width. So the first two are Fit Width, and then the last one is Fit Height to fill the rest of the remaining space down there. I'm going to go to the Dashboard menu and choose Format, and for Dashboard Shading, I'm going to do that pale orangey color, just so we kind of have those white spaces filled in with something. We're going to name this dashboard; we'll name it Central Region Sales, and then we can go ahead—I'm going to close the Format Dashboard pane and show the Dashboard title. That's kind of okay. I think I'm going to right-click on the title and format it, and I want to change the font or the shading of the dashboard title to match the color of the graphic, so some kind of bluish color. I think that might work. I don't really like that, so I am going to do Control Z, the handy undo, and you can fiddle with that color for the title on your own if you want. I mean, it's not bad, but it's okay. Let's go ahead and we're going to hide the title on our line chart, and we're going to hide the title on the bottom chart. Then what I'm going to do is I'm going to close the Format Dashboard pane, and up at the top where you have your Dashboard and your Layout tab, there's a left-pointing arrow; click it so you can collapse that pane, and then I can widen the Data Guide to take up more space. And so let me do something here; looks like the top of my head is cut off; I'll fix that later. So whatever visualization you're on, the Data Guide will update, and this would be something that I would put a caption on it, you know, just explaining what's on here. So let's put the caption on the graphic one. So we'll go to Worksheet > Show Caption. Yeah, and so we're going to edit that. I'm going to select all of the information, and I'll put: "The infographic is showing the total sales amount for the particular region. I press… oh, and then I'm going to type: 'The line chart is showing the sales by year for the same region, and then the bar chart is showing these sales by year for all regions,' something like that," and Apply, and then I'm going to select it. So since we have that dashboard background color thing happening there and the captions coming up with that…

same color. I'm going to leave the font black, but I'm going to make it bold and then apply so it kind of stands out. And that is your central region sales dashboard with an infographic on the top; you have your line chart for that region in the middle, and then you are able to assess All Region sales by year at the bottom. So you're going to have another opportunity to create three more dashboards on your own. I would suggest copying and just switching out the graphics. So go ahead and get started on that, or you can build them from scratch. Go ahead and pause the video; I'm going to build mine as well.

So on my central one, I right-clicked on the dashboard title and I went to edit height, and I changed it to 24. Then I formatted the title so that it's bold and it's on the left side, so it's not sitting right above the graphic. And here is my East, myself, and my West, and I actually went to Central and copied the text from the caption so I could make sure it was consistent across all of the dashboards, and I named each one accordingly. So that is one way that you can have an infographic on a dashboard, and like I said, in that folder there are other shapes that you can play with on your own and make them into something. Go ahead and save your file.

In this module, we started with string manipulation, and we created a calculated field that combined the customer first, separated by a space, and then the customer last fields. Now you know when we originally started, we hid the customer name field. As mentioned, we could have unhidden it and used that, but it was more fun to show you how to combine. And then we did another calculated field where we arranged it so it would be last name, comma, first name. We talked about potentially having the correct data exports from Tableau to Excel. You learned that Tableau arranges by dimensions, then measures, and each is arranged alphabetically. And really, you're more likely to have to correct data exports when you're using a larger amount of data than we're able to with this file. So we reviewed it, and you learned a little trick. It didn't happen; I wanted us to get an error message, which I know sounds strange, but sometimes once you do the export to Excel, if you don't save or close the Excel file and you try to do another export, you'll get an error message.

In lesson three, you learned how to blend data. We opened both of the Excel files first so you could see the difference in the data and the similarities in the data between the two files. You learned how to bring in the primary data source and then how to edit blend relationships if necessary. You learned that the primary data source will have a blue check mark, and the secondary will have an orange check mark and an orange bar down the side of the data pane. Once you use a field from the secondary data source, all of the fields will have an orange check mark on them as well, on their pills.

We learned some optimizing tips for efficient, fast visualizations on dashboard, and so we removed a sheet from a dashboard and used the dashboard action of go to sheet and wrote some explanatory text so they could see a more granular level of detail without having both of those visualizations on the dashboard. You also learned how to look at your status bar to see how many marks are in the view. If you have a lot of marks, you want to consider using some optimizing tips. And we ended by creating infographics, which we ended up using on our dashboards so we could see sales information for each individual region. We created four dashboards, one for each region, and you do have that link at the bottom where you can grab some more images that are not included in the files for video description for your future use.

In module 15, we're going to cover visual best practices. Now, most of this stuff we've been doing all along. We've been coloring our numbers; we've been using dual axes charts two different ways. We talked about pie charts and how they're good as a supplemental chart but not so good just on their own, and we've been sizing our marks in order to make the information more prevalent. The one thing that we haven't done is in lesson three, where is the three-dimensional data; that's going to be a really cool lesson. In the meantime, for the other lessons where we already have experience with those topics, I'm going to have you do some things on your own while I'm doing some things on my own, and then I'll show you what I've done in order to meet the criteria. So let's go ahead and get started.

So in terms of coloring your numbers, I'm going to have you go to your top 10 products by sales value sheet, and you're going to do this on your own. I'll be doing it, and then I'll show you what I've done at the end, but what I'd like you to do is I want to leave this particular sheet intact, so you might want to make a copy of it, or you can start from scratch, your choice. And what I'd like it to be would be the top four products by sales value by region, and I'd like region to provide the color on the bars, and I like the mark labels to be bold. So top four products by region and sales value; I would like the region to provide the color, and I would like the marks labels to be bold. Go ahead and do that one.

So this is what I came up with for that challenge, and you can see which shelves and marks that I used, and I change the filter so it reflected top four. All right, so the next challenge for you: what I'd like you to do, the topic is dueling with dual axes. I would like you to create two dual axes charts, one by using show me and the other by dragging and dropping it when you see the dashed line, and then I'll show you what I do to that effect. You can use any dimensions and measures that you would like. So this one I did for the United States cost and profit by year; this one I use the show me pane, and that's why I hid my explain data panel over there. And then the other one I did, I use drag and drop, and this is for the United States sum and quantity—well, quantity in sales by year. So you can drag and drop; sometimes you have to use the show me pane. If you put both measures on the rows shelf, it may give you a different kind of visualization. So I actually use drag and drop for this one and show me on the other.

So the next topic in order is connecting to 3D data, but we're going to do that at the end of this module because we're going to be using a different data source. So I'm going to come back to that topic. In the meantime, I have another assignment for you, and this one is eating humble pie. Pie charts are not—what I'd like you to do is create two pie charts using whatever measures and dimensions you like. When you're done, I'll show you the ones that I am creating. My first one is Max cost by region; nothing on the shelves up here, everything on the MOX card. And my second one is profit by state/province group, the group that we created, and I'm showing Mark labels on both of them.

Our next topic is sizing to make a data story. So with my first pie chart here on the screen, you can see that I changed it to fit the entire view, and so even though it's fitting the entire view, it's still kind of small. Now the next thing you'll notice, and you've seen this before with a pie chart, size is used for whatever measure you're using on your pie chart as well as angle, but even though its size is automatically being used for that, once you make it into a pie chart, you can still use size to increase the size of the pie chart even though it's filling the entire view. So this one you don't have to do on your own; I'm just going to go to size, and I'm going to drag the bar to right before the next mark on the bar, and you see how it fills up more of the view, which is better to look at it that way; you can actually see it better. And then I'm going to do the same thing with the other pie chart that I created, and now that's also sized accordingly.

So what we're going to do now, we have one more topic in this module, and like I said, this module was—since we've done a lot of these things throughout the course, I wanted you to be able to do some things on your own and then see my result at least—and so we're going to be using a different file for connecting to 3D data. And so what we want to do is go ahead and Save and Close from the file menu your sample Superstore workbook. When I reviewed this slide with you afterwards, I realized that I didn't put the files that we're going to be using for lesson three on the slide, so I've edited it and added that because the slideshow is also in the files for the video description, and I want you to have it as a reference. So for lesson three, we're going to be using an Excel file called 3D data, and we're going to be using some more of the shapes that we've already put into our my shapes folder in the Tableau Repository. So if you haven't grabbed all the files from the video description, I need you to grab the 3D data Excel file, and when you put it in your working directory, go ahead and open that file. We're going to start by looking at that file and getting some information from it. As you can see, this file has two sheet tabs: the first one is profit ratio Broken Out by sub category, and the second one is called densification. And let's take a look at that one.

And so data densification is a process in which marks are generated in Tableau and add it to the view, even though those marks aren't supported by records in the underlying data source. So the densification technique being used here will help us plot multiple points between 0 and 100, and if you notice on the profit ratio, we don't have those values, so we're going to force them to happen even though they aren't supported by any records in the underlying data source. So the other thing is, and I'm going to write it down so we remember, I'm going to make note of the highest profit ratio, which is 44. So I've noted that down. We can go ahead and close this Excel file and connect to it in Tableau. The first thing we're going to do is drag profit ratio onto the canvas, and then we are going to double-click on it to get to the physical layer, and we're going to drag densification onto the canvas. So it's going to want to create an inner join; that's the most common join type where it's really bringing in matching records, right, only records that match. And so what we're going to do is create a join calculation for both profit ratio, which is listed here for data source, and then for densification. So we're going to go ahead and click on create join calculation, and you're going to type the number one and click OK, and I'll explain it after we get it in. And then you're going to do the same thing underneath densification, so you're going to go to the drop-down arrow, create a join calculation, and type the number one. So when you do that, the tables are joined on an inner join using the join calculation. So I'm going to go ahead and close the join box, and to show you why we did that, if we look down at the data, you'll see that for every subcategory there are two rows, and if you look over to the right, the identification column, it's giving you a row for the upper limit of the path that we want for the lower limit, so 100 and 0 for each of the subcategories in our data; that's what that join calculation did.

So our next step is to go to sheet view, and we're going to create a bin for the path measure there. So we're going to right-click on path, hover over create, and choose bins. So you worked with bins when we did the histogram earlier in the course, and all we want to do here is make the sides of the bin one, and then we're going to click OK. So some of this will tie together in a few more steps. So we created our path bin, and now we're going to create a calculated field, and we're going to name it index, and the calculation we're going to do is going to be 100 minus, and then we're going to use Tableau's index function, which if you look on the right side, you see that it Returns the index of the current Row in the partition. Example: for the first row in the partition, partition index would equal 1. So we want 100 minus the index. We're going to go ahead and click OK, and that calculation will plot the x-axis values from 100 through 0, which is what we want. And now we're going to create another calculated field, and we're going to call it profit ratio value, and this calculation we're going to use the window Max function to get the max of all the data, the max value of all the data in The View, and then we also want—we're going to type Max and use the max function again, and we want the maximum profit ratio. So here you'll see we want the one that's a measure that's green, and it says profit ratio, and then in parentheses profit ratio; that's the one we're choosing. And so we want to be able to compare the max profit ratio from the window with the max profit ratio, and we're going to go ahead and click OK. So now we have our index and our profit ratio value calculated fields.

Now we're going to create another calculated field. So again, bear with me; once we start putting it all together, it will make a lot more sense than it does doing the individual steps. We have one more calculated field to create, and we're going to name this one row, and we're going to use an if then else construct here. So I'm going to grab the IF function, and I'm going to reference index and not the function but the calculated field that we created. So if index and we're going to do less than equal, and we're going to grab profit ratio value calculated field, then we're going to grab the then function, and we're going to reference our index calculated field again, grab else function, and we're going to use the null function, and we need to give it an end statement. So if the index is less than or equal to the profit ratio value, then use the index, or else leave it blank or leave it as a null, and we're going to click OK. So now we have our three calculated fields. We're going to change the mark type to shape, and we're going to drag subcategory to columns, and we're also going to drag subcategory to shape. We're going to grab our path bin, and we want to drop that on detail; looks weird right now. And we're going to drag our row calculation to rows, and we want the row calculation to compute using the path bin. So we're going to right-click on it, hover over compute using, and choose path bin. So right now, look at the numbers on the axis, and we want them to be from 0 to 100. So in order to make that happen, we're gonna do a few things. So the first thing we're going to do is we're going to edit the index calculated field, and we're going to use apply here. Let me collapse this right side, move it over; we're going to use apply when we do our changes and leave this window open so we can keep changing things. So the first thing we're going to do here is we're going to delete The 100 and apply, and you notice now, because we left the minus sign in the calculation, it's going from zero to negative one hundred, all right, and that's not what we want; the axis is negative. So now we're going to edit it again, and we're going to do 50 minus index and apply, and since we want the axis to have a range of values of, you know, equaling a hundred, now it's going from positive 50 to negative 50, because we're plotting 100 points. Change it back to 100 and apply, and so our highest value is 44, and that's why it looks like that right now. So go ahead and click OK on our index calculation for right now, and we're going to go to shape on the mark Shelf, and we're going to do the drop-down next to default, go to my shapes. So in my shapes, we use the people shapes earlier, right, and we're going to use these 3D square shapes. So I'm going to select copiers and give it the first 3D Square, select envelope, give it the second one, and continue going down the list assigning the squares to the different subcategories, and we're going to go ahead and click OK. Wow, we're getting there; not quite done yet; not quite done yet. Let's switch it to entire View, and we're going to go to size on the marks card, and I'm going to increase the size, go a little bit more; looking pretty good right now. We have some other cleanup work to do here on the left side; let's—some—right-click on the axis and get rid of show header, and then I'm going to right-click on the rows pill and go to format; actually, I'm going to right-click inside the chart and go to format, and I'm on the sheet tab, and we're going to go to the lines, and for the sheet, we don't want to see any grid lines; that's already on none; we don't want to see zero lines, and we don't want to see axis ruler lines. And then go to rows, and it's the same thing; we want none on the top two and none for axis rulers. So you get rid of all those grid lines in the background, and then we can go ahead and close the format pane, and we're going to drag profit ratio value to label. So you see at the bottom of each shape you're seeing the profit ratio value, and what we want to do is we're going to go to label, and let's go to the font and make it 12 point. I'm going to color it like a darkish gray color, and then I'm going to go to the text, and at the end of that, I'm going to type a percent sign and click apply, and you can see the change at the bottom. Now we really want those percentages at the top, so I'm going to click OK on the edit label, and I'm going to go to the alignment, and I'm going to do the top aligned under vertical. So now they're on the top of our 3D shapes, and we're going to right-click on the subcategory title and format it, and we want to make that font 14 point. And so a lot of steps in the process; however, the end result is this: a pretty nice-looking 3D chart. And what we're going to do now is we're going to name the sheet; we'll just call it 3D chart, and you're going to save and close this file, and you're going to name it—you can call it 3D data as the workbook name—close it and reopen Superstore live.

This module, you got a lot of hands-on and on your own practice with things that we've been covering throughout the course: by coloring your numbers, dueling with dual axes, eating humble pie—pie charts or not—and sizing to make a data story. What was new here is the three-dimensional data. So I know that that process is kind of long; I mean, we had three calculated fields, we had a bin, we had all kinds of stuff going on; we used the shapes, but the end result was really, really cool. So now you have an example of how to do three-dimensional data using those custom shapes in Tableau.

In our final module, you'll learn how to share your information. We did a little bit of this earlier in the course, in the first lesson; you'll learn how to package your workbooks; lesson two, how to publish to Tableau Public; and lesson three, mobilizing your dashboards. Let's get started. So earlier in the course, much earlier, we created a packaged workbook; we used our vehicles and pricing file in order to do so because we have both of those Excel files saved locally. Sample Superstore is different because we got this from within Tableau, and we don't have the data source or images saved locally. So what we're going to do here is let's save and close our sample Superstore file. And reopen.

3D data, because we have that Excel file stored locally. And when you export a package workbook, it contains the locally saved files and images. And so we're going to go to the file tab, and we're going to choose export packaged workbook. And we'll name it "3D data-packaged". Just a reminder, it gives it a different extension: .twbx. And the icon has like a—I don't even know what color that is—but it has a vertical band on the left-hand side. And of course, you can always look at the type. And we're gonna save. So you can literally send that to anyone that has Tableau Desktop, Tableau Reader, and they can open it and have access to the data source and the images.

Go ahead and create a dashboard sheet, and you're going to go and just add this visualization to it. Let me change my size first. Now we're not going to do anything else to it on a dashboard because I want to leave this for you, for to play with, you know, later on your own; adding other objects to it, or dashboard actions, or coloration, whatever you want to do with it. Adding captions and stuff like that might be helpful. So I just wanted to put it on a dashboard, and I'm going to name the dashboard "3D subcategory and this is profit ratio". And then I'm going to hide the title at the top, and I'm going to show the dashboard title, which will be the same as what we named the sheet. And now let's save.

And we want to publish this to Tableau Public. So in order to do that, you're going to go up to the server menu, and at the bottom you'll see Tableau Public. And you can save, you can open from Tableau Public, save to Tableau Public, or save as. We're going to choose "save to Tableau Public". Tableau Public is the free version of Tableau. If you don't have an account, you can go to the bottom and create one now for free. I'm going to—if you do have an account, you just need to log into it. So I'm going to do that now and sign in. So this is good. I tried to show you an error earlier and couldn't make it happen. So this is saying that the Tableau server you are publishing to, which is Tableau Public, does not permit external database connections. Use the data menu to create an extract for the following data sources. So I'm going to click OK, and I'm going to go to the data—actually, I'm going to do it like this. Let's see. So right here on the data menu, you're going to hover over "profit ratio + 3D data", and you're going to choose "extract data" and specify how to store data in the extract. So "store data using one table for each logical table". So we're going to go down, and it says, "Use this option if you need to use extract filters, aggregation, or other extract settings". If I do the option button for physical tables, it wants to know like how much data to extract, and everything is kind of dimmed out here; you can't do anything but go to "extract" at the bottom. So let's click "extract" at the bottom. So other extracts that you have, you know, they have the .hyper extension, and we're going to leave the same file name and save. And then now I can go back to the server menu, hover over Tableau Public, and "save to Tableau Public". And so anyone else on Tableau Public can look for and find this visualization. And by the way, I should address this: it's—it's my name is Trish Connor Cato, but it says Veronica Young here. I'm using another account for my company with a different employee name. So that's what's going on there. But here is the details, the date it was published, 3D data, so on and so forth. There's some controls at the bottom where this visualization can be shared, right? It can be downloaded, and you can look at it in full screen. So that's kind of how that goes.

Now I'm back in Tableau Desktop, and I want to focus on the left side of the screen. I briefly mentioned that there is a phone view here, right? Where when you have a dashboard and you switch to phone view, it lets you see how it would look if it was viewed on a mobile device. Now Tableau does have a mobile app, and it's available for both Apple and in the Google Store, and it doesn't allow you to do any edits; it basically allows you to view stuff. So this view gives you an idea of what it's going to look like, and depending on the size of the mobile devices that are being used. So if you hover over an edge, it will pop up: "Do you want to turn off the auto-generated layout and create a custom one?" Well, this looks about the size of—of most people's cell phones, so I'm going to say no here and leave it like that. And then right underneath where it says "phone", you have "device preview". So now you get a little bit of a toolbar up here, and it's showing you the phone dimensions, and you can adjust it even though we said no. So here's specific phones, like if you know everybody's using iPhones, that kind of thing, you can go ahead and change it to the type of phone that is being used. And so just by doing that, I'm going to put mine on a Samsung Galaxy S Series layout. That's kind of how that works, and it will auto-generate a layout for you. However, it's best if you look at it and make sure it's appropriate for the devices that are being used in your organization. Go ahead and save, and now we can change it back to default.

And something else I want to show you is the layout tab at the top, all right? So we only have the 3D chart on here. I mean, some of this you can do from the dashboard: show title, whether it's floating, type of thing. You can actually put in position and size coordinates; you can apply a border to it, and it kind of shows inside the pane there, the border, all right? So, and you can make it thicker by using these boxes if you'd like. So I took the border away. And sometimes it depends on what kind of data is on the sheet, or what kind of visualization I should say; sometimes the outer and inner padding, you can kind of play around with that as well. So go ahead and save one more time.

In this module, we begin by packaging our workbook with the 3D data, and we use that one because we have the actual data source and shape files saved locally, which become part of the package. Then we moved on to publishing to Tableau Public, and we use the server menu for that. Tableau Public, again, is the free component of Tableau. And when we try to publish it, we got an error message, and the error message basically led us to having to create an extract in order to be able to publish to Tableau Public. So we were successful with publishing it, and we viewed it on Tableau Public, and you saw that people can share from there, they can download it, so on and so forth. And in the final lesson, you learned how to mobilize your dashboard. You learned that Tableau has a mobile app available both for Apple and like Samsung phones—Androids, I should say—so available for both Apple and Android in their respective stores, and you learned how to change the layout and how you could even assign it to a specific phone. And so depending on what your organization uses, you also learn that when the mobile app is being used, it doesn't allow editing; it's just for viewing.

In this extensive course, we started by connecting to a variety of data sources, in particular text, Excel, and Access database data sources. We spent some time learning how to make dashboards relevant. We did some string manipulation, so we use the concatenation character to put customer first and customer last together, again with the space in between. And we even did the reverse where we had customer last, comma customer first. We also concatenated region and state fields with slashes in between. I tried to have an error come up when we were correcting data exports from Tableau to Excel, but you learned how Tableau arranges the data when you're doing that, and you learned what to look out for. Then we got into blending data, so we had two separate Excel files that we used. You also learned how to edit blend relationships and about the color coding, so the primary data source will be with a blue check mark; secondary has an orange check and an orange bar down the side of the data pane. And when you use a field in the view from the secondary, that field will have an orange check mark on it also. And we learned how to exclude one bit of data. We went over some optimizing tips for efficient, fast visualization, and we removed the state by sales table from the state by sales map dashboard, and we used a dashboard action to link to the sheet instead. Then we got into the fun stuff by adding an infographic to the Tableau dashboard, and so we went through that process partly with my guidance, and then you got to do a lot of it on your own, which is always good. And we ultimately ended up creating an individual dashboard for each region. We went over visual best practices, so you got a lot more hands-on here; what was really new here. So you got to do some examples of coloring your numbers, dueling with dual axes, and pie charts are not, and sizing to make a data story. The new information here was creating three-dimensional data, so we went through the process of doing that. We had, like I believe, three calculated fields, a bin, um, you learned a little bit about the densification technique, so on and so forth. I thought that ended up being a really nice 3D column chart. And then we ended by reviewing how to package workbooks with data, and then we published to Tableau Public, and when we did that we got an error which basically said we had to create an extract in order to be able to publish. So we did that, and we were able to view it in Tableau Public and see what options are out there. Then you learned about mobilizing your dashboards; you learned about the Tableau mobile app that's available in the Apple Store as well as the Android store, the Google Store, and we learned how to affect the layout in mobile view. [Music] Thanks for watching. To earn certificates and watch our courses without ads, check out learnitanytime.com. [Music]