Painting | Introduction to Tableau

Contents

Can you tell a story using data?

Let's take a look at one of the most popular data visualization tools currently on the market; and if, is none other than- Picture

Siga leyendo para crear su primer panel con Tableau y también para aprender cómo hice mi primer proyecto final en Tableau.

What is Tableau?

Tableau is a very powerful data analysis and visualization tool in which you can create standard dashboards for the company not only to visualize the data, but also to extract information from them.

Why Tableau?

  • Tableau is a very convenient tool to quickly visualize your ideas. Just drag and drop and go, you have a graph in front of you.
  • It has an amazing interface that is very intuitive and easy to understand.
  • Can connect to multiple data sources; more of 75 to be precise.
  • It has built-in analytical tools and, Thus, no need to waste time on calculations.
  • Dashboards and stories created with Tableau are interactive.

All of these reasons for using Tableau will make a lot more sense when we learn it hands-on.. So let's dive into it.

Downloading Tableau

Tableau is a paid software, but offers a free trial of 14 days from which you can start here.

Another option is to use Public table (what i use, currently being a student). La limitación de usar Public Table es que no puede descargar localmente los paneles y se publican en línea. But it is a good option when you are starting.

Interfaz from Tableau

Let's dive right into Tableau! This is what the Tableau landing window looks like.

1i2g7zeukkvdyflrainebog-4882636

On the left, tenemos la opción de conexión a través de la cual podemos conectarnos a nuestra Data Source.

1inb0sbjwcywlq6u93zkrvg-6648359

Then, we have the option to open, if you want to open a project you have worked on.

1tuomb9oamwpp1zgoktt7ka-9451883

Finally, we have some resources that can help you learn more about Tableau.

1-51ozk2wayc8t5mp7ojdg-3579460

Problem Statement

Your client is a multi-city food delivery company. They have several logistics centers in these cities to send food orders to their customers. The client wants to help these centers with the forecast of demand for the coming weeks so that these centers plan the stock of raw materials accordingly..

The replenishment of most raw materials is done weekly and, since the raw material is perishable, procurement planning is of utmost importance. Secondly, Center staffing is also an area where accurate demand forecasts are really helpful. We have the following information with us in the form of 3 different data sets:

  • Historical demand data for a product center mix
  • Product characteristics (meal) as a category, subcategory, current price and discount
  • Information for logistics centers as a central area, city ​​information, etc.

You can download the required data from here.

We need to create a story in Tableau that talks about the level of demand in each center. This analysis should be detailed enough to also include product information.. Customer wants an end-to-end report to understand which compliance areas are working well and which are not. You can also talk about meal combinations from the center to add nuance to your final presentation..

Don't be put off by this problem, as it may seem complicated at first. Let's take small steps and learn how to create this story in Tableau.

Hypothesis generation

Even before loading your dataset, it is good practice to propose a set of hypotheses. It doesn't have to be alright, but the important thing at this point is to make an exhaustive list without looking at the data. This will help you better respond to what you are looking for.

Some of the hypotheses I can think of are:

  • The number of orders will be higher in metropolitan cities compared to small cities.
  • Indian food contributes to the majority of sales.
  • Orders will be more on weekends.

Reiterating, these assumptions do not have to be absolutely correct and you will know this when you actually visualize the data.

Loading data

Uploading or connecting to a data source is a breeze in Tableau. Just click on the format of the data source you want to connect to and a dialog box will appear where you can select the file and here, Ready!

Then, how could you have read before, the project we are going to work on is a Food Forecast Analysis. Then, to start, open the excel sheet Weekly_Demand_Data.

1lp5a5ch7j2q2jbuenlfd2a-2010773

Create your first visualization!

A measure que abra la hoja de Excel, you will be directed to the data source tab which looks like this.

1kn1k_ns0cwp8gjyubzvykq-3211818

See how all the data has been entered in a table. You can see here what kind of data is available on your sheet.

Now, let's create our first visualization.
Click on the Sheet 1, found next to the data source tab.

1jztgdaaegkzx-ln4kq1era-8363124

This is what a blank sheet looks like.

1qgx5ivpbzhvfo3i190fh5a-4468950

See how Tableau has categorized columns and variables as' dimensions’ (central identification, ID, food identification, etc.) and ‘measures’ (base price, starting price, etc.).

How we need to create a story that talks about the weekly demand level, Let's start by looking at the number of orders over weeks.

A select week Y number of orders and you may be able to see the 'Show me’ and a chart type is highlighted.
The 'Show me tab’ Tableau suggests the type of chart that will be appropriate for displaying the dimensions and measures you have selected. But it should not be blindly trusted. You must apply logic and your intuition to see if the graph suggested by the Show Me tab will fulfill your visualization purpose..

1lvdgbvdufqgja90usfxsdg-8351516

Look, here the suggestion is a Gantt chart, but my intuition says that a line diagram would be better to visualize this.

1bkazeom7oxsbl9xws1drdg-3286370

And see how we created our first visualization. Cuando pasa el mouse sobre el line graph, has a tooltip showing the week number and the number of orders for that week.

Combine data

Now, let's also create visualizations of the other sheets. For it, we will need “match” the other two sheets with the data from this data source.

Go to the new data source as shown below and in the same way as before load the other two sheets as well.

15zbnyt_0kkwg2tm0hurrua-6400961

And now you will have three data sources.

1x1-ixa8mdeim5luhjxkldg-4203537

Now, Let's see how useful the data combination is. Select 'type of center’ from the data sheet fulfilment_centre_info and ‘num orders’ de Weekly_demand_data y aquí puede ver un bar graphic con filas y columnas de diferentes fuentes de datos y así es exactamente como funciona la combinación de datos.
(Asegúrese de hacer clic en el botón de vínculo junto a la variable común para vincular dos fuentes de datos. You can think of this as something similar to primary and foreign keys in DBMS).

1lonydzt9wsj3cozadxdkxw-8393060

Pivot structure in Tableau

If you are familiar with Excel, you must know Excel pivot tables. You can also create the same in Tableau.

Let's see the number of orders per category and kitchen in a pivot structure. For it, bring category and cuisine to the ranks similarly, but to turn it into a pivot structure, drag the number of orders into the table-like structure that has been formed instead of taking it to the columns.

1paiwuhveeckvxs0dwhemmq-2644266

A better form of presentation would be to present the number of orders in descending or ascending order, what can be done by clicking this button as follows.

1q8aayeaw9a11mpcpntgs9q-5317444

Another way you can present is by taking the average number of orders, instead of the total number of orders, as follows.

1ghyjbzhesneyg-dlwwbrqa-2887813

Filtration

You can even apply filters to your visualizations in Tableau.

Continuing with the same pivot structure, let's remove the kitchen from the rows and try to apply a filter on the categories and that filter will be the gastronomic kitchen.

Drag the kitchen to the filters. A dialog box will open. Select all and click “To accept”.

1h2xzfn710npq0yripperua-1976900
1swh1-g79uru-1zawnkwx_g-8030884

Then, click on the kitchen filter and select 'show filter'.

19yhofb6cfk5pvef6hlj-8q-2537251

It will appear like this on the right and now, whatever cuisine you select here, your data will appear in the dynamic structure.

1ax7yadblmthhgd2y_k8r0q-9697337

You can even turn this filter into a drop down list as shown below.

17knokzqveyvsapjof6cgga-1853176

Parameters

The parameters pueden entenderse como controles que pueden ayudarlo a decidir qué desea ver en la visualización.
May sound crazy; look at this visualization, for instance.

1tupaf31f7ecw4svckote3g-8349655

You will see that drop-down menu on the right where you can choose if you want to see the number of orders by categories or by kitchens. This is a parameter, a control.

Now let's see how we can create such a parameter.

In the sidebar, click on that little triangle and you can see 'create parameter’

1aif_utifejiczarghkcc5a-2367901

Name your parameter, select data type as' string’ and fill in the allowed values ​​as a list, which in our case are two values, Kitchen and Category, and ready, You have created a parameter!

1ciygm-8y8mp0tivwaaotvg-5842720

Finally, you must select 'Show parameter’ and then you can use that parameter in your visualization.

1x5xamwugbwm5ffinj4ozlg-9635253

Sample views

Now, I encourage you to explore the dataset and try to make more visualizations. This will help you understand Tableau better and also help you better understand the data to solve the problem statement we mentioned earlier..

Some of the visualizations I created are shared below.

1qpu9ztjnhery-m15skpilw-3091226
1dqqsamdsbjbpujxg2o0org-4349712
16o9-wvdvrw9gfr45y-wu-w-7287940
1ataozmeckhgqqjkftchwua-2229954

Subscribe to our Newsletter

We will not send you SPAM mail. We hate it as much as you.