The idea is to go from numbers to information to understanding – Hans Rosling
Have a look at the visualization below, which was created by a famous Swedish statistician, Hans Rosling. He compiled roughly 200 years of World Development Data and presented it in a very simple manner:
This above is an excellent example of Data Visualisation, which rather than focusing on what the numbers are, focuses on telling their story. You can find the interactive version of this visual here.
There are multiple Softwares that are available now at instant access which assists in such easy visualizations and one tool that we are going to cover in this article is Tableau.
Note- If you want to learn beginner-level Tableau in a course format, have a look at our free course- Tableau for Beginners.
What can you make out from the picture below?
This Dashboard, made on Tableau, visualizes a Supermarket’s Sales and Profit Analysis.
At a glance, you can see:
So, in this article, we will learn how to make such simple visualizations in Tableau to understand our data well.
Tableau is a Data visualization tool widely used for Business Intelligence but not limited to it. It helps create interactive graphs and charts in dashboards and worksheets to gain business insights. And all of this is made possible with gestures as simple as drag and drop!
What Products does Tableau offer?
You don’t need to know much to use Tableau, but a basic awareness of all the types of graphs, such as bar graphs, line charts, histograms, etc., is still preferred.
It will also be beneficial if you possess some basic understanding of database management ( datatypes, joins, drill down, drill up, etc ). Even if you don’t, it is not a reason to worry since I will be covering all such concepts in this and forthcoming articles.
To work on Tableau, you need Tableau, right?
Tableau Desktop, Public, and Online offer Data Visual Creation from the five above-mentioned products.
It is available in the following three formats :
Tableau Public is purely free of all costs and does not require any license. However it comes with a limitation: All of your data and workbooks are made public to all Tableau users.
Tableau Online
Tableau Online is the best option for you if you wish to make your Workbooks on the Cloud and be able to access them from anywhere.
Now that you have the suitable product installed and set up, I am pretty sure your hands must be tingling with anticipation to begin visualizing using Tableau finally! Well, let’s not keep you waiting. Go ahead and launch the tool.
You should see a screen similar to the one above. This is where you import your data. As is visible, there are multiple formats that your data can be in. It can be in a flat file such as Excel or CSV, or you can directly load it from data servers, too.
You can see that Tableau itself offers some Sample Workbooks with pre-drawn charts, graphs, and other visuals. I would suggest going through these later for further exploration.
The best way to learn is to get your hands dirty. Let us start with our Data, which can be found here. The data is that of a United States’ Superstore deliberating over its expansion. It wishes to know the prospective regions of the country where it could and hence requires your help.
The first thing that you will need to do is import the data onto Tableau. So quickly follow the below steps:
Uh oh, the imported data looks a bit different for the first few rows. Don’t worry; the solution lies right ahead.
3. Do you see the option to use Data Interpreter? Click on it to get the following clean view:
All that messy data magically disappeared!
If you open the Excel data file, you will see some metadata in it, i.e., information about data :
Tableau imports the entire data file as is, but, anticipating such discrepancies explicitly provides a solution as a Data Interpreter. If you wish to view the exact changes that it made, click on Review the results and choose the Orders tab in the opened Excel sheet.
As it will show, it simply removed the erroneous data.
As soon as you have imported your dataset, next to the Data Source tab near the bottom of the screen, you immediately must see Go to Worksheet. A Worksheet is where you make all of your graphs, so click on that tab to reach the following screen:
Don’t get overwhelmed by the various elements that you see here, we will cover them all one by one.
Let’s start with Dimensions and Measures:
Moving onto Shelves :
Visualization in Tableau is possible through dragging and dropping Measures and Dimensions onto these different Shelves.
Rows and Columns : Represent the x and y-axis of your graphs/charts.
Filter: Filters help you view a strained version of your data. For example, instead of seeing the combined Sales of all the Categories, you can look at a specific one, such as just Furniture.
Pages: Pages work on the same principle as Filters, with the difference that you can actually see the changes as you shift between the Paged values. Remember that Rosling chart? You can easily make one of your own using Pages.
Marks: The Marks property is used to control the mark types of your data. You may choose to represent your data using different shapes, sizes or text.
And finally, there is Show Me, the brain of Tableau!
When you drag and drop fields onto the visualization area, Tableau makes default graphs for you, as we shall see soon, but you can change these by referring to the Show Me option.
Note: Not every graph can be made with any combination of Dimensions or Measures. Each graph has its own conditions for the number and types of fields that can be used, which we shall discuss next.
So far, we have pretty much covered the requisite theoretical knowledge. Lets finally begin with some visualizations now.
I personally prefer to start from the shallow side of the pool, slowly swimming towards the deeper end. So I would suggest beginning by getting an overview of the Superstore Sales and Profit Statistics. That would include the Net Sales, the Net Profit, and the growth of the two measures, to name a few. Here is a gist of what we will be making :
From what can be observed, the net sales are on the rise, but the Profit is creeping up slowly. We can also quite clearly see the peak Sales Months, which could be attributed to various reasons. We can only know more as we explore more.
Before we start, there is one thing that I would like to recommend and that is you name your Worksheets as being done here. Since I will be referencing them back and forth throughout the article, it will be easier for you to follow.
Let’s begin with the simplest visualization, which is displaying the Net Statistics numbers. Tableau, being as smart as it is, automatically computes such values under Measure Names and Measure Values. Follow these steps to make what is called a Text Table :
Note: Don’t get confused by the different colors of the fields that you see. Just remember one small trick: Blue means Discrete and Green means continuous.
So we have the net Sales and Profit values, let’s delve a little deeper by getting the Sales and Profit Values over the years. Let’s make another, but a more detailed, Text Table :
We have just covered the numeric part of the Dashboard, but that is not its selling point. It’s the Line Charts. Let’s quickly learn how to make one :
If you were to click on Show Me, you will see the different types of Line Charts that you can make, and if you were to hover over each of them, you will get to see their Dimension and Measure requirements too. In case you ever feel lost, I recommend referring to Show Me.
With the previous visualizations, we had gotten a brief overview of the Superstore. Let’s dig a little deeper now. The next thing that I can think of exploring is the demographic of the Sales and Profit. What are the States that have the highest Sales Revenue, which ones are generating the maximum Profits:
Before discussing the inferences, let’s first create the Pie Chart of Region Sales :
From the visual, it’s pretty evident that the two opposite ends, East and West are leading in the Sales game. Let’s dissect this a bit more.
Note : Whenever you have some geographical data, it is always advisable to plot and see it on a Map to gain better insights.
So, we are now going to make the Map Chart of State Sales Distribution :
California and New York are the top most sellers from the West and East region, but unfortunately, there are other states such as Texas, Colorado which even after having good Sales, have negative Profits! This is certainly not good news for the Superstore. You can perceive a good analysis for the other States as well.
And lastly, here are the steps for making the Scatter Plot of Sales and Profit Analysis :
The findings from the Map chart become more prominent with the following Scatter plot inferences :
One of the great things about Tableau is that it lets you interact with the visuals. Have a look at an example :
When we clicked on the Central Region, it highlighted and showed the Central States of the US, along with their respective Sales and Profit scatter. Here we used the chart as a Filter itself which is a feature of a Dashboard. We shall learn how to make one at a later stage.
There is one pretty important analysis that we have yet to touch, and that is Product Statistics. High Sales could be easily attributed to the high cost of the products being sold. Also, when you are considering expansion, you will want to know the Sales distribution of the Products too:
Here we have visualized not just the Sales but also the Profits.
It’s quite surprising to see Categories that have high Sales, generating negative profits, like Technology in November 2015, or Furniture in October 2016 and this is inferred from the first chart, which is also called a Highlight Table. As the name suggests, it highlights the relative proportion of the Measure Values of our data. So let’s learn how to make one :
The Product Sub Category Sales is a Bar Chart, which is also quite easy to make :
From the above graph, we get a good idea of the Net Sales and Profit margins of the various products. Notice that even though Tables’ Sales are quite high on the scale, it’s the only product with the least profit.
Now, just like before, consider interaction with the visualization:
We can now view each Category’s Products’ Sales and Profits at a low-level granularity of Year and Month!
Congratulations! You have now covered one of the important aspects of Tableau! But it’s not the end of your learning just yet. Tableau offers some advanced functionalities, too, some of which we will cover next :
Until now, we have only made simple charts that provide cumulative data, combined data over the lifetime of the Superstore. To look at sales of a particular year or month for a certain product or to view the distinct aspects of the data, filters are the way to go.
Let’s head back to the first-ever Chart that we made of Peak Sales and Profit Months :
The visual here is an accumulation of all 4 years of data, for all Regions, States, Categories and Sub Categories.
The steps of turning any Dimension into a Filter are the same. Let’s first experiment with the Order Date ( formatted to Year ):
By now, you must have gotten some picture of how our Data is built. We have Category as the main Field, divided into Sub–Category, further distinguished into the various Product IDs and their corresponding Product Names.
This concept of breaking down our data to reach the absolute depth is called Drilling Down:
Similarly, you can drill down from Order Date to Order ID to Ship Date to Ship Mode. This is also referred to as making a Hierarchy of data.
Let’s consider the ProductDrillDown first, which is a Bar Graph :
4. To finally plot your data, drag the Product Hierarchy onto Rows and Sales onto Columns, and get:
This was just a simple Bar Graph, but you will see a small plus sign if you hover over the Category axis. Click on it to get a granulated version of your data. Do the same for the other generated axis as well to get to the absolute depth.
The Tree Analysis of Product Sales is a TreeMap, which is a great way of representing Drilled Down data and is quite easy to make :
5. Following the drill down from Step 4, simply go to Show Me and select the TreeMap chart, to get the following :
So far you have analyzed the present scenario, but for expansion consideration, let’s try and analyze the future too.
With the following Dashboard, you can see not only the Trends over the Sales Months but also a Forecast over the Years. And both of them tell a different story altogether :
Although the Sales of the Superstore are increasing over the months of the year, the future, in general, looks a bit bleak. The sales seem to be constant for the next 3 years, but fortunately for the Superstore, the Profit is increasing steadily. Let’s get to making the above now.
Traverse back to the Peak Sales and Profit Month Chart and follow these steps to make a Trend Line of your own :
2. To get the Trend Line, go to Analytics, and simply drag Trend Line over the chart, to get :
For forecasting, we are going to deal with the Sales and Profit Growth chart. The construction is similar to that of Trend Lines, but with a small change. The steps are :
Let’s head back to the Sales and Profit Analysis chart we made. Remember the detailed inference that we had generated from it? We will make that a bit more prominent now, using Clusters. To make them:
I am sure by now you must have gotten a pretty good idea of what a Dashboard is, having seen it plenty of times all throughout this article.
If not, well then a Dashboard is simply a means of combining Worksheets together so that they convey some message. Without much further ado, let’s get right to it!
Consider the State Sales Distribution Map chart and Product Sub Categories.
What if you wanted to know the various Sales margins of each Product within separate States? We had observed that Texas was one of the States with the lowest Profits. By looking at the following Dashboard, you will see that the reason is it’s not managing to generate Profits in the majority of the Products:
Now consider the state-wise Sales distribution of a Sub – Category:
The above beautifully shows the distribution of Appliances nationwide, where California seems to be the major Profit contributor.
Making such a Dashboard is quite easy. Let’s see how :
Note: Even after creating the Dashboards, you can still edit your Worksheets; the same changes shall be reflected here.
If you were to click on the States or the Products after creating your first ever Dashboard, you wouldn’t observe any change. For such visuals, we first have to convert the Charts themselves into filters.
4. click on the small Down Arrow on each chart you wish to turn into a Filter, and select Use as Filter:
Note: While making Dashboards, it is preferred to use your charts as Filters, rather than cluttering up the view with custom ones.
Just like Dashboards were a way to combine the Worksheets, a Story is where you combine all the dashboards and, if need be, individual Sheets as well to convey, as the name suggests – a Story.
So, let’s combine all the Dashboards we had made into what could perhaps make a decent presentation for a beginner. Do sure to Add a Caption to all of your Dashboards to convey your message clearly :
If you have ever come across Tableau Stories online, the ones which you could actually interact with, instead of just viewing, that is made possible by publishing your Workbooks onto the Tableau Server.
If you have one set up, then all you need to do, after creating your Stories, is go to Server -> Publish Workbook and enter the Server Name :
What we have covered so far is pretty much the basics of Tableau. It has various other features, which I will cover in my forthcoming articles.
As it is said ‘With practice, comes perfection’, it is suggested that you experiment as much as you can with Tableau.
Below is a sample Dashboard that I would encourage you to try and make. You will get to test the skills you have learned so far and hopefully acquire more. The dataset used is the same as the one we have been working with so far :
This article explores key data science and analytics aspects, focusing on practical tutorials for effective data visualization. The author highlights the significance of clear visualization techniques using tools like Tableau, emphasizing calculated fields and creating impactful dashboards. With a blend of Microsoft Power BI and Python, the tutorial covers visual analytics, catering to data scientists and analysts. The narrative delves into machine learning concepts, considering real-time data points and efficient data storytelling. The article hints at future explorations of advanced features while offering insights into Salesforce integration and SQL proficiency for comprehensive data analysis.
You can also check these articles – Guide to Learn Advanced Tableau
Also read: Intermediate Tableau guide for data science and business intelligence professionals
We have also created a free course for you to understand the topic in a structured manner- Tableau for Beginners
Ans. Tableau is a leading data visualization tool that translates raw data into interactive and understandable visualizations, such as charts and graphs, aiding in data analysis and interpretation.
Ans. Yes, Tableau offers a free version known as Tableau Public. However, more advanced features in Tableau Desktop and Tableau Server require a paid license and you can check pricing on tableau website.
Ans. Tableau is considered the best visualization tool due to its user-friendly interface, extensive visualization options, real-time data connectivity, and seamless integration with diverse data sources.
Ans. Tableau is used in data analysis to visualize complex datasets, facilitating tasks like business intelligence, performance analysis, market research, and informed decision-making.
Ans. Data Visualization with Tableau involves leveraging the software to transform data into meaningful visual representations, including dashboards, charts, and graphs, enabling effective communication and interpretation of insights.
A very informative article
Thank You Gopika!
Awesome article! Very interestingly and informatively presented. Thank you.
Thank You Deep. Glad you liked it :)
So comprehensive! Thanks! I have a question, do let me know if you have any insights on this. Is tableau planning to have a software package for Linux? I can see that it supports only windows and Mac!
Hey Vikram, Although Tableau Server for Linux is in its beta stage, unfortunately the other softwares are not available for usage in Linux. As far as I know there has been no news regarding the same either. But there are alternatives. You can always use Tableau Online or set up a Virtual Environment and run Tableau on the Guest Windows / OS X. Hope this helped!
A very useful article.. It will surely help us..
Hi Pavleen, The very first step isn't working for me :( , once I dragged I dint get any Text Table 1. Simply drag Measure Names from Dimensions onto Columns. Please help
Hmm, well try doing the following : 1. Drag Measure Names from Dimensions onto the central empty area, so that you see the Text Table. 2. Measure Names will be displayed automatically onto Rows, so drag it from Rows to Columns. Hope this works!
Very Nice explanation Pavleen
The screen shots and the steps illustrated do not match at few places and is bit confusing, could you please take care of them to avoid confusion.
Hey Rams, Thanks for the feedback but sorry for the inconvenience. Adding images for each step would have cluttered up the article, but I will surely see what I can do to make it more comprehensible.
Thank you for sharing this knowledge very helpful....
Hi Pavleen, Very nice and informative article. I am facing problem when trying Map Chart of State Sales Distribution: When i dragged the STATES onto the blank area, i got a map, but on subsequent steps where i should be getting Symbols according to Profit values, i am not seeing any circles; also when i convert it into filled map chart, respective states are not getting coloured as desired.
Hey Asutosh, Thanks for the feedback. As for the issue, that could be because Tableau could not identify the locations. You must be getting some text on the screen like 'x Unknown locations', after dragging the States in. Click on that, choose 'Edit locations' and change the country to United States, if not by-default. You may refer to this as well: Map Edit Location
Nice and informative article..... Can you suggest some good blogs specifically on Data Cleaning and pre-processing with Tableau.
Hey Jinson, Unfortunately Tableau does not provide with much of the above two functionalities, but I would recommend using Trifacta for the same. Tableau and Trifacta are infact strategic partners as well.
Thank you so much for sharing this helpful knowledge. I have learned a lot.
I am glad you liked it TecCrowd!
Superb and Awesome Article for the ones who really want to dive deep!
Thank You Shashank. Happy Learning!
Very detailed article Pavleen, this will surely help all the tableau beginners learn data visualization. Hope to get some more articles on Tableau in the future.
Thanks Hunaidkhan, Keep checking the website regularly for the forthcoming articles :)
Great Article. Would you be able to republish on https://imadata.ninja/blog/
Superb article. Explained each step very well and easy to follow. Looking forward to seeing more on advance functionalities of Tableau.
Thank You Abhinav. Truly appreciated :)
Thank you Pavleen. In this side of hearth i´m using Lumira, you have any ideas for this platform?
Good work putting all core purpose of Tableau on one page.. Way to go!
Extremely helpful for a starter..a very enjoyable learning. Thanks Pavleen for your hardwork to share this with us. Eagerly waiting for your next one.
Excellent article Pavleen, nice description of different features available within tableau...A very good base to get started in tableau.
Thanks for the information. The information you provided is very helpful for tableau Learners .
Very well explained and easy to follow article. Thanks for the efforts. Keep up the good work of sharing these wonderful articles.
Very clear and helpful.
this website is awesome, Thanks a lot for making data science so easy. Great work! Keep it up !!
Hi Pavleen Awesome article.When are you planning to post the advance one. Waiting Eagerly.
Thanks Niks! You won't have to wait much longer for the next article. It will be published soon :)
Thanks so much for writing this article. This is probably the best one by far. Easy to understand and educate myself on scala and how the best way to go about it. Thanks a lot really appreciate you sharing with us. The information you provided is very helpful for Tableau learners Learn aboutTableau Server.
Thanks so much for writing this article. This is probably the best one by far. Easy to understand and educate myself on Tableau and how the best way to go about it. Thanks a lot really appreciate you sharing with us. The information you provided is very helpful for Tableau learners Learn aboutTableau Server.
Hi pavleen can We expect your next advance article on tableau this month? i have to prepare for the interview.
Hey Nikhil! You can find the same here.
Awesome article!!!
hey! the dataset doesn't exist in Github repository. Please look into the matter.
Hey Arka, You need to view the raw file since it's an excel sheet.
Good and Knowledgable article hats to you
Hey, nicely explained! I have a quick question on parameters: How are they different from filters?
Hey Saral, Thanks for the comment, glad you liked it. Coming to your question, a filter is applied to increase or decrease the data points that you want to see in your plot. For example if you are viewing the population growth of countries all over the world from 1990 - 2018, you could restrict the countries plotted on the graph, by selecting a small number of them. So basically you would be filtering the countries. Whereas variables, as the name suggests, can change their values in the sense that they act as input to your plot. Say you wanted to view the Top n countries with the highest population, you would use a parameter in place of a filter. Or if you wanted to view the economic growth over the years instead of the population, you would use a parameter again. Hope that made it clear. Thanks
Great work. Thanks!
Using this Tableau tool data analysis and data visualization is very easy and accurate. Nice information on this tool. Thank you
Awesome, I have learnt many things about tableau. Thank you so much for this informative notes. This is really helpful for beginners.
Informative blog, thanks for sharing.
Excellent and informative post. Continue to post.
Excellent and informative post.Tank you .
Great work!!!
Hi, You explained everything very nicely. Thanks for all the information.
Absolute Legend ! I have an interview tomorrow for a data visualisation developer and we got a task to visualise data. And this is Golden ! Thank you so much