Tableau popularised drag-and-drop analytics. The same chart-building gestures from 2003 still work today — and they're more ergonomic than any code-first BI tool. This chapter covers the absolute essentials.
Why Tableau?
- Best-in-class chart variety — 24+ chart types out of the box.
- "Show Me" panel — drag a measure, get a recommended visualisation instantly.
- Strong calculated-field language with LOD expressions for advanced aggregates.
- Tableau Public — free hosting for your portfolio dashboards.
Connecting to data
Open Tableau Desktop. The Connect pane lists 80+ sources. Common ones:
- Excel, CSV, JSON, PDF
- SQL Server, Postgres, MySQL, Snowflake, BigQuery, Redshift
- Google Sheets, Salesforce, REST API via Web Data Connector
You'll land on the Data Source tab. Drag tables to join (Tableau infers the JOIN keys). Switch to Sheet 1 to start building.
Shelves — Rows, Columns, Marks
| Shelf | Effect |
|---|---|
| Columns | adds horizontal axis / column header |
| Rows | adds vertical axis / row header |
| Marks → Color | colours marks by a field |
| Marks → Size | sizes marks by a field |
| Marks → Label | shows a value label |
| Marks → Detail | increases granularity without showing |
| Filters | adds a filter |
Dimensions vs Measures
- Dimensions are categorical/qualitative fields — region, product, date. They slice data.
- Measures are numeric/quantitative fields — sales, profit, quantity. They get aggregated (default SUM).
You can convert one to the other via right-click → Convert to Dimension/Measure. Year-as-int often needs to be a Dimension, not a Measure.
Calculated fields
// Profit margin[Profit] / [Sales]// Tier classification with IFIF [Sales] > 1000 THEN "High"ELSEIF [Sales] > 500 THEN "Mid"ELSE "Low"END// LOD: regional total ignoring the view{ FIXED [Region] : SUM([Sales]) }// Rolling 7-day sum (table calc)WINDOW_SUM(SUM([Sales]), -6, 0)
Building a dashboard
- Build 3–5 individual sheets first. Each sheet should answer one question.
- Click the New Dashboard tab at the bottom (the +Dashboard icon).
- Drag sheets onto the canvas. Switch the layout from "Floating" to "Tiled" for predictable alignment.
- Add a Filter (right-click a sheet → Filters → "Apply to other worksheets") to wire up cross-filtering.
- Publish via Server → Publish Workbook to Tableau Server / Cloud / Public.
Key takeaways
- 01Tableau is drag-first — Columns/Rows shelves drive most charts.
- 02Dimensions slice; Measures aggregate (default SUM).
- 03Marks card (Color / Size / Label / Detail) controls visual encoding.
- 04Calculated fields support IF, LOD ({ FIXED ... }), and window functions.
- 05Build sheets first, then assemble them into dashboards with cross-filtering.
