class: center, middle, inverse, title-slide .title[ # BAA1030 - Data Analytics and Story Telling ] .subtitle[ ## Lecture 5: Introduction to Tableau ] .author[ ### Damien Dupré - Dublin City University ] --- # Previoulsy ... We have seen how to use Power BI for basic Reports and Dashboards Now is the time to learn a much **more powerful** and much **more complicated** tool... <img src="https://i.pinimg.com/originals/6d/a9/d3/6da9d3785e45e3dc5a0e0ea6a731a603.png" width="30%" style="display: block; margin: auto;" /> ...Welcome to **Tableau**! --- # Tableau Objective ### To obtain the highest mark to the first Assignment How to do it? - Use Tableau Public and NOT TABLEAU DESKTOP - Submit a Tableau Dashboard and NOT TABLEAU STORY - Work on each of the 4 assessment criteria - **Creativity** (25%): Menus and user interactions - **Analytical Depth** (25%): Meaningful figures - **Beauty/Design** (25%): Beautiful dashboard and visualisations - **Overall Story** (25%): Complete and insightful storytelling - Get inspired by existing dashboards on [Tableau Public](https://public.tableau.com/app/search/vizzes/UNICEF) --- # Tableau Dashboard Showcase Introducing Federica Pinza's Visualisation, DCU winner of the 2024 European Data Visualisation Challenge organised by EDHEC. <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_frederica.png" width="80%" style="display: block; margin: auto;" /> --- # Tableau Dashboard Showcase [
Link to the dashboard](https://public.tableau.com/app/profile/federica.pinza/viz/Aglobalfightforgenderequalityineducation/Dashboard1) <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_good.png" style="display: block; margin: auto;" /> --- # Tableau Dashboard Showcase ### Nice interactions and design <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_good_1.png" width="100%" style="display: block; margin: auto;" /> <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_good_3.png" width="30%" style="display: block; margin: auto;" /> --- # Tableau Dashboard Showcase ### Meaningful visualisations <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_good_2.png" width="60%" style="display: block; margin: auto;" /> <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_good_6.png" style="display: block; margin: auto;" /> --- # Tableau Dashboard Showcase ### Insightful storytelling <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_good_5.png" style="display: block; margin: auto;" /> <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_good_4.png" width="40%" style="display: block; margin: auto;" /> --- # Example not to follow! <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_bad.png" style="display: block; margin: auto;" /> --- class: inverse, mline, center, middle # 1. Around Tableau --- # What is Tableau? Tableau Software is an interactive data visualization software company focused on business intelligence: - Created in 2003 - Acquired by Salesforce 2019 Tableau is a set of different product which aims to create interactive data visualisation dashboard. Among these product, you will find: - **Tableau Prep** (dedicated to cleaning data - no use here) - **Tableau Desktop** (the main software - not free but can be access with a student license) - **Tableau Public** (exact same a Tableau Desktop but free and the only way to save your work is by publishing dashboard online) - **Tableau Server & Tableau Online** (alternative to Tableau Desktop without local installation) --- # How to Use Tableau Public 1. Go to https://public.tableau.com 2. Sign in 3. Enjoy full features of Tableau Desktop (except saving file, only public publication online) <img src="https://images.squarespace-cdn.com/content/v1/56fd706140261df95349d4bd/1491286584380-1EJ0MIIAE8Q2OO2UK04M/image-asset.jpeg?format=1500w" width="50%" style="display: block; margin: auto;" /> .center.tiny[Source: How I Came to Choose One out of Sixty Two Data Visualizations [🔗](https://www.doingdata.org/)] --- # How to Use Tableau Public <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_public_home.png" width="100%" style="display: block; margin: auto;" /> --- # How to Use Tableau Public <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_public_login.png" width="80%" style="display: block; margin: auto;" /> --- # How to Use Tableau Public <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_public_verify.png" width="50%" style="display: block; margin: auto;" /> --- # How to Use Tableau Public <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_public_account.png" width="100%" style="display: block; margin: auto;" /> --- # How to Use Tableau Public <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_public_createaviz.png" width="100%" style="display: block; margin: auto;" /> --- class: inverse, mline, center, middle # 2. Tableau Overview --- # Tableau in a Nutshell Tableau is very similar to Power BI but it actually simpler in its structure (but the visualisation capabilities are more complex): There are 4 types of areas: - **Data Source** is where you check the type of variables and where you can do basic transformations - **Worksheet** is where you build each individual visualisation (1 worksheet per visualisation) - **Dashboard** is where you combine all the visualisations in 1 interactive page - **Story** is where you create interactive presentation with multiple slides (no use here) --- # Tableau Data Source <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_data_1.png" width="100%" style="display: block; margin: auto;" /> --- # Tableau Data Source <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_data_2.png" width="100%" style="display: block; margin: auto;" /> --- # Tableau Worksheet <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_worksheet.png" width="100%" style="display: block; margin: auto;" /> --- # Tableau Dashboard <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_dashboard.png" width="100%" style="display: block; margin: auto;" /> --- # Tableau Story <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_story.png" width="100%" style="display: block; margin: auto;" /> --- # Principles Tableau is only about: - Dragging & dropping from variable list to plot (no-code software) - Selecting the right data summary - Creating independent figures and organising them on a page <img src="https://i.redd.it/31zkb6zzn8f21.jpg" width="40%" style="display: block; margin: auto;" /> --- class: inverse, mline, center, middle # 3. Connect Data in Tableau --- # Files or Connectors? Without being too complicated, there is two major ways to connect data in Tableau: - From a File which won't be modified - From a database through a connector (i.e., interface) to obtained data stored on a remote server (e.g., [Covid Dashboards](https://public.tableau.com/en-us/s/covid-19-viz-gallery)) **Files** can be of format .csv, .xls, .xlsx, .json, ... **Databases** cloud hosted on google drive or with OData protocol (url access to the data) -- .pull-left[
<i class="fas fa-arrow-circle-right faa-horizontal animated faa-slow " style=" color:blue;"></i>
More details about Tableau data connection possibilities with the following contents among others found online: - [Connecting to Data Sources by Tableau](https://help.tableau.com/current/pro/desktop/en-us/data.htm) - [Tableau Data Connections to Databases and Multiple Sources9](https://www.guru99.com/tableau-data-connections.html) - [Types of Tableau Data Sources with Connection Establishment Process](https://data-flair.training/blogs/tableau-data-sources/) ] .pull-right[ <img src="https://raw.githubusercontent.com/damien-dupre/img/main/bobross_connection.jpg" width="100%" style="display: block; margin: auto;" /> .center[[Click here for more Bob Ross Tableau](https://public.tableau.com/app/profile/vizpainter/viz/TheJoyofVizPainting/TheJoyofVizPainting)] ] --- # Connect to Multiple Data It is possible to add more than one file but it can be done with or without joining the data. - If you join the two or more data source, you will be able to use variables from different files in the same visualisation. However, a relationship between the data has to be established. - If you don't join the data, the variables from each data will have to be used separately in different visualisations. --- # Joining Multiple Data .pull-left[ Connect your first data file/database In the Data Source window, beside Connections, click on the plus sign to "Connect to Data" ] .pull-right[ <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_connect_join_1.png" width="100%" style="display: block; margin: auto;" /> ] .pull-left[ Drag and drop the second file next to the box representing the first file ] .pull-right[ <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_connect_join_2.png" width="100%" style="display: block; margin: auto;" /> ] --- # Joining Multiple Data Set the variables to join and if the link between the data files is correct then the link will be green <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_connect_join_3.png" width="100%" style="display: block; margin: auto;" /> --- # Add Different Data .pull-left[ Instead of clicking on the plus sign beside Connections, you can add data by clicking on the database symbol. ] .pull-right[ <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_add_data_1.png" width="100%" style="display: block; margin: auto;" /> ] However you won't be able to use variable from both source for the same visualisation: <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_add_data_2.png" width="30%" style="display: block; margin: auto;" /> --- class: title-slide, middle ## Live Examples --- class: title-slide, middle ## Exercise From the loop page, on the tile "Lecture Data", use the files **organisation alpha details**, **organisation alpha salary 2020**, **organisation alpha salary 2021**, and **organisation alpha salary 2022** and join them in Tableau Public.
−
+
05
:
00
--- class: inverse, mline, center, middle # 4. Understand the Worksheet --- # Variable List Tab .pull-left[ <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_variables.png" width="30%" style="display: block; margin: auto;" /> ] .pull-right[ **Dimensions = Categorical Variables** - Made of character string (most of the time) - Can be numeric if refers to an ID **Measures = Continuous Variables** - Made of numbers - Special cases of **Measure Names**, and **Measure Values** ] --- # Analytics Tab .pull-left[ <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_analytics.png" width="50%" style="display: block; margin: auto;" /> ] .pull-right[ Special features behind the Data Tab: - Box Plot - Median and Quartiles - Average - Regression Line (Trend Line) ] --- # Plot Configuration .pull-left[ <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_configuration.png" width="100%" style="display: block; margin: auto;" /> ] .pull-right[ Equivalent to Excel Pivot Table but for visualisations - **Columns** = X axis - **Rows** = Y axis - **Pages** = 1 plot per values (categories) - **Filters** = Keep specific values - **Marks** = Design of representation - Colors - Size - Texts - ... ] --- # Show Me: Additional Design .pull-left[ <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_showme.png" width="50%" style="display: block; margin: auto;" /> ] .pull-right[ - Tables - Maps - Histograms - Pie charts - Line charts - Bar charts - Scatterplots - Box plots - ... ] --- # Aggregation Method When selected as Rows or Columns, double click/click left on a Measure variable (green variable) .pull-left[ Choose between: - Dimensions (raw data, equivalent of "Don't summarize" in PowerBI) - Measure (COUNT, AVERAGE, STD, ...) ] .pull-right[ <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_aggregation.png" width="100%" style="display: block; margin: auto;" /> ] --- class: inverse, mline, center, middle # 5. Master the Key Figures --- # Variable Type and Visualisations .left-column[ <img src="https://help.tableau.com/current/pro/desktop/en-us/Img/showme3.png" width="100%" style="display: block; margin: auto;" /> ] .right-column[ Remember, there is a type of visualisation for each type of variables: - **Composition** (i.e. bar/column and pie charts) for **1 Dimension** (i.e., categorical variable) - **Distribution** (i.e. histogram, density, box plot and dynamite charts) for **1 Measure** (i.e., continuous variable) - **Comparison** for **2 Dimensions** or for **1 Dimension** and **1 Measure** - **Relationship** (i.e. scatterplot with regression line) for **2 Measures** ] --- class: title-slide, middle ## Composition Figures --- # Composition Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_composition_1.png" width="100%" style="display: block; margin: auto;" /> --- # Composition Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_composition_2_1.png" width="50%" style="display: block; margin: auto;" /><img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_composition_2_2.png" width="50%" style="display: block; margin: auto;" /> --- # Composition Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_composition_2.png" width="100%" style="display: block; margin: auto;" /> --- # Composition Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_simple_bar.gif" width="100%" style="display: block; margin: auto;" /> --- # Composition Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_composition_3.png" width="100%" style="display: block; margin: auto;" /> --- # Composition Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_pie_chart.gif" width="100%" style="display: block; margin: auto;" /> --- class: title-slide, middle ## Distribution Figures --- # Distribution Figures Like for Power BI, Tableau is lacking some distribution figures: - Histograms are fully implemented by default - Density plots are not possible - Box plots are fully implemented by default - Dynamite plots can be done with average bar chart but without error bars <img src="https://preview.redd.it/0esbxbu1tpg61.jpg?width=640&crop=smart&auto=webp&s=9340f0f2c8d9a8a6286bceaa88314b6ae5bbebb4" width="100%" style="display: block; margin: auto;" /> --- # Distribution Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_distribution_1.png" width="100%" style="display: block; margin: auto;" /> --- # Distribution Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_histogram.gif" width="100%" style="display: block; margin: auto;" /> --- # Distribution Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_distribution_2.png" width="100%" style="display: block; margin: auto;" /> --- # Distribution Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_box_plot.gif" width="100%" style="display: block; margin: auto;" /> --- # Distribution Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_distribution_3.png" width="100%" style="display: block; margin: auto;" /> --- # Distribution Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_average_bar.gif" width="100%" style="display: block; margin: auto;" /> --- class: title-slide, middle ## Comparison Figures --- # Comparison Figures Comparison Figures can be easily done by adding "Dimension" as colour, column or row variable to any of the previous figures: - Bar/Pie charts using CNT aggregation - Histograms - Box plots - Bar charts with AVG aggregation --- # Comparison Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_comparison_1.png" width="100%" style="display: block; margin: auto;" /> --- # Comparison Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_multiple_bar.gif" width="100%" style="display: block; margin: auto;" /> --- # Comparison Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_comparison_2.png" width="100%" style="display: block; margin: auto;" /> --- # Comparison Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_comparison_3.png" width="100%" style="display: block; margin: auto;" /> --- # Comparison Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_comparison_4.png" width="100%" style="display: block; margin: auto;" /> --- class: title-slide, middle ## Relationship Figures --- # Relationship Figures The scatterplot is the best way to display the relationship between 2 **Measure** variables However, it is essential to use the **Dimension** option from both axes menu instead of the default Sum for aggregation A trend line can be added from the **Analytics** option. --- # Relationship Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_relationship_1.png" width="50%" style="display: block; margin: auto;" /><img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_relationship_2.png" width="50%" style="display: block; margin: auto;" /> --- # Relationship Figures <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_scatterplot.gif" width="100%" style="display: block; margin: auto;" /> --- class: inverse, mline, center, middle # 6. Tableau Dashboard --- # Tableau Dashboard Like in Power BI, a dashboard is obtained by dropping several "Sheets"/Vizualisations on a page, by organising their position, and by adding additional elements (i.e., text, image, ...). Design features can be modified in order to give the dashboard a professional feel. Interactive customisations can be added from the Dashboard for all the "Sheets"/Visualisations to move simultaneously (next lecture). --- # Tableau Dashboard <img src="https://raw.githubusercontent.com/damien-dupre/img/main/tableau_dashboard.gif" width="100%" style="display: block; margin: auto;" /> --- class: inverse, mline, center, middle # 7. Tableau Practice --- # Titanic Dataset <img src="http://user-images.strikinglycdn.com/res/hrscywv4p/image/upload/c_limit,f_auto,h_2000,q_90,w_1200/107158/Screen_Shot_2015-08-03_at_1.57.45_AM_ibp1u8.png" width="100%" style="display: block; margin: auto;" /> Variables: - Survival (0 = No; 1 = Yes) - Passenger Class (1st; 2nd; 3rd) - Name, Sex, Age, Cabin - sibsp - Nb of Siblings/Spouses Aboard - parch - Nb of Parents/Children Aboard - ticket - Ticket Number - fare - Passenger Fare - embarked - Port of Embarkation (C = Cherbourg, Q = Queenstown, S = Southampton) --- class: title-slide, middle ## Use **titanic.csv** to create a Tableau Dashbord Design: - **1 Pie Chart using Survival variable** - **1 Bar Chart Proportion using Survival, Sex and Embarked variables** - **1 Scatterplot using Fare, Age and Survival variables** Remember to **use titles**, to **customise the visualisations** and to **add the text** from the document `text_dashboard.txt` to convey your narrative.
<i class="fas fa-exclamation-triangle faa-flash animated faa-slow " style=" color:red;"></i>
The Survival variable will be recognised as continuous and not as categorical, you have to change its type.
−
+
20
:
00
--- # Kubicle Optional Trainings Tableau Essentials - [Introducing Tableau](https://app.kubicle.com/courses/tableau-2020-2-introducing-tableau) (120 min) - [Creating Visualizations in Tableau](https://app.kubicle.com/courses/tableau-2020-2-creating-visualizations-in-tableau) (150 min) - [Dashboard Design](https://app.kubicle.com/courses/dashboard-design) (150 min) Advancing in Tableau - [Optimizing for Performance](https://app.kubicle.com/courses/tableau-2020-2-optimizing-for-performance) (90 min) - [Advanced Visualizations in Tableau](https://app.kubicle.com/courses/tableau-2020-2-advanced-visualizations-in-tableau) (90 min) ] --- # Optional Free Trainings Visualisations with Tableau: - [Tableau desktop: 10 core skills for business users](https://www.udemy.com/course/tableau-desktop-10-core-skills-for-business-users/) - [Tableau: Get Started](https://help.tableau.com/current/pro/desktop/en-us/getstarted_buildmanual_ex1basic.htm) - [Introduction to Dimensions and Measures](https://www.tableau.com/drive/dimensions-and-measures-intro) - [Datafields, Types, and Roles](https://help.tableau.com/current/pro/desktop/en-us/datafields_typesandroles_datatypes.htm) - [Filters on Dimensions](https://www.tutorialgateway.org/tableau-filters-on-dimensions/) - [Tableau in Two Minutes - Tableau Basics for Beginners](https://www.youtube.com/watch?v=jEgVto5QME8) - [Tableau for Data Science and Data Visualization - Crash Course Tutorial](https://www.youtube.com/watch?v=TPMlZxRRaBQ) --- class: inverse, mline, left, middle <img class="circle" src="https://github.com/damien-dupre.png" width="250px"/> # Thanks for your attention and don't hesitate to ask if you have any question! [
@damien_dupre](http://twitter.com/damien_dupre) [
@damien-dupre](http://github.com/damien-dupre) [
damien-dupre.github.io](https://damien-dupre.github.io) [
damien.dupre@dcu.ie](mailto:damien.dupre@dcu.ie)