MinAI - Về trang chủ
Hướng dẫn
2/1345 phút
Đang tải...

Tableau Fundamentals

Làm quen Tableau Desktop - Interface, data connection, và tạo visualizations cơ bản

0

🎯 Mục tiêu bài học

TB5 min

Sau bài học này, bạn sẽ:

✅ Cài đặt và setup Tableau Desktop / Tableau Public

✅ Hiểu Tableau interface: Data pane, Marks card, Shelves

✅ Connect data từ Excel, CSV, database

✅ Tạo Bar, Line, Scatter, Map charts

✅ Viết Calculated Fields và LOD Expressions cơ bản

✅ Build dashboard đầu tiên với filter actions

Thời gian: 45 phút | Độ khó: Beginner | Tool: Tableau Public (Free) hoặc Tableau Desktop

1

📖 Bảng Thuật Ngữ Quan Trọng

TB5 min
Thuật ngữTiếng ViệtMô tả
DimensionChiềuCategorical data: Region, Category, Date
MeasureThước đoNumeric data: Sales, Profit, Quantity
Marks CardThẻ dấu hiệuControls visual encoding: Color, Size, Label
ShelfKệRows/Columns — nơi drop fields
Calculated FieldTrường tính toánCustom formula trong Tableau
LOD ExpressionBiểu thức Level of DetailFIXED, INCLUDE, EXCLUDE — tính toán ở level khác
Filter ActionHành động lọcClick chart → filter charts khác
TooltipChú thích hoverThông tin hiện khi hover lên data point
Dual AxisTrục kép2 measures trên cùng 1 chart
Context FilterBộ lọc ngữ cảnhFilter ưu tiên, áp dụng trước

Checkpoint

Dimension = categorical (text), Measure = numeric. Marks Card controls color/size/label. LOD = FIXED/INCLUDE/EXCLUDE. Bạn phân biệt được chưa?

2

🖥️ 1. Tableau Products Overview

TB5 min

1.1 Tableau Family

ProductPurposeCost
Tableau DesktopCreate visualizations$70/mo
Tableau PublicFree version (public data only)Free
Tableau ServerShare internallyEnterprise
Tableau OnlineCloud sharing$42/user/mo
Tableau PrepData preparationIncluded

1.2 Installation

For learning: Tableau Public (Free)

  1. Download từ public.tableau.com
  2. Install và create account
  3. Limitation: Saves to public cloud only

For work: Tableau Desktop

  1. Download trial từ tableau.com
  2. 14-day free trial
  3. Full features

Bắt đầu với Tableau Public — hoàn toàn miễn phí, đủ tính năng để học. Chỉ giới hạn: data phải save lên cloud public.

Checkpoint

Tableau Public = free, save public. Tableau Desktop = full features, $70/mo. Tableau Prep = data preparation. Bạn đã cài đặt chưa?

3

🗺️ 2. Tableau Interface

TB5 min

2.1 Start Page

Tableau Start Page
CONNECTOPEN
To a File: Excel, Text file, JSON, More...Recent Workbooks: Sales_Dashboard.twb, Marketing_Report.twb
To a Server: Tableau Server, MySQL, PostgreSQL, More...Sample Workbooks: Superstore, World Indicators
DISCOVER: Viz of the Day

2.2 Workspace

Tableau Workspace Layout
Khu vựcVị tríNội dung
Menu BarTopFile, Data, Worksheet, Dashboard, Story, Analysis, Map, Format, Server
Data PaneLeftTables (Orders, Customers, Products), Dimensions (Category, Region, Segment, Ship Mode), Measures (Sales, Profit, Quantity, Discount)
CanvasCenterYour visualization appears here — drop fields to build
ShelvesCenter-topColumns, Rows
Sheet TabsBottomSheet 1, Sheet 2, [+], Dashboard 1, Story 1

2.3 Key Terms

TermDefinition
DimensionCategorical data (Region, Category, Date)
MeasureNumeric data (Sales, Profit, Quantity)
Rows/ColumnsShelves định vị data
MarksVisual elements (bars, lines, points)
FiltersLimit data displayed
PagesAnimation/stepping through data

Checkpoint

Tableau workspace: Data pane (bên trái) chứa Dimensions + Measures. Canvas (giữa) hiển thị visualization. Marks card controls Color/Size/Label. Bạn đã explore interface chưa?

4

🔌 3. Connecting to Data

TB5 min

3.1 Data Source Page

Data Source Page Layout
Khu vựcNội dung
ConnectionsSample-Superstore (Excel)
SheetsOrders (1000 rows), People (4 rows), Returns (296 rows)
CanvasDrag tables here to relate them
PreviewFirst 1000 rows: Row ID, Order ID, Order Date, Ship Date...

3.2 Supported Data Sources

Files: Excel, CSV, JSON, PDF (tables)

Databases: MySQL, PostgreSQL, SQL Server, BigQuery, Snowflake, Redshift

Cloud Apps: Google Sheets, Salesforce, Google Analytics

3.3 Data Prep Basics

🖱️Right-click field → Options
✏️Rename
🔄Change data type (String, Number, Date)
🧮Create calculated field
📁Create group
📊Create hierarchy
👁️Hide
✂️Split (for text fields)

Tableau auto-detect data types nhưng đôi khi sai. Luôn kiểm tra data types sau khi connect — đổi text sang date, string sang number nếu cần.

Checkpoint

Tableau connect được Files (Excel, CSV), Databases (SQL Server, MySQL), và Cloud (Google Sheets). Luôn kiểm tra data types sau khi connect!

5

📊 4. Building Basic Charts

TB5 min

4.1 Bar Chart — Category Sales

Steps:

  1. Drag Category to Columns
  2. Drag Sales to Rows
  3. Done!
Sales by Category — Bar Chart
CategorySales
Office Supplies~$800K (cao nhất)
Furniture~$400K
Technology~$400K

Enhancements:

  • Sort: Click sort icon in toolbar
  • Color: Drag Category to Color
  • Labels: Click Label in Marks card

4.2 Line Chart — Sales Trend

Steps:

  1. Drag Order Date to Columns (auto-becomes YEAR)
  2. Click + on date to expand to Quarter or Month
  3. Drag Sales to Rows
Sales Over Time — Line Chart

Trend line shows seasonal peaks:

  • Q1 2022: ~20KQ2: 20K → **Q2:** ~40K → Q3: ~60KQ4: 60K → **Q4:** ~40K
  • Q1 2023: ~60KQ2: 60K → **Q2:** ~80K → Q3: ~$100K
  • Overall upward trend với seasonal fluctuation

4.3 Scatter Plot — Profit vs Sales

Steps:

  1. Drag Sales to Columns
  2. Drag Profit to Rows
  3. Drag Category to Color

4.4 Map — Sales by State

Steps:

  1. Double-click State (auto-generates map)
  2. Drag Sales to Color

Tableau = Drag & Drop. Bar chart chỉ cần 2 bước: Dimension → Columns, Measure → Rows. Marks card controls Color, Size, Label — experiment nhiều!

Checkpoint

Bar = Dimension → Columns + Measure → Rows. Line = Date → Columns. Scatter = Measure × Measure. Map = Double-click geographic field. Bạn đã tạo chart đầu tiên chưa?

6

🎨 5. Formatting & Polish

TB5 min

5.1 Marks Card

Marks Card
ElementChức năng
[Automatic ▼]Chart type selector
● ColorColor encoding
○ SizeSize encoding
Abc LabelData labels
◐ DetailAdd detail level
△ TooltipHover info

5.2 Custom Tooltips

Default tooltip:

Ví dụ
1Category: Technology
2Sales: $836,154

Custom tooltip:

Ví dụ
1📱 {Category}
2💰 Revenue: ${Sales}
3📈 Growth: {Profit Ratio}%
4Click to see details →

Edit: Worksheet → Tooltip

5.3 Reference Lines

Add context: Average line, Target line, Trend line, Bands

Ví dụ
1Analytics Pane → Drag Reference Line to chart

Checkpoint

Marks card: Color, Size, Label, Tooltip, Detail. Custom tooltips thêm context cho hover. Reference lines từ Analytics Pane thêm benchmarks. Đã customize Marks chưa?

7

🔍 6. Filters & Calculated Fields

TB5 min

6.1 Filter Types

TypeHow to AddUse
Dimension FilterDrag to FiltersInclude/exclude categories
Measure FilterDrag to FiltersRange of values
Date FilterDrag to FiltersDate range
Context FilterRight-click → Add to ContextFilter áp dụng trước

6.2 Show Filter Control

Show Filter Control

Right-click filter → Show Filter

  • ☑ Furniture
  • ☑ Office Supplies
  • ☐ Technology ← User can toggle

6.3 Common Calculations

SQL
1-- Profit Margin
2[Profit] / [Sales]
3
4-- Running Total
5RUNNING_SUM(SUM([Sales]))
6
7-- Rank
8RANK(SUM([Sales]))
9
10-- IF Statement
11IF [Profit] > 0 THEN "Profitable" ELSE "Loss" END

6.4 LOD Expressions

SQL
1-- Fixed: Calculate at specific level
2{ FIXED [Category] : SUM([Sales]) }
3
4-- Include: Add dimension to calculation
5{ INCLUDE [Product] : AVG([Discount]) }
6
7-- Exclude: Remove dimension
8{ EXCLUDE [Region] : SUM([Profit]) }

LOD Expressions là advanced feature — FIXED tính ở level cố định bất kể filter context. Rất mạnh nhưng cần hiểu rõ trước khi dùng.

Checkpoint

Filters: Dimension (categories), Measure (ranges), Context (priority). Calculated Fields: IF/CASE logic, running totals. LOD: FIXED/INCLUDE/EXCLUDE for cross-level calculations!

8

🏋️ 8. Hands-on: Build Sales Dashboard

TB5 min
Project

Build dashboard hoàn chỉnh với Sample Superstore data!

Data: Sample Superstore (included in Tableau)

Sheet 1: Sales by Category

Ví dụ
1Columns: Category
2Rows: SUM(Sales)
3Color: Category
4Sort: Descending, Labels: Show

Sheet 2: Monthly Trend

Ví dụ
1Columns: MONTH(Order Date)
2Rows: SUM(Sales)
3Add: SUM(Profit) as dual axis
4Color: Measure Names

Sheet 3: Regional Map

Ví dụ
1Double-click: State
2Color: SUM(Sales), Size: SUM(Profit)

Sheet 4: Top Products

Ví dụ
1Rows: Product Name
2Columns: SUM(Sales)
3Filter: Top 10 by Sales
4Sort: Descending

Combine into Dashboard

Dashboard → New Dashboard — Size: Fixed (1200 x 800)

Dashboard Layout
Vị tríNội dung
Top RowSales · Profit · Orders (KPI tiles)
Middle LeftSales by Category
Middle RightMonthly Trend
Bottom LeftRegional Map
Bottom RightTop 10 Products

Add Filter actions for interactivity!

9

📋 Tổng kết

TB5 min

Kiến thức đã học

Chủ đềNội dung chínhTầm quan trọng
ProductsDesktop, Public, Prep, ServerOverview
InterfaceData pane, Marks, ShelvesCore navigation
DataConnect files, databases, cloudFoundation
ChartsBar, Line, Scatter, MapCore skills
FormattingMarks card, Tooltips, Ref linesPolish
FiltersDimension, Measure, Context, LODAdvanced
DashboardCombine sheets, filter actionsCapstone

Câu hỏi tự kiểm tra

  1. Dimensions và Measures khác nhau thế nào trong Tableau?
  2. Context Filter khác Filter thông thường thế nào?
  3. Dual Axis dùng trong trường hợp nào?
  4. Marks card có những thành phần nào?

Bài tiếp theo: Power BI Fundamentals — So sánh với Tableau và build reports trong Power BI Desktop!

🎉 Tuyệt vời! Bạn đã biết cách tạo visualization trong Tableau!

Nhớ: Marks card là trái tim của Tableau — thành thạo Color, Size, Label, Detail là bạn thành thạo Tableau!