Tableau Visualizations and Group Project Overview
Tableau Public Installation and Setup
To begin working with visualizations, Tableau Public Desktop needs to be installed. It is important to:
Sign up for Tableau Public using an email address (preferably the student email).
Download the desktop edition after signing up.
Tableau Public is free, but it requires saving work to the web instead of locally on the machine. This is the only difference from the version used in the OGGB computer labs.
Group Project
Forming Groups
Students need to form groups of two for the group project. This can be done via the "People" tab under "Project Groups".
Project Overview
The project involves:
Selecting one data set from a provided list of six public data sets (accessible via Kaggle). Each data set pertains to a different area or topic, such as Spotify, video games, or Netflix.
Formulating five questions related to the chosen data set.
Using Tableau to answer these questions by extracting hidden information and visualizing it.
Creating a website to showcase the data set, questions, answers, and their significance.
Data Sets
The provided data sets are public and mostly unmodified, with links to their original sources on Kaggle. A Kaggle account may be required to access detailed information.
Question Formulation
Questions should be well-thought-out and not too simple. They should demonstrate the use of Tableau's features and functionalities. Students can discuss questions with the instructor or tutors before finalizing them. Tutors are experienced students who have previously excelled in the course.
Website Theme
The website should have a theme that provides context to the analysis. For example:
If using the video games data set, the theme could be understanding the competitive environment for creating and marketing a new game.
If using the Netflix data set, the theme could be promoting a new TV show, examining comparable shows in the domain.
Website Creation with Wix
Wix, a user-friendly website builder, can be used to create the website. The website should apply visual design principles taught in week 10.
Project Components
The project has four parts:
Data set selection.
Question formulation.
Answering questions using Tableau.
Creating a website to demonstrate questions and answers.
Introduction to Visualizations and Business Intelligence
The course is transitioning to visualizations to understand how to generate insights from data (business intelligence). The focus will be on Tableau this week and Power BI next week.
Business Intelligence and Storytelling
Business intelligence involves understanding and extracting information from data. Telling a story with data is crucial, as the analysis part is becoming increasingly automated. Humans need to interpret findings and create narratives.
Tableau and Power BI
Tableau and Power BI are key skills for business intelligence roles. The course aims to provide a basic understanding of both tools.
Tableau Interface and Data Connection
After opening Tableau Public Desktop:
Connect to Microsoft Excel.
Select the provided "Superstore" data set.
Tableau can import multiple related data tables (Excel or CSV files) and is generally intuitive at detecting connections between them.
Data Types
Tableau automatically recognizes data types (numeric, text, dates) and assigns icons to each field.
Numeric values are recognized as numeric.
Text values are labeled with "ABC".
Dates have a calendar icon.
Data types can be manually adjusted if Tableau makes a mistake.
Interface Overview
Worksheets: Primary area for creating visualizations.
Dashboards: Combine multiple worksheets into a single view.
Stories: Not covered in detail in this course.
Dimensions and Measures
Data is divided into two categories:
Dimensions (blue): Qualitative, categorical data that provides context.
Measures (green): Quantitative data used for calculations.
Creating Basic Visualizations
Pills (data fields) can be dragged into the columns and rows sections to generate visualizations.
Aggregation
By default, Tableau aggregates measures (e.g., using "Sum"). This aggregation can be changed by clicking the down arrow on the pill and selecting "Measure (Sum)", then choosing different aggregates.
Sorting and Filtering
Visualizations can be sorted and filtered like spreadsheet data. Filters can be added by dragging dimensions to the filters card, then clicking the down arrow and selecting "Show Filter".
Show Me Tab
The "Show Me" tab suggests appropriate visualization types based on the selected dimensions and measures. This allows users to experiment with different visualizations.
Building Visualizations
The following steps and visualizations that can be constructed within Tableau are:
Showing Sales for Each Subcategory Broken Down by Order Date (Year) vs. Category
Use color to show the sum of profit.
Showing Sum of Sales for Each Category and Subcategory Broken Down by Order Date (Month)
Use size to indicate the sum of profit for each month.
Label only the minimum and maximum values.
Showing Sum of Profit for Each Category and Subcategory Broken Down by Order Date (Year) for Each Customer Segment
Use color to indicate the customer segment.
Enhanced Analysis Through Sorting and Filtering
Sorting and filtering can refine visualizations and find specific data points.
Sorting can be done by clicking the column or axis and selecting the sort direction (ascending or descending).
Filters can be applied to focus on specific regions, categories, or other dimensions.
Highlighting Patterns and Trends
Highlighting allows focusing on specific subsets of data within a visualization.
Create a line chart with order date (in months) on the x-axis and sales on the y-axis.
Add profit to the tooltip to show it when hovering over data points.
Use region for color and subcategory for detail.
Show the subcategory highlighter to filter data.
Data Aggregation and Calculations
Quick Table Calculations
Quick table calculations can be applied by right-clicking a measure and selecting "Quick Table Calculation". These calculations include running totals, ranks, and percentages of total.
Calculated Fields
Calculated fields allow creating new measures using formulas or functions.
Create a calculated field (right-click in the measures area and select "Create Calculated Field").
Write a formula using existing measures and operators (e.g., Sales divided by Quantity to create "Average Unit Cost").
The calculation is validated to check for accuracy via Tableau.
Once created, these fields can be used in visualizations.
Formatting Calculated Fields
Calculated fields can be formatted (e.g., as currency) by right-clicking, selecting "Default Properties," and then "Number Format."
Example
Create a field to find the unit price to shipping cost ratio.
Create a field to find the number of distinct orders.
Sales Spotlight
Sales Spotlight is a report which highlights when sales are not doing as well as expected (below 10,000).
Create a calculated field called "Sales Spotlight" with an if condition.
IF Sum(Sales) > 10,000 THEN "Acceptable" ELSE "Poor" END
Display segment in columns, category and subcategory in rows, and sales as text in marks card.
Add sales spotlight to the color mark to highlight the sales numbers.
Grouping Members
Grouping creates new dimension with group members.
Select the required office supplies (e.g., envelopes, rubber bands, labels).
Right-click and group.
Creating a Dashboard
A dashboard combines multiple visualizations into a single view for the website.
Create a new dashboard.
Drag existing worksheets onto the dashboard.
Filters and legends remain interactive within the dashboard. The dashboard formatting can be managed in various ways.
Add text or objects by dragging them onto the dashboard.
Saving Work
To save to file, "Save to Tableau Public" must be used. You will be prompted to sign in using your email address, then proceed to save to the web page. Then your file will be accessed as a webpage TWBX. This method is used with Tableau Public Desktop. In licensed versions, the Tableau Workbooks can be saved.