Transcription
hello everyone my name is Assad ran Nani, and I have been working as a data analyst for a leading financial institution. I believe the best way to learn any new technology is through a Hands-On project, and with that approach in mind, I have created a very Hands-On project. Um, I have created a very Hands-On Tableau crash course. Tableau is a great data visualization tool known for its robust features and user-friendly interface. Some of the great features of Tableau are data connectivity and data blending; this allows analysts to connect with various data sources and blend them together in a single view. A user-friendly interface allows analysts to drag and drop data fields to quickly visualize the data. Advanced visualizations such as bar charts, tree maps, scatter plots, heat maps, and much more allow a lot of options for visualization. Interactive dashboards allow users to create a customizable dashboard that provides insights. Briefly, users can then drill down into the data and use real-time filters to get a deeper insight into the data. Finally, the best feature of Tableau is collaboration and sharing. Tableau allows analysts to publish their visualizations and dashboards to the Tableau server, which allows for broader user access. In this course, you are going to learn about all these features by working with real-world Airbnb listing data. In this course, I will first introduce a concept to you, and then later on, we will use that concept in our project. I hope at the end of this course you are comfortable enough and confident enough to take a deeper dive into the world of visualization using Tableau. Thank you, and I hope you enjoy this [Music] course.
hello everyone. In this video, we are going to understand the data attributes of Airbnb listing data. Before you start creating visualizations, it's important for you to understand the data that you're working with, and we're going to spend some time understanding the data attributes. We are also going to go over Tableau's public website and how to download the public version of the Tableau desktop application. I'm also going to spend some time understanding the dashboard that we are going to be creating at the end of this entire course, and so let's get started. If you have ever heard about Airbnb, it is basically a website that provides opportunities for homeowners to list their properties for short-term rental to individuals across the world, like tourists, etc. Now, it pretty much covers the entire major metropolitan area of the entire world, but in our case, we are going to go over the three cities it has in Texas: Austin, Dallas, and Fort Worth. Now, to be consistent, um, we are going to go over the listing information provided up until March 2024 for the three cities. I highly recommend to you—I highly recommend you—use the CSV that I have provided because I have done some data cleaning, and so make sure you use the CSV that I have provided and not download the CSV from here. But let's now discuss the data dictionary. And so, if you click on the data dropdown, um, click on the last icon that says data dictionary, and it's going to open up a spreadsheet. Make sure that you have the latest version of this listing.CSV and just go over this spreadsheet; it should be really straightforward. Uh, but it has information about the listing, it has information about the host, about the property, about the neighborhood, about the accommodation, price, reviews, etc. Uh, it should be really straightforward, but I just want to go over some important attributes. The first one, which is on row number nine, the field name is ID; it is a unique identifier for the listing. And another important one is, um, host ID, which is the unique identifier for the host's user. Uh, as you can see, it also has information like latitude and longitude, which is going to be really useful to us when we are going to connect this table with the zip information, and so we are going to use these attributes to connect that or create that relationship.
Let's discuss Tableau Public. Now, if you search for Tableau Public on any of the popular search engines, this is the website that you should see in the top results. Um, the name of the website is tableaupublic.tableau.com, and this website allows data analysts to publish their visualizations, and it is also a great tool to learn about data visualization because you can see all the visualizations created by other analysts and download them and explore them in the Tableau application. To download the Tableau application, hover over to the Create tab, and the second option that says Download Tableau Desktop Public Edition, click on it, and uh, this is the page that it's going to forward you to. Click on the download button, and after providing some very basic information, you should be able to download the application with ease. And once the download finishes, this is how the application is going to look like. So, like I said, this—like I said, this website allows you to search for visualizations, so let me show you the visualization that we are going to create, and I have this—I have that visualization published as part of my featured visualizations, so I'm just going to search for it: Airbnb Texas listings. And this is the dashboard that I created that is published that others can search, and as you can see, this is an interactive dashboard, uh, meaning that I can select different cities, and the view is going to change. So, this—this is all the listings in the city of Fort Worth. You can actually change the view by clicking on any of the room types. So, if I want to see the top zip codes um by private room or rather the shared room, I just have to click on the shared room, and so far in the city of Fort Worth, we have only 1, 2, 3, 4 um zip codes, and this is the most—the—this is the—of this is the zip code 76110 where we have the most listings. This dashboard also allows the user to switch between the views. So, for example, if the user wants to see, instead of a tree map, a polygon map, they can click on it, and they can see the listing or the zip information by a polygon map or rather in a polygon map. They can do the same thing: shared room, and so far 1, 2, 3, 4, 5, 6—six zip codes, and this zip code, which has the darker—darker shade, represents um the higher listing. 76110 is the same as the previous one. All right, so at the end of the course, this is the dashboard that you should be able to create. It's relatively straightforward. I'm going to teach you how to create this visualization step by step, and so I'm really excited. Hope to see you in the next [Music] video.
hello everyone. In this video, we are just going to explore the Tableau desktop. We are not going to create any of the data worksheets that we set out to create at the start of the video, but I just want you to go over some of the basic concepts of Tableau. And so, we're going to start by adding data sources and exploring what the data source tab is and how to navigate the data source tab. Then you're going to understand what a union is and how we can create unions in our data source. And finally, we are just going to explore the data and also get ourselves familiar with the interface of the worksheet. A worksheet is basically an important concept because it is the combination of worksheets that allows us to create a fully functional, dynamic, interactive dashboard. And so this is all I want to go over in this video, so let's get started. Um, the first thing that you're going to observe when we open the Tableau Public desktop software is this page, which is basically asking us to connect to any of the data types. Now, it's important for us to understand that, um, in the actual paid version of Tableau software, we're going to have a lot more options to connect to various different data types. You can actually use any—any client and directly fetch the data from a SQL or NoSQL data type, but unfortunately, in Tableau Public, we don't have this option. And so, since we are working with CSVs, we're going to be using the text file option to connect. And so, when—when I click on the text file, it's going to prompt me to a directory, and I have already provided all the three city listings along with the zip code lookup, so just keep it in a separate directory. And once you have put it in a separate directory, just simply um click on any one of the listings, and as soon as you do that, the Tableau software is going to bring you to a completely different interface. So let's go over what's happening here. On the left, you can see that all the CSVs in that directory are populated on the left, and on the bottom right, you can see information about the data. This chart on the bottom left represents the data type, um, and the color represents either discrete or continuous values. So, discrete and continuous values are important concepts in Tableau, and it essentially means, um, if it's a discrete data type, it's going to be either string, Boolean, dates, and other data types. However, if it's continuous, then it's mostly going to be numerical. As you can see here, um, geospatial variables like latitude and longitude, um, so these data types are mostly going to be continuous. Now, we're going to see how the behavior of the field changes in the worksheet if it's depending on if it's a discrete data type or a continuous data type, but let's just go over this sheet real quickly. Another thing that you can see is that Tableau is automatically going to populate the first 100 rows of the CSV that we have connected, but if you want to see more—let's just say you want to see a thousand—you can just simply type in "thousand rows" here, and then it's automatically going to populate the top thousand or the first thousand rows. Now, we have already—already only connected the Austin listing. Let's introduce a concept of Union to add the other two listings as well. And, um, if you have—if you have studied the concept of Union in SQL, it's—it's essentially the same thing. Since the schema of the Austin listing is the same as Dallas and Fort Worth, and by schema I mean the data structure and the column name is exactly the same, we can create a union by simply dragging the CSV and dropping it onto um this Union tab that is being populated when I uh put the CSV on top of the Austin listing CSV. So, once you drop it, you can see the icon change representing a union, and if you click on "added union," you can see the—the two CSVs that are representing this manual specific um union. Let's also drag and drop the Fort Worth and observe the union again. Now we can see three cities and three CSVs representing a union, which is perfect. And like I mentioned, I'm able to do this easily because the schema or the data structure or the column names of—of the three CSVs is exactly the same, so that's why I can easily do it. So let's actually change the name. To change the name of the data, you can actually just click here and rename, and then just change it to maybe "Texas Listing Data," and at this point, let's basically—all I wanted to go over in the data source. Now let's go to the worksheet, and it's important for us to recognize that the worksheet is going to be the building block of our dashboard. Um, a dashboard is nothing but a combination of um one or more worksheets represented in a basically templated layout, right? And the dynamic nature of the dashboard is—is nothing but the filtration that is happening on individual views. So let's just explore real quickly about this interface of the worksheet. On the top, you can see the column shelf and the row shelf, and you can also see the filter block and the mark block. So, essentially, the mark along with the rows and columns are going to help us to um represent our data. So let us just simply double click on the ID and see what happens. So, as you can see, um, since Tableau is recognizing this as a discrete data type, um, it's automatically being represented by the blue color, but we can essentially change that. We can click here and change it to continuous, and once I then drag and drop again—oops, drag and drop again—the presentation or the representation of the ID has changed from a table to a graph, and this is basically what um is the major difference between a discrete and a continuous variable. Um, now, most of the time, you're going to see automatically that this view has—is going to be changed to an aggregated view, but essentially, we are not observing this now. So we can actually just change this ID to an aggregated view. So let's just say if you want to see how many IDs we have in this entire dashboard or this entire data set, we can simply click here and change from the measure to count distinct ID, and as you can see, now we can see a better representation of the IDs. Now, if you don't like this view and you want to change the continuous nature of this to a discrete, you can simply change it from continuous to discrete, and it's automatically going to change. Let's introduce um something in the column and see how the behavior of this entire dashboard changes. So, if I were to—I don't know—just see the increase in the listing uh over the years, I can simply drag and drop the last view, which is—as you can see—is already represented by a date, um just simply drag and drop here. Um, it is automatically going to give us um over the years what has been the growth, but like I mentioned, just—um, you—we are not seeing—we are not observing a graph because this is a discrete—um—this is basically a discrete view. And so, to change it to a graph, we have to change it back to continuous, and so as you can see, since I guess 2022, we have observed a significant growth in the number of listings, and so this is what we can see. I don't like the fact that it's not spreading to this entire page, and so to spread it to the entire worksheet, you can simply click here and just change it to entire view, and that's it. Now, there are a few other important things that I would like to mention. Uh, as you can see, for some of the listings, we don't have the air available, and so we can actually choose to exclude that by simply right-clicking on the null and clicking on exclude. So this is much better. Now, let's just say that you want to see all the listings since 2016. As soon as we introduced uh excluded the null, um, we can see that the air has already been populated into this filter block here, and so we can actually see what's happening. As you can see, we have excluded null, so let's also exclude 2012, 13, 14, and 15, and so we can see how the behavior of the graph is changing, and now we have only the data from 2016 up until 2024. Um, another thing that I would like to introduce is the concept of analytics. As soon as we have some dashboard or some view, um, you can introduce analytics. It's not going to work—it's going to be pretty much grayed out when we have nothing. So let me show you. So in this worksheet, we have absolutely no view, and so as soon as I go to analytics, I see everything is grayed out. And so we're not going to explore the depth of analytics in this course, but I just wanted to show you that it is a very important feature of Tableau. And so, if I want to see um the trend line over the years, and I simply double click on the trend line, and voila, I can see a trend line, but like I said, we are not interested in—we're not going to be using any of the analytics features, so let's just um remove that. So I guess we have already—in this video—this is all I wanted to go over, just the basics of Tableau. In the next video, we're going to be starting building one by one the components of our dashboard, and so we're going to start with the top two: total listings, um total host ID, and also the total count of zip codes. So, the—the top three um components of our dashboards, we're going to start building in the next lecture, so I'll see you [Music] there.
hello again. In this video, we are going to go over mark cards, and essentially, how using mark cards you can control visual analysis onto your worksheets. So it's a really important component of Tableau to understand. We are also going to go over relationships and how, using relationships, you can introduce new data sources in a much more flexible and dynamic way. One of the most important things for you to understand is how a relationship differs from a join, and so we are going to go over that in this video. Finally, we are going to create three worksheets: total listings, total hosts, and total zip codes. And these three worksheets are going to be part of our Tableau dashboard that we are going to be creating. So let's get started. It's important for us to understand the concept of mark cards, and essentially, a mark card is the key element for visual narratives in Tableau. Every time you want to sort of control the visualization, you're going to be using mark cards along with the attributes in the column shelf and the row shelf. So, since we are interested in just figuring out how many hosts there are or how many listings there are in the three cities that we have selected for analysis, um, let's bring the ID to the mark and see the behavior. So, since I'm only interested in the—in the numerical value, all I have to do is drag the attribute from the table and bring it to the text um portion of the mark card, and as—as soon as I drop it, you can see that these are all the listings or like the unique identifier of a listing um in the three cities that we have selected. Like I said, we are interested in the aggregated value, so all I have to do is um click on the dropdown of the attribute and select count distinct. As soon as I do that, you can see that there are a total of 2,367 listings in the three cities. Um, let's actually expand the view and change it from standard to cover this entire sheet, um, and to control the format, all I have to do is again click on the dropdown of the attribute in the mark card, click on format, and bring the alignment to the left and just keep it in the middle. You can actually control the size um again on the mark card. As you can see, there is a size button; click here, and you can actually just control it with this slider. Perfect. Let's change the name; this is the total listings. And now let's actually find out how many hosts there are in the three cities for our analysis. Click on um the sheet and open a new sheet, um drag and drop the host ID, and again drop it to the text portion, and as you can see, these are all the host IDs. Since we're interested in the aggregated view, we have to again click on the dropdown of the attribute, um click on me, uh go to measure, and select count distinct again. Expand it to the entire view, format it uh exactly the same way as we did for the previous sheet, and control the size to—let's—yeah, that's actually better. Change the name of the sheet: Total Hosts. Now let's see—if I were to search for zip codes, I actually cannot figure it out then—that's because um we haven't introduced the table that contains the zip code in our data source. And to actually do that, all we have to do is go back to the data source, and there's one CSV—as you can see—it goes by zip code, let long, and lookup. Just simply drag it to this whitespace, and as soon as you do that, um the previous sheet is already trying to sort of like relate to this uh new sheet that we are about to drop, and as—as soon as I do that, as you can see, it's actually giving us an error: It says the relationship has no matching field; add the relationship to select the matching field. Now, at this point, there's one important concept of Tableau that I want to introduce, and that's called relationship. A relationship is simply the relationship between the two data sources. The idea is somewhat similar to a join where we have the attribute of one table—
Which is going to be the same as the attribute in, as some of the attributes in the another table, except in the relationship, the tables are logically different, and they are kept separate versus in the join. Um, as soon as you create a join, let's just say inner join, all of the tables are now going to be converted into a new, a new table, and the relationship is, is actually very different. Like I said, one of the biggest differences is that relationship, uh, the tables between the relationship are going to be um kept separate. So it's really important; it's going to help us to um analyze and separate out our um data.
Let's go back to the error. Uh, let's see what it says: "The relationship has no matching fields. Addit the relationship to select matching fields." And what basically this is saying is that this table wants to relate to this table, but it actually doesn't know how to, um, what are the attributes that it needs to select um and to sort of create a relationship. And to do that, all we have to do is click on this relationship, click on this line, select the field on the listing table. So since we are trying to connect the latitude and longitude with the ZIP code, all we have to do is select latitude, um select latitude, and then add one more field which is called the longitude. Now, the performance option is actually something which is not um mandatory to sort of like establish, um, but it does help in um the performance of the filter. And since this is really not a constraint for us at this moment, it's okay if I don't really set up the performance option and keep, keep the one that is default.
Now let's go back and click on a new sheet. And if I were to search the ZIP code, um, as you can see, I can see the zip code and also observe that in the data, um, you can see two different data sources because we have introduced two different CSVs. And so, uh, as soon as I want to see, I want to see at this point how many zip codes we are covering in the three cities. And so all I have to do again is drag the zip code and drop it to the text portion of the mark card, change the measure to distinct, um, and again format, let me just format it real quickly, also increase the size, and that's it. In the next video, we are going to expand our knowledge of mark cards, and I'm going to show you how using mark cards we can create different visualizations. We are also going to go over filters and how to introduce filters onto a worksheet. So stay [Music] tuned.
Hello everyone. In this video, we're going to expand our knowledge of Mark cards and understand how to create different visualizations by controlling the mark cards, uh, and while doing so, we're going to be introduced with two new concepts, which is measure and dimension. And if you understand qualitative data and quantitative data, that should be really straightforward. Um, finally, after understanding mark cards, we're going to go over and create um two new graphs for our dashboard, which is a pie chart and a tree map. And at the end of the video, I'm going to introduce to you the concept of filter, and we're going to introduce a filter onto a worksheet. So let's get started. This is a great article that is published onto Tableau documentation, and it basically goes over um what chart type is good for you or right for you based on the questions you're trying to answer, the data that you have, and how you want to present it to your viewers. And um, you can go over each different, each categories, but the one that we are interested in is called part Toole, and that category includes pie chart and tree map. And so let's go over and see how to create each of the uh different uh charts.
To create a pie chart, you have to select Pie in Mark type, and in the color portion of the mark card, we have to have, have a dimension um column or a dimension data. Um, a dimension is anything that is of qualitative in nature; think about your string values and Boolean; that's a prime example of a dimension data. And then in the angle portion of the mark card, we're going to have to have a measure, and a measure is usually a quantitative data. Think of this as an aggregated value. In our case, since we are interested in figuring out the total listing, so we're going to select the count distinct ID. So let's see if we can create a pie chart um for our dashboard. And so, uh, open a new worksheet and select um ID. Oh, and actually before you do that, you need to make sure that in the mark you select Pie, and as soon as you do that, you're going to notice that the angle portion is now introduced, and so that's good. So let's see if we can drag the ID onto the angle portion, and as you can see, it's automatically rendering um a circle because we selected Pie, but uh the issue is that it's not actually um selecting a measure, um, and so we're going to actually have to do it ourselves. In the measure portion, click on the a drop down um of the data uh value and then of the data field, and the measure select count distinct, and as soon as you do that, you can see that there are 22,000 um listings, but actually I want to see how they are um dispersed over the room type. And so we're going to select room type, and this is a qualitative data, so we're going to drop it onto the color portion, and as soon as we do that, our pie chart is complete, but let me actually format it. Right there you go. This is our um pie chart. And so let's see if we can create um a tree map.
Now, to create a tree map, we need to have the mark type as either automatic or Square. The color has to be, be either a measure or dimension based on what information we want to present to the viewer. Um, the size has to be one of the measure, um, so again, since we are interested in figuring out total ID, I think we're going to select the count distinct ID in this size portion, and in the label or detail, you can have either one or multiple dimensions. So give this a shot, see if you can make a tree map; if not, then it's okay; I'm going to um make it for you, and then um see if you can compare, if you, if you can make it, then compare your tree map with mine. And so let's see if we can make it. So create a new worksheet and select the mark type as either automatic or Square. I'm going to go with Square. Um, the color has to have one of the two; we can either have a dimension or a measure. So, um, if we, if you're thinking about a measure, how about we want to see how expensive a zip code is, right? And so if I can, can introduce somehow the average price onto this uh tree, that's going to be great, right? So let me go over and search for price and drag and drop the price onto the um color portion, and by default, is actually going with sum, but uh as I said, we're interested in the average, so I'm going to change it to, O sorry, I'm going to change it to average, and uh there you go. I, I can see the average price is 257 a night, perfect. So now on to the size, um, um since I'm interested in the listing, total listings, I'm going to drag the ID onto the size and um again select count distinct. There you go. That's uh, we have, Al, we have done with, we're almost there. Um, the final portion is to introduce um in either label or detail one or more dimensions. So since I want to see um based on the zip codes, let me actually just drop the ZIP code onto the label, and if I were to drop it onto the details, um, I we could not see the ZIP code as a label. So let me actually put it back. So that's good. Um, since we can have more attributes onto our um label, um I can see the ZIP code, but I actually don't know which city it belongs to. Let me select for metro area. So if ever to drag the metro area onto the label portion, I can see that this actually belongs to um Austin, and I cannot see it here because probably the ZIP code is not available, but for the ones that we have it, I can see it. So uh this is how easy it is to create uh tree map and pie charts.
Now, in as the last portion, I actually just want to introduce to you um the concept of filter, and to introduce a filter onto a worksheet, it's very easy. I want to see um the, I want to filter this uh view or this worksheet based on the metro area. So if I were to drag the metro area onto the filter portion, I can select which metro area. Let's actually select all of them, them, and there you go. I can now go to edit filter, select one or two. Let's just select Austin. We can see the view is now updated. Let me actually select Dallas. So as you can see, the, let me select Dallas and Fort Worth, and so as you can see, the view is now um getting updated. But what if I actually don't want to go to the edit filter all the time? I actually can go onto show filter, and I can select and control the filter here. Now, if you remember in our dashboard, we actually not interested in selecting multiple; we either want to give the user the option to have all of them or one of the three. And so I can actually customize this, click on the, on the filter card, click on the drop down, and select in the single value, go for list, and as soon as you do that, um, the, as you can see, we can either control all of them or have one of the three cities. So that's it; that's all I wanted to go over in this video. In the next video, we're going to um dive deep onto filter and see the order of operation as well. All right, thank you so much. I'll see you in the next video. [Music]
Hello everyone. In this video, we are going to expand our knowledge of filters, and we are going to introduce the top 15 zip codes by listing onto our tree map. We are also going to understand what are order of operations in Tableau and why they matter. And once we understand the order of operation, we are going to change the order of filter by adding the attribute Metro um area to the context filter, filter. And if you don't know what is a context filter, don't worry; that is something that we are going to understand while we go over order of operations. Finally, at the end of the video, we are going to introduce parameters, which is going to allow us much more dynamic and interactive control over the top-end filters. And so let's get started.
Now, at this level in our tree map, we have only one filter introduced, and this is again um in the context of this uh um worksheet; it is called a dimension level filter. To add one more filter, all we have to do is drag the zip code and drop it here, and since we are interested in, in top, we are going to click over the, to the top, select by field, and we, we can either use a parameter or we can manually enter the value. So for now, let's just manually enter the value; we're going to enter five, or let's just do 15, and the measure that we are going to select for the top 15 is going to be count distinct ID. As soon as I click apply, you can see the view is now changed, and if you take a closer look at the filter section, we now have two dimension level attributes, and this, uh, after studying the stream map, we can see that most, most of the top zip codes belongs to Austin, and there are only, I don't know, three Dallas that I see, and so I wonder what would happen if I select Dallas. I see only three, even though we selected 15, and in the case of Fort Worth, I see nothing because in the top 15 there is no um city, there is no zip code that belongs to Fort Worth. And so the reason that we, this is actually happening is because of, of the order of operation, as I mentioned, both of them are a dimension level filter, and we cannot change the precedence of the filtration simply by moving the zip codes. Ideally, what we want is the metro area filter to be executed first, and then whatever data remains should flow at the ZIP code level filter, uh, but this is not happening clearly. So what we need to do is make sure that this filter is executed before the ZIP code filter, and to do that, and to do that, we need to introduce this um filter to the context filter. So let me actually go show you a diagram. So imagine the data is flowing in a pipeline, and at each of these layers, the data is going to be filtered out, and in the view that we see is after the data has already gone through a layers of filter, if we have introduced those filters, and um in the case of Tableau Public, we don't get the option to introduce extract level filters simply because we cannot extract a data, but we can introduce all the other filters. And let me actually show you what is a data source filter and how we can introduce a data source filter. Now, data source filter in terms of order of operation or precedence, it's um after the extract filter, but before any of the other filters. And so um let me actually show you. To add a data source filter, we have to go to the data source on the top right; we see the option for filter, click on Add, and you can see this uh model that is opening, click on the Add, and these are all the attributes that we can select for our filtration purposes. So I'm just going to show you an example. In our dashboard, we actually don't really need to introduce any um data source level filter, so this is just purely for educational purposes. So if I select ID and if I select, go to the special section, I want to see all the IDs where the values are null, and as soon as I click okay, uh you can see that apparently there are no IDs where the value is null. And so watch what happens if I go to the worksheets; I see no data because there is no data to be rendered, and same is the case for tree map. So as you can see, the data source uh filter level has impacts all the other worksheets and all the other bottom level filters. So let me actually just remove this since we don't need it and go back to the tree map. So our objective is to change the order of precedence by making sure that this filter is executed before uh the ZIP code filter, and to do, to do that, all we have to do is change the um filter order from the dimension filter to the context filter, and think of context filter as an independent filter; it, the precedence is still after the data source filter, but before any of the dimension or measure level filters. And so let me actually show you how to change the um order. Go back to the workbook, click uh onto the drop-down of the attribute that you want to uh send to the context level filter, and you're going to see an option called Add to context, and as soon as you click on it, you can see that the data is now grayed out, and now I can see the top 15 for each of these cities, perfect. So another thing that we can do for our um worksheet is to have a dynamic level control over the ZIP code. So instead of manually selecting the top 15 like so, um let's just say if I want to uh go select top 10, every single time I want to do that, I have to click on this edit filter, but there's an easier way to do it, and um we are going to use parameters to do it. So to introduce a parameter, uh besides the just uh right of the view data, you're going to see a drop down, click here, and select um create calculated field, oh sorry, create parameter. Um, imagine parameter as a form that you're introducing that is going to be controlled by a user, and so in this form, the values that we are going to be dealing with is an integer because um the top n value is going to be an integer, and so I like the default values where the maximum is 100, the minimum is one, and the step size is one, so I'm just going to select the default values, and now that you can see that we have a parameter, I actually forgot to change the name, so let me just change the name to Top N Zip Codes, perfect. Now we can see the parameter here, but to control the parameter, we actually have to show the parameters, so we can control the parameter like here. So I've selected 10, 15, so on and so forth. So even though we have shown the parameters and created the parameters, we still have not linked it with the ZIP code. So to do that, all we have to do is in the filter sections, uh go to the dropdown, click on Add filter; we are still going to be um move over to the top tab, and instead of selecting a value or entering a value, we are going to observe our newly created parameter, which is the Top N Zip Codes, and so as soon as I click on that parameter, click apply, as you can see, now we can have much more dynamic control over our view. So that's it; that's all for this video. In the next lecture, we are going to understand what is a calculated field and how we can create a calculated field in Tableau, and so stay tuned. I'll see you in the next video. Thank you. [Music]
Hello everyone. In this video, we are going to go over calculated fields, and we, I'm going to show you how we can create new attributes using calculated fields. Now, in calculated fields, we can use various functions; we are going to use some of the string functions and create an attribute called Total Amenities. Afterwards, we are going to use Total Amenities and create a histogram out of it, and then later on, I'm going to use that attribute as a tooltip. So let's get started. I just want to show you one thing before we um go over the calculated field. So these are all the amenities, and if you go over, just as an example, an amenity is nothing but a comma-separated list. And so if I can somehow calculate how many commas there are in each of the list, I can infer the total amenities. And so let me actually show you how I can do that. First, we're going to create a new calculated field; let's name this Total Amenities. In calculated fields, we can use various functions, and if you want to know what functions we can use, these are all the functions; you can actually filter them by categories. So these are all the number functions, and these are all the string functions, and so on and so forth. Since we are going to be using the string function, let me actually just keep it at string. Um, you actually don't have to do that; even if I keep it all at all, you're going to notice as soon as I start typing something, I'm going to see the description of that function on the right side. And so let me actually calculate Total Amenities. First, we are going to take the length of amenities, subtract from it the length of amenities after replacing all the commas with nothing. And so this is how I, we can, in, we can calculate Total Amenities. If I click apply, you're going to notice that a new attribute has been added onto the data section, and this attribute has an equals to sign before it; this indicates that this is a calculated field. So I'm going to click okay, and now we are going to actually use this um and create a histogram out of it. So let me actually drag the Total Amenities onto a column section, drop it here, and since we are not interested in, in the aggregated view, I can recast the sum to str, and yes, you can actually use the function in the column and row like this. Click okay, and then I'm going to take the ID and count all the distinct IDs um as an aggregated view, and there you go; we have created a histogram, and one of the attributes is basically didn't come with the
Data. This is something that we created ourselves. So now let me actually use total amenities in the tool tip. I'm going to go over in the top zip codes, and I want to see how many amenities are being offered by the listings in each of these top listings. Right, so to do that, all I have to do is go over total amenities, drag and drop it onto the tool tip, and by default it's summing all of the total amenities. I want to see, say, a median, so I'm going to click on median, and now you're going to observe that, um, as a description, I can see the median total amenities are 39. And so actually I can format it out, so if I want to, and like I said, I can actually use the format directly. So I'm going to recast it as an oops, I'm going to re- I'm going to put um integer function after before median. So as soon as I do that, now this is looking much better, but I still don't like the fact that I see my function in the description. So now at this point, I, I can actually format the tool tip, and so on the word SE, on the word sheet at the top, you're going to notice an option for Tool tip, click here, and then you can actually change the description and format if you like. So I'm just going to change this to median amenities, and let me actually change the distinct count of ID to Total listings. So this is looking much better. You can actually preview it, and this is looking much better, and then I'm going to click okay, and there you go. Now you can use the same thing on the pie chart. So I'll pause this video and try doing the same thing as we did for uh tree map, and let me actually show you how I can do that, how we can do that. So let me just go to Total amenities, drag it and drop it onto the tool tip. Again, by default is actually using the sum, so I'm just going to cast into a median, and then uh change the sorry, change the sum onto a median, and then cast it as an integer. So this is looking much better. Again, we're going to go to the tool tip and change this to Total listings, and the last portion, instead of showing the formula, I just want to see, I just want to say median amenities, preview it, looking much better, and there you go.
In the next video, we are going going to use a geographical data and create Maps. So I'll see you [Music] there.
Hello everyone. In this video, we are going to create a map since we have some geographical data. It's a good idea to do some geographical analysis. While there are many variations of geographical analysis that you can do in Tableau, we are going to be focusing on a simple polygon map. Afterwards, we are going to expand the scope of a filter. Now, so far we have only applied filter to a single sheet, but in Tableau you can customize and apply the filter to multiple sheets. So let's get started. First, let's create a new worksheet, and if you search for zip code, you're going to notice a globe sign before for it. This indicates that the Tableau has automatically recognized this attribute as a geographical data. I want you to right click on it and verify in the geographic Geographic role that this indeed is a zip code. And once the table once that Tableau has automatically recognized the attribute as a geographical attribute, it is going to create this um attribute longitude and latitude. Now I want you to double click on longitude and then double click on latitude, and automatically uh you're going to notice that Tableau has rendered a world map. This is going to be our template. Now, so far we have not introduced any of our attribute, and so let me search for zip code and drop the ZIP code onto the details section of the mark card. Now, so far we have not changed the type of the mark card, so I want you to change the type from automatic to map. Finally, we are going to introduce the attribute price onto this polygon map. So what I want is if the ZIP code is expensive, I want that zip code to have a darker shade versus if it is less expensive, I want that zip code to have a lighter shade, similar to how we have done for treap. Search for price and drop the price onto the color section of the mark card. As always, by default it goes for the sum as the measure. I want you to change it to average, and now we have successfully created a simple polygon map. Let me rechange the name. All right. Now let's move on to the filter section of this video. If you notice on the ZIP code tree map worksheet, you're going to notice that we have two filters that applies to this worksheet. If I want to change the scope of this context level filter to include other sheets, all I have to do is click on the drop-down and hover over apply sheet, and you're going to notice four options. By default, since it is applicable to only work this worksheet only, this worksheet option is automatically selected. Now the first two option apply ize the filter um globally. You can actually customize the behavior by clicking on select worksheet, and since we want this filter to be applicable on the pie chart and listing map, select these two worksheets. Click okay, and now if you noticed, if I go back to the listing map, the map is now automatically focusing on all the D [Music] listings, and same is the case with the pie chart. Notice that on both the pie chart and listing map, I can notice the filter section automatically being populated. So this is all I wanted to show in this video. In the next video, we are going to create a dashboard and bring all of these components um onto the dashboard as a very neat layout. So I'll see you in the next [Music] video.
Hello again. In this video, we are finally going ready to make our dashboard, and the first thing that we have to decide while creating a dashboard is to come up with the right layout. We are going to use horizontal and vertical container to create the right layout. Afterwards, we are going to fit individual worksheets onto that container. I'm also going to show you how to add filter actions onto the Tableau dashboard, and this will allow us to have much more interactivity with the dashboard. Finally, we are going to add navigation object to the dashboard, and this will allow us to switch between the two dashboards that we are going to create. So let's get started. To create a new dashboard, at the bottom where you have an option to add new sheets, you're also going to see an option for new dashboard. Click on it, and the layout of a dashboard is very different than that of a worksheet. On the top, you can actually preview your dashboard on various devices. Uh, underneath it, you can see the option for size. Usually with size, we have three options: fixed, automatic, and range, and then under the size option, you can see individual worksheets that we have created, and finally at the end, these are all the objects that we can drag and drop onto our dashboard. So the first thing that we have to do is come up with the right size. I'm going to keep it simple, select the fix size and go with the generic desktop option. So now we are ready to create the right layout for our dashboard, and and this is the layout that I have in mind. If you notice that we have a horizontal outer container that is hosting individual worksheets, and then on the vertical container we have filter and navigation. If you notice it is called vertical because the individual objects are from top down versus in the horizontal they are side by side. At the bottom, we have a uh a tree map and a polygon map, and then um we we also have pie chart for room distribution. We are not going to create any outer container for the bottom two because there's just only one worksheet, and so in the worksheet itself is going to be in a container, so we actually don't really need to create a outer container to how to house only one worksheet. So let's get started. I am going to first drag and drop and create the horizontal container. Now if you have selected the option tile, by default it's going to try and fit in the entire view. For this one, I'm going to select the option of floating and drag and drop the horizontal container here. With with floating, you can actually decide on the size yourself, and so it gives you much more flexibility. So this is looking good. This is looking good for the outer container. I like to have a thicker background or or a thicker border, so I'm going to select a thicker border in the layout option, and now this container is ready to house individual worksheets. To house individual worksheet, I am not going to go with the option of floating. I'm going to go with the option of tiled and drag and drop the individual worksheets onto that horizontal container. The second one is going to be at the right, and then finally the third one is also going to be at the right. So now as you can see, the outer container is hosting individual worksheets. I like to give uh border which is slightly less thicker than the outer border than the outer container border, so I'm just going to go ahead with this. Click on the outer container, now go to the option and select the option of distribute contents evenly, and so so now you can see each of these individual containers is given um the exact same height and width. So now we are ready to create a vertical container. So I'm going to again select the option of floating and drag and drop the vertical container. Make sure it fits our screen, maybe slightly on the left, okay, and then again I'm going to give a thicker border to this, and now it is ready to house um other objects as well. For now, I'm going to leave it empty and move on to the zip code and the room type pie chart. First, I'm going to drag and drop the room type pie chart, and like I said, we actually don't really need to have any uh outer container because we are hosting only we housing only one container, so there's no point in doing so. Let me again give this a thicker border, and now we are ready to drag and drop other worksheets. Now if you notice we have space for only one more in our layout, and we have two worksheets that are still needs to be housed. So the idea is that using navigation button, I'm actually going to give user the option to select between the two dashboards. So this in this dashboard we are going to drag and drop the zip codes like so, and if you notice that all the filters that we had with the tree map are automatically coming along with the object itself. I am only going to leave this one here. Maybe just let me fix this up real quick. Okay. Now if you notice that we actually want all the filters to be housed here. To do so, I'm going to press on shift key, drag and drop this filter onto that vertical container. This is looking much better. Now if you want, you can actually drag and drop this here as well, but this since this filter is only applicable to the tree map that we have, I'm just going to leave it here. I'm going to select the option of uh fit entire view, and there you go. This is looking much better. I'm going to select a thicker border for this. Let me just drag this on the right just a little bit. Okay, so it's looking good. Now if you notice that if we were to click on individual metro area, it's filtering only this worksheet and this worksheet, and the reason to we have this is because we have only selected two multiple worksheets when this filter is applied. We can actually apply this on the entire dashboard by going to the filter again, and instead of of selecting multiple worksheet using this option, we can actually apply this globally and select the first option which is all using related data sources. So we're going to go onto the drop-down, hover over the apply to worksheet and select all using related data sources. So now if you notice, along with the bottom two worksheets, the top zip codes host and listing worksheets are also getting updated. So this is what we wanted. Okay, so so far so good. Let me rename this dashboard to free map, or rather it should be Texas listing tree map, and now we are going to create another dashboard, and since we don't want to repeat all of the steps, I'm actually just going to right click on the dashboard and click on duplicate. Rename the duplicate as oops, rename the duplicate as Texas listing polygon map, and I'm going to now remove this and drag and drop the listing map instead of the top zip code. Again, fix the format a bit, make sure that everything is housed properly and is legible. Uh, this is looking better. I am going to give this a thicker border. Now we are finally ready to add the navigation button right here. The idea is that you using navigation button, the user can decide on the views; they can either use the tree map or the polygon map. So I am going to drag and drop the navigation object onto the broader metro area. So the quickest way to host any object onto the container is press onto the shift key, and it's automatically going to recognize where you want to drag it, and it's going to fit it right here. So this is how we can house the navigation button. Let me edit the navigation button, so I'm going to click on edit button. The title of this is going to be view tree map. I'm going to click apply, and as you can see, the title is now has now changed, and the first option that you see is the navigation option. So right now it's navigation to nowhere. We are going to select Texas listing um actually we are had the Poly map, so we are going to select Texas listing tree map. Click apply. Let me actually verify. All right, so far so good. The background color is one is black. If you want, you can maybe change it. I don't like black, so I'm just going to maybe give this this shade of green. So okay, this is looking much better, and now if I were to click on it, nothing is going to happen, and that's because um while you are designing, you have to press hold on to the ALT key and then click on it. So now if you notice that we have, as soon as I click on it, we change the view, and now we can see the tree map. So I'm going to add the same navigation option onto that tree map. The the idea is the same. We are going to drag and drop the navigation object onto that vertical container. Hold on to the shift key so that it's automatically um going to fit into that container that we drag on to uh maybe for this one I'm going to select distribute evenly, or maybe not. I'm going to manually decide where to house this. Maybe if I were to, yeah, this is looking much better. I'm going to click on the edit button, um give the title to view polygon map, select the background as maybe green, or for this one maybe you can select a different shade um I think this is looking much better. Click apply and select the polygon map. Click apply, and then if you notice is that if I click here while pressing the ALT key, I can move to the Poly map, and then when when I do the same um on the Poly map, I'm being moved to the tree map. So so far so good. So now we're ready to implement the option of filter action onto our dashboard, and so the idea is if I were to click on this um zip code, I want the entire dashboard to to be updated, or if you want you can actually click onto this pie chart, and the entire dashboard is going to be now filtered on to just show you the listings where with the entire um home and apartment. To do it, all you have to do is click onto the uh sheet that you want to use as a filter and click on this filter key which says use as filter, and notice if I were to click onto the private room, everything is being filtered. Same goes for the entire home apartment um and now if you want you can do the same thing for zip code. Click onto the use as filter icon, and now if I click here, notice in this we have a total of 240 listings, and majority of them are still private home, by the significant portion is actually um private room as well. Now this so this is how easy it is to add interactivity onto our dashboard. We can do the same thing for this dashboard. Click onto the use as filter on the Poly map, and same thing for pie chart. All right, let me actually select Dallas, and inside Dallas we can see that there are um let me actually all right. So now let's see if I were to click on this ZIP code in Dallas, notice that there's only one listing here um for this one we have five listings by five host, and what about for this one? Okay, so 38 listings hosted by 29 individuals, and then majority of them are entire apartment. So there you go. This is how easy it is to add filter actions onto our dashboard. In the next video, we are finally ready to host our dashboard onto the Tableau public website, so I'm going to show you how to do that. I'll see you in the next [Music] video.
Hello everyone. In this video, we are going to go over what are ignore filter actions. Afterwards, we are going to hide all the unused attributes, and this is part of the performance checklist before you publish your dashboard onto the public server. It's important for you to make sure that to improve the performance you have done the right steps, and so hiding all the unused attributes is part of that step. Finally, once we have done once we have hidden all of the unused attributes, we are ready to publish our dashboard onto the server. So let's get started. First, let me show you how to ignore filter action. Notice if I were to click on the Block on our treap, the entire dashboard is getting refreshed, pie chart and the total listing, total host, and total zip worksheets. But what if we actually want to ignore the to the what if you actually want to ignore the action and not change the total listing, total host, and total zip code? To do that, all you have to do is click on the worksheet, go to the option, and select ignore actions. Do the same thing for the other two, and finally now notice that if I were to click on the Block, the top worksheets are not getting refreshed; only the pie chart is getting refreshed. However, if I were to click on the metro area, notice that all the entire worksheet is again is getting refreshed because this is a global filter that we have applied. Let me do the same thing for the other dashboard. I'm going to use more option and ignore action. There you go. Now let's move on towards hiding all the unused attributes. Notice we have so many attributes, but we have only used few of them. In fact, in in production, it's always a good idea to only uh only get the attributes um or only query the attributes that you are planning on using in your dashboard, but since this is more of an exploratory exercise, it's okay even if you have a lot of attributes um and so one of the most important consideration for you to go over is hiding all these unused attributes before you publish, and doing so is going to improve the filter performance of the dashboard. To hide all the unused attributes, all you have to do is click on the d drop down, and and notice you're going to see the option of hide all unused Fields. If I were to click on it, and notice that only the attributes that we have used now are visible, and the rest have been hidden. So we have successfully hidden all the unused attributes, and now we are ready to publish our dashboard. Before I publish the dashboard, I'm going to save this dashboard onto our local computer, so I'm going to click on save as. I'm just going to use uh save this as Texas listing, Texas Airbnb listings March 2024, since because I have data up until March 2024. I'm going to save it, and now I I'm ready to publish this dashboard onto the server. So go to the dashboard that you want to publish, and all you have to do now is click on this save.
To Tableau Public button, and as soon as you do that, it's going to prompt you to sign in onto the Tableau server. It's getting ready to publish, and there you go. We have successfully published our dashboard.
If you hover over to your website, over to your profile, click on "My Profile," you're going to notice all the visualizations that you have published so far. So this is the one that we just published. If I were to click on this one, um, at the bottom, you are going to notice, uh, all the other related, um, dashboards. But there's another thing that I want to show you. Click on the "More Actions," and you can now actually click on the "Feature Vis Profile." And so this, um, option is going to feature this visualization onto your profile. I'm going to select this, and now, as you can see, this is now featured.
You can actually search for your dashboard as well. So let me just do "Texas listings." Actually, let me figure out what name was again. "Texas ABNB listing." Okay, there you go. It is now searchable, and, um, people can actually, other data analysts can actually search for it, and they can, um, see it. So there you go. We have successfully published our dashboard onto the server.