Chapter 01
What is Tableau?
The world's leading data visualisation platform β€” turning raw data into visual stories anyone can understand.

The World's Leading Viz Tool

Tableau is a data visualisation software that transforms raw data into interactive, beautiful dashboards and charts β€” without writing a single line of code. It connects to almost any data source, lets you drag and drop fields to build visuals, and publish interactive dashboards to the web.

Tableau is used by data analysts, business intelligence professionals, executives, and scientists at companies like Netflix, Salesforce, and Deloitte. It consistently ranks as the #1 BI tool in Gartner's Magic Quadrant.

🎯 Why Learn Tableau?

Tableau is one of the highest-paying skills in data analytics. It bridges the gap between raw data and actionable insight β€” making it essential for any data role.

⚑

No Code Required

Build powerful dashboards by dragging and dropping β€” zero programming needed

πŸ”—

Connects Everywhere

Excel, SQL databases, Google Sheets, Salesforce, BigQuery, and 80+ more sources

🌐

Share Instantly

Publish interactive dashboards online via Tableau Public or Tableau Server

πŸ’Ό

Industry Standard

Required skill in thousands of analyst, BI developer, and data scientist job listings

Tableau's Product Family

πŸ–₯️

Tableau Desktop

The main authoring tool for building workbooks. Paid ($70/month). We'll learn all concepts here.

🌍

Tableau Public

FREE version. Publish dashboards to Tableau Public's website. Perfect for learning and portfolios.

☁️

Tableau Cloud

Host and share dashboards securely in the cloud. Enterprise use.

πŸ“±

Tableau Mobile

View dashboards on any device. Full interactivity on iOS and Android.

πŸ”§

Tableau Prep

Visual data cleaning and shaping tool. Prepare messy data before analysing it.

πŸ‘οΈ

Tableau Reader

FREE viewer for .twbx packaged workbook files. No editing ability.

πŸ’‘

Free to start: Download Tableau Public (100% free, forever) from public.tableau.com. Everything in this course works with Tableau Public. The only limitation is that your workbooks are publicly saved β€” perfect for learning.

Tableau vs Other BI Tools

FeatureTableauPower BILooker StudioExcel
CostPaid (free Public)Paid (free Desktop)FreePaid (Office 365)
Drag-and-drop buildingβœ“ Best in classβœ“ Good~ Limitedβœ—
Advanced calculationsβœ“ Excellentβœ“ DAX is powerful~ Basicβœ“ Formulas
Map visualisationβœ“ Built-in geoβœ“ Goodβœ“ Google Maps~ Limited
Learning curveModerateModerateEasyEasy-Hard
Best forVisual analyticsMicrosoft ecosystemGoogle WorkspaceAd-hoc analysis

🧠 Quick Check

Which free version of Tableau can you use to learn everything in this course?

Tableau Desktop
Tableau Public
Tableau Reader
Tableau Cloud
Chapter 02
The Tableau Interface
Learn every panel, shelf, and button β€” mastering the interface is mastering Tableau.

The Three Views

When you open a workbook in Tableau, you work across three main views, accessible via tabs at the bottom:

πŸ“Š

Sheet (Worksheet)

Where you build individual charts and visualisations β€” the main working canvas

πŸ“‹

Dashboard

Combine multiple sheets into one interactive view for storytelling

πŸ“–

Story

Sequence dashboards and sheets into a guided narrative presentation

The Worksheet Layout

πŸ“Š Tableau Worksheet β€” Interface Map
Data Pane (Left)
β–Ό Dimensions
Abc Category
Abc Customer Name
πŸ“… Order Date
🌍 Region

β–Ό Measures
# Discount
# Profit
# Quantity
# Sales
Shelves (Top Centre)
Columns: Month(Order Date)
Rows: SUM(Sales)
Marks Card (Left Centre)
🎨 Color
πŸ“ Size
πŸ’¬ Label
πŸ” Detail
πŸ’‘ Tooltip
View (Canvas β€” Right)
πŸ“Š Chart renders here based on what's on shelves

Key Interface Areas Explained

AreaWhat It DoesKey Action
Data PaneLists all fields from your connected data sourceDrag fields to shelves
Columns ShelfFields here become the X-axis (horizontal)Drop Dimensions or Measures
Rows ShelfFields here become the Y-axis (vertical)Drop Dimensions or Measures
Marks CardControls visual encoding β€” color, size, shape, labelDrag fields to encode data
Filters ShelfRestricts which data is shown in the viewDrag fields to filter
Show MeSuggests chart types based on what's on shelvesClick to auto-change chart type
Pages ShelfAnimates the view across a dimension (like time)Drop date/time fields
πŸ“Œ

Golden rule: In Tableau, almost everything is done by dragging fields to shelves. When stuck, ask yourself: "What shelf should this field go on?"

Practice

Navigate the Interface

Open Tableau Public and load the Superstore sample dataset (File β†’ Open β†’ Superstore Excel). Then try these tasks:

  1. Identify the Data Pane on the left. Find Sales under Measures and Category under Dimensions.
  2. Drag Category to the Columns shelf. Notice how Tableau creates column headers.
  3. Drag Sales to the Rows shelf. Tableau auto-creates a bar chart!
  4. Drag Category to the Color box on the Marks card. Each bar is now a different color.
  5. Click Show Me (top right) and try switching to different chart types.

🧠 Quick Check

If you want to make bars different colours based on a "Region" field, where do you drag "Region"?

Columns shelf
Rows shelf
Color on the Marks card
Filters shelf
Chapter 03
Connecting to Data Sources
Tableau can connect to almost any data β€” from Excel to cloud databases. Learn how to bring data in and shape it.

Data Connection Types

πŸ“„

Files

Excel (.xlsx), CSV, JSON, PDF, Spatial files (.shp), Statistical files (.sas7bdat)

πŸ—„οΈ

Databases

MySQL, PostgreSQL, SQL Server, Oracle, Snowflake, BigQuery, Redshift

☁️

Cloud Services

Google Sheets, Salesforce, ServiceNow, Marketo, Adobe Analytics

πŸ”—

Web Data Connector

Custom connections to any REST API or web-based data source

Connecting to Excel / CSV (Most Common)

  1. Open Tableau β†’ On the Start Page, under Connect, click Microsoft Excel
  2. Navigate to your file and click Open. The Data Source tab opens.
  3. Drag your sheet/table from the left panel onto the canvas. You'll see a preview of your data.
  4. Check column names and data types. Fix any incorrect types (e.g., dates recognised as text).
  5. Click Sheet 1 tab at the bottom to start building visualisations.

The Data Source Screen

πŸ“Š Data Source Screen Layout
LEFT PANEL
πŸ“ Sheets / Tables
πŸ“„ Sheet1
πŸ“„ Sheet2
πŸ”— New Union
β†’
CANVAS (DRAG HERE)
Drag tables here to join or union them
β†’
DATA PREVIEW (BELOW)
Abc Order ID | # Sales
CA-2024-001 | 261
CA-2024-002 | 731

Live vs Extract Connections

⚑ Live vs πŸ—œοΈ Extract β€” What's the Difference?

FeatureLive ConnectionExtract (.hyper file)
Data freshnessAlways current, real-timeSnapshot at time of extract
PerformanceDepends on database speedVery fast (columnar storage)
Works offlineNo β€” needs DB connectionYes β€” fully self-contained
Best forReal-time dashboardsLarge datasets, sharing
πŸ’‘

Best practice: During development, use Extract for faster performance. Switch to Live when publishing production dashboards that need real-time data.

Joining Multiple Tables

When your data is split across multiple tables, Tableau can join them β€” just like SQL JOINs.

Tableau Join Equivalent
-- What Tableau does visually when you join Orders + Products:
SELECT o.order_id, o.customer, o.quantity,
       p.product_name, p.category, p.price
FROM Orders o
INNER JOIN Products p ON o.product_id = p.product_id;

In Tableau: drag both tables to the canvas β†’ a Join dialog appears β†’ choose the join type (Inner, Left, Right, Full) and the matching fields.

🧠 Quick Check

You're building a dashboard on a large dataset and it's running slowly. What should you do?

Switch to a Live connection
Create an Extract (.hyper file) for better performance
Reduce the number of sheets
Delete rows from the data
Chapter 04
Dimensions vs Measures
The single most important concept in Tableau β€” get this right and everything else clicks.

The Fundamental Split

Every field in Tableau's Data Pane is classified as either a Dimension or a Measure. Tableau uses colour to distinguish them: blue = Dimension, green = Measure.

πŸ”΅

Dimensions (Blue)

Categorical, qualitative data. Used to slice and label. Cannot be aggregated by default.

Examples: Customer Name, Category, Region, Order Date, Product ID

🟒

Measures (Green)

Numerical, quantitative data. Aggregated automatically (SUM, AVG, COUNT, etc.).

Examples: Sales, Profit, Quantity, Discount, Number of Records

Example: Superstore Dataset Split
DIMENSIONS (Blue)
Abc Category Abc Customer Name 🌍 Region πŸ“… Order Date Abc Sub-Category
MEASURES (Green)
# Sales # Profit # Quantity # Discount # Number of Records

Discrete vs Continuous

Both Dimensions and Measures can be Discrete (blue pill) or Continuous (green pill). This affects how Tableau builds axes and headers.

TypePill ColourCreatesExample
Discrete● Blue pillColumn/row headers (labels)Month names: Jan, Feb, Mar
Continuous● Green pillA continuous axis with a rangeA date axis from 1 Jan to 31 Dec
⚠️

Common confusion: Dates are Dimensions by default, but you can make them Continuous for time-series charts. Right-click a date pill β†’ choose Continuous for a smooth axis.

Aggregations on Measures

When a Measure is placed on a shelf, Tableau automatically aggregates it. The default is SUM, but you can change it.

Tableau Aggregation Options
-- Right-click any Measure pill to change aggregation:
SUM(Sales)    β†’ Total sales
AVG(Sales)    β†’ Average sale value
COUNT(Sales)  β†’ Number of sale records
MIN(Sales)    β†’ Smallest sale
MAX(Sales)    β†’ Largest sale
MEDIAN(Sales) β†’ Middle value
ATTR(Region)  β†’ If all values are same, show it; else asterisk

🧠 Quick Check

You drag "Sales" to the Rows shelf. Tableau shows SUM(Sales). You right-click and change it to AVG(Sales). What changes?

Nothing β€” Sales is always summed
The chart type changes
Each bar/data point now shows the average Sales instead of the total
The field moves to the Dimensions section
Chapter 05
Building Your First Charts
Create bar charts, line charts, scatter plots, and pie charts β€” step by step.

Bar Chart β€” Sales by Category

Bar charts are the workhorse of data visualisation. Perfect for comparing values across categories.

  1. Drag Category (Dimension) to the Columns shelf
  2. Drag Sales (Measure) to the Rows shelf β†’ Tableau auto-builds a vertical bar chart
  3. Drag Category to Color on the Marks card to color each bar differently
  4. Click Label on the Marks card β†’ tick "Show mark labels" to display values on bars
  5. Sort bars: Click the sort icon on the axis (or right-click axis β†’ Sort β†’ Descending by SUM(Sales))
πŸ’‘

Shortcut: Hold Ctrl and double-click on a field in the Data Pane β€” Tableau adds it to the view automatically using the most suitable shelf.

Line Chart β€” Sales Over Time

Line charts are ideal for showing trends over time. Date on x-axis, measure on y-axis.

  1. Drag Order Date to the Columns shelf β†’ Tableau defaults to Year granularity
  2. Right-click the date pill on Columns β†’ choose Month (or Quarter/Week)
  3. Drag Sales to the Rows shelf β†’ a line chart appears
  4. Drag Region to Color β†’ now you have multiple lines, one per region
  5. Right-click an axis β†’ Add Reference Line to add a target or average line

Scatter Plot β€” Sales vs Profit

Scatter plots reveal correlations and outliers between two numeric measures.

  1. Drag Sales to Columns (x-axis)
  2. Drag Profit to Rows (y-axis)
  3. Drag Customer Name to Detail on the Marks card β†’ one dot per customer
  4. Drag Segment to Color to color dots by customer segment
  5. Right-click the canvas β†’ Trend Lines β†’ Show Trend Lines to add a regression line

Chart Type Quick Reference

Chart TypeBest ForRequired Fields
Bar ChartComparing categories1 Dimension + 1 Measure
Line ChartTrends over timeDate + 1 Measure
Scatter PlotCorrelations, outliers2 Measures (+ optional dimension for detail)
Pie ChartPart-to-whole (use sparingly!)1 Dimension + 1 Measure
TreemapPart-to-whole, hierarchies1-2 Dimensions + 1 Measure
HeatmapPatterns in 2D matrix2 Dimensions + 1 Measure
HistogramDistribution of values1 Measure (Tableau bins it)
Box PlotStatistical distribution1 Dimension + 1 Measure
Gantt ChartProject timelinesDate Dimension + Duration Measure
MapGeographic dataGeographic field + Measure
πŸ’‘

Use "Show Me": When unsure which chart to use, place fields on shelves and click Show Me (top right). Tableau highlights compatible chart types and greys out incompatible ones. It's a great learning tool!

Practice

Build 3 Charts from Superstore Data

Using the Superstore sample dataset, build these three charts on separate sheets:

  1. Sheet 1 β€” Bar Chart: Sales by Sub-Category, sorted descending. Colour by Category.
  2. Sheet 2 β€” Line Chart: Monthly Sales trend for 2023. Add a reference line at the average.
  3. Sheet 3 β€” Scatter Plot: Sales vs Profit per Product. Colour by Category. Add a trend line.

🧠 Quick Check

You want to show how Sales has changed month by month throughout 2024. Which chart type is most appropriate?

Scatter Plot
Pie Chart
Line Chart
Treemap
Chapter 06
Calculated Fields & LOD
Create new data on the fly β€” from simple formulas to Tableau's powerful Level of Detail expressions.

What are Calculated Fields?

Calculated fields let you create new fields from existing data using Tableau's formula language. They appear in the Data Pane alongside your original fields and can be used anywhere.

To create one: Right-click in the Data Pane β†’ Create Calculated Field. Name it and write your formula.

Basic Calculations

Tableau Calculations β€” Basics
// Profit Margin %
SUM([Profit]) / SUM([Sales])

// Profit Ratio as percentage
SUM([Profit]) / SUM([Sales]) * 100

// Revenue per Unit
SUM([Sales]) / SUM([Quantity])

// Days Since Order
DATEDIFF('day', [Order Date], TODAY())

// Classify profit as High/Medium/Low
IF [Profit] > 500 THEN "High"
ELSEIF [Profit] > 100 THEN "Medium"
ELSE "Low"
END

String, Date & Logical Functions

πŸ“ String Functions

UPPER([Name])
LEFT([ID], 3)
CONTAINS([Str], "A")
TRIM([Field])

πŸ“… Date Functions

YEAR([Date])
MONTH([Date])
DATEPART('quarter', [Date])
DATEDIFF('month', d1, d2)

πŸ”’ Math Functions

ROUND([Sales], 2)
ABS([Profit])
SQRT([Value])
LOG([Number])

❓ Logic Functions

IF / ELSEIF / ELSE
IIF(condition, t, f)
CASE [Field] WHEN...
ISNULL([Field])

Level of Detail (LOD) Expressions

LOD expressions are Tableau's most powerful feature. They let you compute aggregations at a different granularity than the current view β€” something impossible with regular calculated fields.

πŸ”‘ Three LOD Types

LOD Expressions
// FIXED β€” compute at specified level, ignore view filters
{ FIXED [Customer Name] : SUM([Sales]) }
// β†’ Total sales PER CUSTOMER, regardless of what's in the view

// INCLUDE β€” add more detail than the view has
{ INCLUDE [Order ID] : AVG([Sales]) }
// β†’ Average sales per order (even if orders aren't in the view)

// EXCLUDE β€” remove a dimension from the calculation
{ EXCLUDE [Region] : SUM([Sales]) }
// β†’ Total sales ignoring regional breakdown (useful for % of total)
πŸ“Œ

Practical LOD example: "What percentage of each customer's total lifetime purchases came from this category?"
SUM([Sales]) / { FIXED [Customer Name] : SUM([Sales]) }
The denominator uses FIXED to always get the customer's total, regardless of how you filter by category.

🧠 Quick Check

You want to show each region's Sales as a % of the overall total Sales. Which LOD expression gives you the total Sales ignoring region?

{ INCLUDE [Region] : SUM([Sales]) }
{ FIXED [Region] : SUM([Sales]) }
{ EXCLUDE [Region] : SUM([Sales]) }
SUM([Sales]) alone works fine
Chapter 07
Filters & Parameters
Control what data appears in your view β€” and make dashboards interactive with Parameters.

The Filter Order of Operations

Tableau applies filters in a specific order. Understanding this order is critical for correct results:

1. Extract Filter
β†’
2. Data Source Filter
β†’
3. Context Filter
β†’
4. FIXED LOD
β†’
5. Dimension Filter
β†’
6. Measure Filter
β†’
7. Table Calc Filter

Types of Filters

πŸ“‹

Dimension Filter

Filter by a categorical value: show only "West" region or "Technology" category

πŸ”’

Measure Filter

Filter by numeric range: show only rows where Sales > 1000

πŸ“…

Date Filter

Relative (last 30 days), Range (Jan–Jun), or Discrete (specific months)

βš™οΈ

Context Filter

A pre-filter that runs before other filters. Use for Top N based on filtered data.

Quick Filters β€” Adding Interactivity

  1. Drag a field to the Filters shelf β†’ configure what values to include/exclude
  2. Right-click the filter pill β†’ choose "Show Filter" β†’ a filter widget appears on the sheet
  3. Right-click the filter widget β†’ choose display type: Single Value (dropdown), Multiple Values (list), Slider, etc.
  4. To apply a filter to ALL sheets: right-click the filter β†’ Apply to Worksheets β†’ All Using This Data Source

Parameters β€” Dynamic User Input

Parameters are dynamic placeholder values that users can change. Unlike filters (which show/hide data), Parameters pass a value into a calculation or axis.

βš™οΈ Creating and Using a Parameter

  1. Right-click in the Data Pane β†’ Create Parameter
  2. Name it (e.g., "Sales Threshold"), set data type (Integer), allowable values (range: 0 to 100000, step 1000)
  3. Click OK β†’ the Parameter appears in the Data Pane under "Parameters"
  4. Create a Calculated Field that uses the parameter:
    IF [Sales] >= [Sales Threshold] THEN "Above" ELSE "Below" END
  5. Right-click the Parameter β†’ "Show Parameter Control" β†’ a slider appears for users to interact with
πŸ’‘

Parameter Power: Use parameters to let users choose which metric to display: "Show me [Sales / Profit / Quantity]". One sheet handles all three measures dynamically β€” no need for three separate sheets.

🧠 Quick Check

You want a user to be able to type in a target revenue value, and your chart should highlight bars above/below that target. What Tableau feature should you use?

A Dimension Filter
A Context Filter
A Parameter
A Measure Filter
Chapter 08
Advanced Visualisations
Dual-axis charts, bullet graphs, waterfall charts, Gantt charts, and more β€” unlock Tableau's full visual power.

Dual-Axis Charts

Dual-axis charts combine two different measures on the same chart, each with its own axis. Great for overlaying a line (trend) on top of bars.

  1. Build a bar chart: Month(Order Date) on Columns, SUM(Sales) on Rows
  2. Drag SUM(Profit) to the right side of the Rows shelf β€” a second chart appears below
  3. Right-click the second measure pill in Rows β†’ Dual Axis β†’ both charts merge into one
  4. Right-click the right axis β†’ Synchronise Axis (if both measures are similar scales)
  5. Click on the second Marks card β†’ change mark type to Line while keeping first as Bar

Bullet Graph

A bullet graph is a compact chart that shows a measure against a target β€” like actual sales vs quota. It's a space-efficient alternative to gauges.

  1. Place a measure (e.g., SUM(Sales)) on Columns, a dimension on Rows
  2. Drag a second measure (target/quota) to the Columns shelf β†’ set it as Dual Axis
  3. Change the second Marks card type to Circle or Line
  4. On the first Marks card, add reference bands (Analytics pane β†’ Reference Band) for goal zones

Waterfall Chart

A waterfall chart shows how an initial value changes through a series of positive and negative contributions β€” great for showing profit breakdown or budget variance.

Waterfall β€” Running Total Calculation
// Create a Running Sum calculation:
RUNNING_SUM(SUM([Profit]))

// Steps:
// 1. Dimension on Rows (e.g. Sub-Category)
// 2. Running Sum on Columns
// 3. Change mark type to Gantt Bar
// 4. Use SUM(Profit) as the Size (negative values extend down)
// 5. Colour by positive/negative:
IF SUM([Profit]) >= 0 THEN "Positive" ELSE "Negative" END

Box and Whisker Plot

Shows the statistical distribution of a measure across a dimension β€” min, Q1, median, Q3, max, and outliers.

  1. Drag a Dimension to Columns, a Measure to Rows
  2. In Show Me panel, select Box-and-Whisker Plot
  3. Drag a secondary dimension to the Detail Marks card to get one dot per item
  4. Outliers automatically appear as individual points beyond the whiskers
πŸ’‘

Chart Choice Tip: Use box plots when you want to compare the distribution of a metric across groups β€” not just the average. For example: "How does profit margin vary across sub-categories?"

🧠 Quick Check

You want to show both monthly Sales (bars) and a Profit trend line on the same chart. What technique do you use?

Create two separate worksheets side by side
Dual-Axis chart β€” drag both measures to Rows and select Dual Axis
Use a Treemap
Use a Filter to switch between Sales and Profit
Chapter 09
Dashboard Design
Combine sheets into a cohesive, interactive dashboard β€” the final product stakeholders actually see.

Creating a Dashboard

  1. Click the New Dashboard icon at the bottom (next to sheet tabs)
  2. Set the dashboard size: Fixed (specific dimensions), Automatic (fits screen), or Range
  3. Drag sheets from the left Sheets panel onto the canvas
  4. Use Tiled layout (structured grid) or Floating (free-position) objects
  5. Add Text, Images, Web Page, or Blank containers via the Objects panel

Dashboard Actions β€” Making It Interactive

Actions make your dashboard come alive β€” clicking or hovering on one chart filters or highlights others.

πŸ”½

Filter Action

Clicking a region on a map filters all other charts to show only that region's data

✨

Highlight Action

Hovering over "Technology" in one chart highlights Technology in all other charts

πŸ”—

URL Action

Clicking a product name opens a URL (e.g., a product detail page or external report)

πŸ”„

Navigate Action

Clicking a KPI card navigates to a different dashboard for deeper detail (drill-down)

βš™οΈ Adding a Filter Action

  1. Dashboard menu β†’ Actions β†’ Add Action β†’ Filter
  2. Source sheets: choose which sheets trigger the filter
  3. Run action on: Select (click), Hover, or Menu (right-click)
  4. Target sheets: choose which sheets get filtered
  5. Clearing the selection: "Show All Values" (resets), "Exclude All Values", or "Keep Filtered Values"

Dashboard Design Best Practices

πŸ‘οΈ

Visual Hierarchy

Place the most important KPI (big number) top-left. Support it with charts below.

🎨

Consistent Colors

Use one color palette. Red = bad, Green = good. Don't use too many colors at once.

🚫

Reduce Clutter

Remove grid lines, borders, and legends where not needed. White space is your friend.

πŸ“±

Mobile-First

Check Device Preview. A dashboard that looks great on desktop may be unusable on phone.

⚑

Performance

Use extracts. Limit marks to <100k. Avoid complex LODs on every chart.

πŸ’¬

Clear Titles

Every chart should answer a question in its title: "Sales by Region: West Leads YTD"

⚠️

Common mistake: Using floating containers too much. They cause alignment headaches and break on different screen sizes. Prefer Tiled layout for structure, use Floating only for decorative overlays like logos or KPI callouts.

Chapter 10
Table Calculations
Compute running totals, period-over-period growth, percentages, and rankings β€” all without writing complex formulas.

What are Table Calculations?

Table calculations are secondary computations applied to the data already in your view. They run AFTER all other calculations and aggregations. Unlike LOD expressions, they operate on the values currently shown in the viz β€” not the underlying data.

Quick Table Calculations

Right-click any Measure pill on a shelf β†’ Quick Table Calculation β†’ choose from:

Quick Table CalculationWhat It ComputesUse Case
Running TotalCumulative sum of valuesYear-to-date sales, cumulative revenue
DifferenceValue minus previous valueMonth-over-month change in sales
% Difference(Current - Previous) / Previous Γ— 100Monthly growth rate %
% of TotalEach value as % of grand totalEach region's share of total sales
RankRanks values 1, 2, 3...Top 10 products by revenue
PercentilePercentile rank of each valueCustomer scoring, outlier detection
Moving AverageAverage of N previous periodsSmooth seasonal fluctuations

Custom Table Calculations

Table Calculation Functions
// Running Total
RUNNING_SUM(SUM([Sales]))

// Year-over-Year Growth %
(ZN(SUM([Sales])) - LOOKUP(ZN(SUM([Sales])), -1))
/ ABS(LOOKUP(ZN(SUM([Sales])), -1))

// Rank (1 = highest Sales)
RANK(SUM([Sales]))

// % of total per row
SUM([Sales]) / TOTAL(SUM([Sales]))

// 3-period moving average
WINDOW_AVG(SUM([Sales]), -2, 0)
πŸ“Œ

Table Calc Direction: Table calculations compute along a direction β€” across (left to right), down (top to bottom), or across then down. Always check "Edit Table Calculation" to ensure the direction matches your intent.

🧠 Quick Check

You want to show each month's Sales as a % of the full year's total. Which Quick Table Calculation should you use?

Running Total
Difference
% of Total
Moving Average
Chapter 11
Geospatial Analysis
Tableau has built-in geographic intelligence β€” map any location data in seconds.

Tableau's Built-in Geo Intelligence

Tableau automatically recognises geographic fields like Country, State, City, Zip Code, and Airport codes. When you double-click a geographic field, Tableau instantly builds a map.

πŸ’‘

Geographic Role: If Tableau doesn't recognise a field as geographic, right-click the field in the Data Pane β†’ Geographic Role β†’ assign the correct role (Country, State, City, ZIP Code, Latitude, Longitude, etc.)

Types of Maps in Tableau

πŸ”΅

Symbol Map

Circles on a map whose size and color encode measure values. Best for point data (cities, stores).

πŸ—ΊοΈ

Filled Map (Choropleth)

Fills geographic shapes (states, countries) with color based on a measure. Great for regional comparisons.

🌐

Density Map (Heatmap)

Shows concentration of points β€” useful for customer locations or event hotspots.

πŸ“

Custom Lat/Long Map

Use your own latitude/longitude coordinates for precise custom locations.

Building a Filled Map

  1. Double-click State (geographic dimension) β†’ Tableau builds a symbol map automatically
  2. In the Marks card, change the mark type from Circle to Map (or Filled Map)
  3. Drag SUM(Sales) to the Color Marks card β†’ states fill with color intensity based on sales
  4. Drag SUM(Profit) to Tooltip so hovering shows both metrics
  5. Format colors: click the color legend β†’ Edit Colors β†’ choose a diverging palette (e.g., red-white-green for profit)

Custom Territories

Group multiple states/countries into custom sales territories using Tableau's Groups feature:

  1. On the map, hold Ctrl and click multiple states to select them
  2. Right-click the selection β†’ Group β†’ name the group (e.g., "Northeast Territory")
  3. Tableau creates a new grouped dimension automatically
  4. Use this group to color the map by territory

🧠 Quick Check

You want a map where each country is shaded darker for higher sales values. Which map type should you use?

Symbol Map (circles)
Filled Map (Choropleth)
Density Map
Custom Lat/Long Map
Chapter 12
Tableau Stories
Turn your dashboards into a guided narrative β€” walk stakeholders through your analysis step by step.

What is a Story?

A Tableau Story is a sequence of visualisations (sheets or dashboards) arranged as story points β€” like slides in a presentation. Each story point can have its own caption, annotation, and filter state. Stories are perfect for executive presentations, portfolio showcases, and guided analysis.

πŸ“–

Story Point

Each "slide" in a Story. Can contain a full Dashboard, a single Sheet, or a custom combination.

πŸ’¬

Caption

The title of each story point β€” shown as tabs at the top. Should state the key insight.

πŸ“

Annotation

Add text boxes to draw attention to specific data points within a story point.

πŸ”„

Navigator

Previous/Next buttons let viewers navigate the story. Can also be dots or arrows.

Creating a Story

  1. Click New Story (the book icon at the bottom tabs)
  2. Set the Story size: same as dashboard or custom dimensions
  3. Drag a Sheet or Dashboard from the left panel onto the canvas β†’ this becomes Story Point 1
  4. Add a caption: click the caption area above the view and type your insight (e.g., "West Region Underperforms Q3")
  5. Click "Blank" in the Story panel to add a new story point β†’ drag another sheet
  6. Continue until your narrative is complete β†’ publish or present
πŸ“Œ

Story structure tip: Follow the SCR framework β€” Situation (What's the context?), Complication (What's the problem?), Resolution (What action should be taken?). Your story points should answer these in order.

Chapter 13
Tableau Public & Publishing
Share your work with the world β€” publish dashboards online and build your public portfolio.

Publishing to Tableau Public

Tableau Public is a free hosting platform where you can publish interactive dashboards visible to anyone. It's the best way to build a portfolio.

  1. Create a free account at public.tableau.com
  2. In Tableau Desktop/Public: Server β†’ Tableau Public β†’ Save to Tableau Public
  3. Sign in β†’ choose a workbook name β†’ click Save
  4. Your dashboard is now live at public.tableau.com/profile/yourname
  5. Embed it anywhere with the Embed Code (Share β†’ Embed Code β†’ paste in HTML)
πŸ’‘

Portfolio tip: Tableau Public profiles appear directly in Google search results. Add 5–10 polished dashboards to your profile and link it on your resume and LinkedIn. Recruiters actively search Tableau Public for analysts.

Saving Options

FormatExtensionContainsBest For
Tableau Workbook.twbLayout & logic only (no data)Sharing with colleagues who have the same data
Packaged Workbook.twbxLayout + embedded data extractSharing a self-contained file
Data Extract.hyperFast columnar data snapshotSharing just the data
Image/PDF/PPT.png/.pdf/.pptxStatic snapshotPresentations, static reports

Tableau Server & Cloud

For enterprise use, Tableau Server (on-premise) or Tableau Cloud (hosted) allows:

Chapter 14
Final Project
Build a complete, professional Sales Performance Dashboard from scratch β€” using everything you've learned.

Project: Sales Performance Dashboard

Using the Superstore sample dataset (included with Tableau), you'll build a 4-sheet executive dashboard that a real company could use to monitor business performance.

πŸ“‹ Dashboard Requirements

  • πŸ“Š Sheet 1 β€” KPI Summary: 4 big-number KPIs (Total Sales, Total Profit, Profit Margin %, Total Orders) for selected year
  • πŸ“ˆ Sheet 2 β€” Sales Trend: Monthly Sales + Profit dual-axis line/bar chart with YoY % change labels
  • πŸ—ΊοΈ Sheet 3 β€” Geographic Map: Sales by State (filled map), coloured by Profit Margin
  • πŸ† Sheet 4 β€” Top Products: Top 10 Sub-Categories by Sales (bar chart), coloured by Profit
  • βš™οΈ Filters: Year selector + Region multi-select filter (apply to all sheets)
  • πŸ”— Actions: Clicking a state on the map filters the Products chart to that state

Challenge 1 β€” KPI Sheet

Challenge 1

Build the KPI Summary Card

Create a sheet with 4 KPI big numbers. Each should show the current year value and a small arrow/color indicating vs prior year.

  1. Create a calculated field: Profit Margin = SUM([Profit]) / SUM([Sales]) β€” format as %
  2. Create a text sheet: drag Measure Names to Columns, Measure Values to Rows
  3. Filter Measure Values to show only: Sales, Profit, Profit Margin, Count of Orders
  4. Change mark type to Text. Format font large (36pt+). Remove headers/axes.
  5. Add color: green if Profit Margin > 15%, red if below

Challenge 2 β€” Sales Trend

Challenge 2

Build the Monthly Trend Chart

Build a dual-axis chart showing Sales bars and a Profit trend line, month by month, with YoY growth labels.

  1. Drag MONTH(Order Date) to Columns (set as Continuous)
  2. Drag SUM(Sales) to Rows β€” set as Bar marks, colour steel blue
  3. Drag SUM(Profit) to Rows β†’ Dual Axis β†’ set as Line marks, orange colour
  4. Create a Table Calculation on Sales: % Difference (from previous year). Add to Label.
  5. Add a reference line at the average Sales value

Challenge 3 β€” Geographic Map

Challenge 3

Build the Profit Map

Create a filled map of the USA coloured by Profit Margin, with Sales shown as bubble size.

  1. Double-click State β†’ Tableau builds a map
  2. Change mark type to Filled Map
  3. Drag Profit Margin (your calculated field) to Color β†’ use Red-White-Green diverging palette
  4. Drag SUM(Sales) and SUM(Profit) to Tooltip
  5. Add a descriptive tooltip: "State: <State> | Sales: $<SUM(Sales)> | Profit Margin: <Profit Margin>"

Challenge 4 β€” Assemble the Dashboard

Challenge 4

Assemble & Add Interactivity

Combine all 4 sheets into a polished dashboard and add filter actions.

  1. New Dashboard β†’ set size to 1200 Γ— 800px
  2. Arrange sheets: KPI strip at top, Trend chart bottom-left, Map bottom-right, Products chart (4th sheet) to the right of trend
  3. Add a Year filter: drag YEAR(Order Date) to Filters β†’ Show Filter β†’ Single Value Dropdown β†’ Apply to All Sheets
  4. Add a Dashboard Action: Map click β†’ filters the Products chart (Dashboard β†’ Actions β†’ Filter β†’ Source: Map sheet β†’ Target: Products sheet)
  5. Style: remove all chart borders, add a dark background (#1a1a26), use Tableau's "Midnight" color scheme
  6. Add your name and a "Last Updated" date as a Text object in the footer

πŸŽ‰ Congratulations β€” You've Completed Tableau Mastery!

You've learned the full Tableau workflow: connecting data, understanding Dimensions and Measures, building every chart type, writing Calculated Fields and LOD expressions, using Filters and Parameters, building interactive Dashboards, working with Table Calculations, mapping geographic data, creating Stories, and publishing your work.

Next steps: Publish your dashboard to Tableau Public and add it to your portfolio. Practice on the Tableau Training Videos. Take the Tableau Desktop Specialist certification exam. Explore Makeover Monday β€” weekly data challenges to sharpen your skills.