Tableau

Tableau explained simply, for data and business analyst interviews. Each topic has a plain-words box, an everyday example, and "how to do it" steps. All examples use one small, made-up sales table, so you can follow along in Tableau Public.

Part 1 — Getting Started

1. What Tableau Is

In plain words

Tableau is a tool for turning data into charts and dashboards. You drag and drop columns. Tableau draws the chart. You don't need to write code.

Think of Tableau as a smart drawing board. You hand it a spreadsheet, point at what you want to see ("sales by region"), and it draws the picture for you.

Key points

  • Data visualization = showing data as pictures (bars, lines, maps), so people understand it fast.
  • A dashboard = one screen with many charts and filters together. Managers use it to track the business.
  • Tableau is used for reporting (what happened), analysis (why it happened) and sharing results with a team.
  • It connects to Excel, CSV, SQL databases, cloud warehouses (Snowflake, BigQuery) and many more.
  • Tableau is owned by Salesforce (since 2019).
  • Its query language is called VizQL. When you drag fields, Tableau writes the database query for you.

The example data used in these notes

We will use a small "Superstore-style" Orders table. Each row is one product line in one order.

Order IDOrder DateShip DateRegionCategoryCustomerSalesProfit
CA-10012025-01-052025-01-08EastFurnitureAsha Rao50080
CA-10022025-01-192025-01-21WestTechnologyRavi Kumar1200300
CA-10032025-02-022025-02-07SouthOffice SuppliesMeera Iyer90-10
CA-10042025-02-142025-02-16EastTechnologyAsha Rao800150
CA-10052025-03-032025-03-09CentralFurnitureJohn Das300-40
Remember: in one line, "Tableau is a drag-and-drop tool that connects to data and turns it into interactive charts and dashboards."

2. The Tableau Product Family

In plain words

Tableau is not one app. It is a family of products. One app builds charts, one cleans data, and others share charts with people.

Think of a bakery. The kitchen bakes the cakes (Desktop). A prep table washes and cuts the fruit first (Prep). The shop window shows the cakes to customers (Server, Cloud, Public).

ProductWhat it doesSimple example
Tableau DesktopThe main app on your computer. You build charts and dashboards here.You make a sales dashboard.
Tableau Prep BuilderCleans and reshapes data before charting. You build a flow (a series of steps). Files: .tfl / .tflx.Remove blank rows, fix city names, join two files.
Tableau ServerYour company installs and runs it on its own machines. People view dashboards in a browser.A bank keeps all data inside its own building.
Tableau CloudThe same idea as Server, but Tableau (Salesforce) hosts it for you. Old name: Tableau Online.A startup shares dashboards without managing servers.
Tableau PublicFree. Anyone can see what you publish. Good for learning and portfolios.You share a project on your resume.
Tableau PulsePart of Tableau Cloud. It tracks key metrics and sends short AI-written insights by email, Slack or the web."Sales are up 8% this week, mainly in the West."

Key points

  • Licences (user types): Creator = can build everything (includes Desktop and Prep). Explorer = can edit and explore published content. Viewer = can only look and use filters.
  • Tableau Agent is the built-in AI helper (formerly Einstein Copilot). It can suggest charts and help write calculations from plain English.
  • Tableau Next is Salesforce's newer "agentic" analytics product built on the Salesforce platform. Just know the name.
  • Tableau Desktop Public Edition is the free desktop app. Your work is shared on Tableau Public, so never use private or company data there.
Remember: Desktop = build, Prep = clean, Server / Cloud = share inside a company, Public = share with the world, Pulse = metrics with AI insights.

3. The Tableau Interface

In plain words

The Tableau screen has a few main areas. On the left is your list of columns. In the middle are shelves where you drop columns. The big empty area shows your chart.

It is like cooking with a recipe board. The data pane is your pantry (ingredients). The shelves are the pots. The view is the plate where the finished dish appears.

Toolbar: undo, save, swap rows and columns, sort, fit Data pane your columns Dimensions Region, Category Measures Sales, Profit (Analytics tab too) Pages Filters drop fields to filter Marks card mark type Color · Size · Label Detail · Tooltip Shape · Path Columns shelf (across) Rows shelf (down) The view (canvas) your chart is drawn here Show Me chart ideas Data Source Sheet 1 Dashboard 1 Story 1 tabs: one per sheet
The worksheet screen. Drag fields from the data pane onto Columns, Rows, Filters or the Marks card. The view updates at once.

Key points

  • Data pane (left): every column (Tableau calls it a field) from your data. The Analytics tab next to it has trend lines, averages and forecasts.
  • Columns shelf: fields here go across the chart (left to right). Rows shelf: fields here go down (top to bottom).
  • Marks card: controls how each mark looks. A mark is one drawn item: one bar, one dot, one map shape.
    • Color, Size, Label (text on the mark), Detail (split marks without changing the look), Tooltip (pop-up on hover), Shape, Path (line order).
    • The mark type drop-down: Automatic, Bar, Line, Area, Square, Circle, Shape, Text, Map, Pie, Gantt Bar, Polygon, Density.
  • Filters shelf: drop a field here to keep only some data. Pages shelf: makes a "flip-book" animation, one page per value.
  • Show Me: suggests chart types for the fields you selected. Grey charts need different fields; it tells you what is missing.
  • A field you drop on a shelf becomes a pill (a rounded tag).
Remember: Columns = across, Rows = down, Marks card = how marks look. If you can explain these three, you can explain any Tableau chart.

4. Workbooks, Worksheets, Dashboards and Stories

In plain words

A workbook is your Tableau file. Inside it are worksheets (one chart each), dashboards (many charts on one screen) and stories (a slideshow of charts).

A workbook is like a school notebook. Each page is a worksheet. A dashboard is a poster where you stick several pages together. A story is a presentation you give from those posters.

ItemWhat it holdsUsed for
WorksheetOne chart (one "viz")Building and testing a single view
DashboardMany worksheets, filters, text, imagesMonitoring the business on one screen
StoryA sequence of "story points" (sheets or dashboards)Walking someone through findings, step by step

Key points

  • Viz (short for visualization) = any chart Tableau draws.
  • You make new sheets with the icons at the bottom tab bar: New Worksheet, New Dashboard, New Story.
  • One worksheet can be used in many dashboards. Change it once, and every dashboard updates.
  • The Data Source tab (bottom-left) is where you connect and prepare data.
Remember: worksheet = one chart, dashboard = many charts together, story = charts in order to tell a message.
Part 2 — Connecting Data

5. Live vs Extract, and File Types

In plain words

When you connect to data, Tableau asks: Live or Extract? Live reads the database every time. Extract takes a snapshot (a saved copy) of the data into a fast Tableau file.

Live is like watching a cricket match on TV: always current, but you need the signal. An extract is like a recording: very fast to play, but only as new as the last time you recorded it.

How to connect (step by step)

  1. Open Tableau. On the start page, under Connect, pick the source: Microsoft Excel, Text file (CSV), or a server like MySQL.
  2. Choose the file (or type the server name, user and password).
  3. You land on the Data Source page. Drag the sheet or table into the canvas.
  4. At the top-right, choose Live or Extract.
  5. Click the Sheet 1 tab to start building charts.
Live connectionExtract (.hyper)
Data freshnessAlways up to dateAs fresh as the last refresh
SpeedDepends on the database speedUsually fast (Hyper engine is built for this)
Works offline?NoYes
Load on databaseEvery click sends a queryOnly during refresh
Good forReal-time numbers, very fast warehousesSlow sources, big files, sharing packaged work

File types you must know

ExtensionWhat it is
.twbTableau Workbook. Only the design (charts, calculations). No data inside. Small file.
.twbxPackaged Workbook. The workbook plus its data (extract or local files). Send this to someone who doesn't have your data.
.hyperExtract file. A compressed snapshot of data. (Old format was .tde.)
.tdsData Source file. Saves connection details, calculated fields, renames. No data.
.tdsxPackaged data source: the .tds plus the extract.
.tfl / .tflxTableau Prep flow / packaged flow.
  • Extract refresh: Full = rebuild the whole copy. Incremental = add only new rows (based on a column like Order Date or an ID).
  • Extract filters can keep the extract small, e.g. only the last 2 years.
Remember: .twb = design only, .twbx = design + data packed together. Live = fresh but depends on database; extract = fast snapshot.

6. Joins

In plain words

A join combines two tables side by side using a common column, like Order ID. The result is one wide table.

Two class lists: one has roll number and name, the other has roll number and marks. Matching on roll number gives one list with name and marks together.

Example tables

Orders has CA-1001, CA-1002, CA-1003. Returns has CA-1002 and CA-9999 (a typo order that is not in Orders).

Join typeKeepsRows in result
InnerOnly rows that match in both tablesCA-1002
LeftAll rows from the left table + matches from the rightCA-1001, 1002, 1003 (Returned is null for 1001 and 1003)
RightAll rows from the right table + matches from the leftCA-1002, CA-9999
Full outerEverything from both, matched where possibleCA-1001, 1002, 1003, 9999

How to make a join (step by step)

  1. On the Data Source page, drag Orders to the canvas.
  2. Double-click the Orders box. This opens the physical layer (the join area).
  3. Drag Returns next to Orders. A Venn icon (two circles) appears.
  4. Click the Venn icon. Pick the join type (Inner, Left, Right, Full Outer).
  5. Set the join clause: Order ID = Order ID.
  • Duplication problem: if one order has 3 rows in table B, the join repeats the order 3 times. Then SUM(Sales) becomes too big. Always check totals after a join.
  • Null = an empty value. Left/right/full joins create nulls where there is no match.
  • You can join on more than one column, and use =, <, > and so on. You can also use a calculation in a join clause.
  • Cross-database join = join tables from two different sources (e.g. Excel + MySQL).
Remember: a join makes one flat table before analysis. Watch out for duplicated rows inflating your sums.

7. Relationships and Blending

In plain words

A relationship links two tables but keeps them separate. Tableau decides how to join them later, for each chart, using only the fields that chart needs. It has been the default since Tableau 2020.2.

A join is like gluing two books into one big book. A relationship is like putting a bookmark that says "see page 5 in the other book". You only open the other book when you need it.

Join (physical layer) Orders Returns One merged table fixed before analysis; rows can repeat You pick: inner / left / right / full Relationship (logical layer) Orders Returns "noodle" Order ID = Order ID Tables stay separate. Tableau picks the join for each chart, at each table's own level of detail. Double-click a table in the logical layer to open its physical layer (joins and unions).
Joins merge tables early. Relationships ("noodles") stay flexible and avoid double counting.

Key points about relationships

  • The Data Source page has two layers. Logical layer (top level) = relationships. Physical layer (inside a table) = joins and unions.
  • You don't pick a join type. Tableau uses the right one per chart (this is called a context-aware join).
  • Each table keeps its own level of detail, so sums are not duplicated.
  • Unmatched rows are kept by default, so you don't lose data silently.
  • Optional "Performance options" let you set cardinality (one / many) and referential integrity. Leave them alone unless you are sure.

Data blending (the older way)

  • Blending combines data from two different data sources inside one worksheet.
  • The first source you use is the primary (blue tick). The other is secondary (orange tick).
  • They are linked on a common field. An orange link icon shows which field links them. You can click it to turn the link on or off.
  • It works like a left join from primary to secondary, done after each source is aggregated.
  • Limits: secondary fields are always aggregated, and some functions (like COUNTD on secondary) don't work well. Use it when the sources can't be related, e.g. data at different levels like daily sales vs monthly targets.
JoinRelationshipBlend
WherePhysical layer (inside a table)Logical layer (top of Data Source page)In a worksheet, between two data sources
When combinedBefore analysis, onceAt query time, per chartAfter each source is aggregated
Join typeYou chooseTableau choosesAlways left (primary → secondary)
Duplicate rows?PossibleNo (keeps level of detail)No
Best forSame-level tables, simple lookupsDefault choice for most modelsDifferent sources at different levels, quick one-off
Remember: start with relationships. Use joins when you need a specific join type. Use blending only for two separate data sources that can't be related.

8. Unions, Data Interpreter, Pivot and Split

In plain words

These are quick cleaning tools on the Data Source page. A union stacks tables on top of each other. Data Interpreter tidies messy Excel files. Pivot turns columns into rows. Split breaks one column into many.

A union is like stapling January's attendance sheet under December's. Same columns, more rows.

Union (stack rows)

  • Use it when files have the same columns: Sales_2024.csv and Sales_2025.csv.
  • Join = adds columns (side by side). Union = adds rows (top to bottom).
  • Tableau adds a Table Name (or Sheet) column so you know where each row came from.
  • Wildcard union = union all files matching a pattern, like Sales_*.csv.
  1. Drag the first table to the canvas and double-click it (physical layer).
  2. Drag the second table under the first until it says "Drag table to union". Drop it.
  3. Or right-click the table → Convert to Union to set a wildcard pattern.

Data Interpreter

  • Excel files often have titles, blank rows and notes above the real table. Tick Use Data Interpreter on the Data Source page.
  • Tableau finds the real header row and removes the extra stuff. Click "Review the results" to check what it did.

Pivot (wide to long)

Data like this is "wide" and hard to chart:

RegionJanFebMar
East500800650
  1. On the Data Source page, select the Jan, Feb, Mar columns (Ctrl/Cmd-click).
  2. Right-click → Pivot.
  3. You get two columns: Pivot Field Names (Jan, Feb, Mar) and Pivot Field Values (500, 800, 650). Rename them to Month and Sales.

Split

  • Right-click a column like Customer = "Asha Rao" → Split. Tableau makes "Asha" and "Rao" columns.
  • Custom Split lets you choose the separator (e.g. - or ,) and which parts to keep.
Remember: join = more columns, union = more rows, pivot = columns into rows. For heavy cleaning, use Tableau Prep.
Part 3 — Core Ideas

9. Dimensions vs Measures

In plain words

A dimension is a field you group by or describe with: Region, Category, Customer name. A measure is a number you calculate with: Sales, Profit, Quantity.

In "total sales by region", Region is the dimension (the labels on the shelves) and Sales is the measure (what you count on each shelf).

Key points

  • Dimensions are usually text, dates or IDs. They slice the data into groups.
  • Measures are numbers that can be aggregated (summed, averaged, counted).
  • In the data pane, dimensions are listed at the top, measures below a line.
  • Tableau guesses the role when it connects. You can change it: right-click the field → Convert to Dimension / Convert to Measure.
  • Example: Postal Code is a number, but you never add postal codes. So make it a dimension.
  • Measure Names and Measure Values are special fields. They let you show many measures in one chart (e.g. Sales, Profit and Quantity side by side in a text table).
Remember: dimension = "by what?" (labels, groups). Measure = "how much?" (numbers you aggregate).

10. Discrete vs Continuous (Blue vs Green)

In plain words

Discrete means separate, distinct values (like 2023, 2024, 2025). Discrete pills are blue and make headers. Continuous means an unbroken range of values. Continuous pills are green and make an axis.

Discrete is like the floors of a building: floor 1, floor 2, floor 3, with nothing in between. Continuous is like a ramp: every point in between exists.

YEAR(Order Date) · discrete 2023 2024 2025 separate labelled boxes = headers Order Date (exact) · continuous 2023 2024 2025 2026 one unbroken axis = continuous Blue = discrete = headers. Green = continuous = axis.
The same date field, used two ways. Blue gives labelled boxes. Green gives a smooth timeline.

Key points

  • Dimension/measure and discrete/continuous are two different ideas. Don't mix them up.
  • Usually: dimensions are discrete (blue) and measures are continuous (green). But not always.
  • A measure can be discrete. Example: make SUM(Sales) discrete and it shows as header text instead of an axis.
  • A date can be both. Right-click a date pill: the top list (YEAR, QUARTER, MONTH) gives date parts (blue, discrete). The lower list gives date values (green, continuous, e.g. a timeline of each month).
  • To switch: right-click the pill → Discrete or Continuous.
  • Colour legend: discrete field on Color gives separate colours; continuous field gives a colour gradient (light to dark).
Remember: interviewers love this one. "Blue pills are discrete and draw headers; green pills are continuous and draw axes. It is separate from dimension vs measure."

11. Aggregation

In plain words

Aggregation means rolling many rows into one number. When you drop Sales on a shelf, Tableau shows SUM(Sales), the total for each group.

Your bank statement has 100 transactions. Aggregation is the summary line at the bottom: "Total spent: ₹12,000".

Key points

  • Default aggregation for measures is SUM. Change it: right-click the pill → Measure (Sum) → pick another.
  • Common ones: SUM, AVG, MIN, MAX, COUNT, COUNTD (count distinct), MEDIAN.
  • COUNT([Order ID]) counts rows. COUNTD([Order ID]) counts unique orders. One order with 3 products: COUNT = 3, COUNTD = 1.
  • ATTR([Field]) shows the value if all rows in the group have the same value, otherwise *.
  • The level of detail of a chart = the dimensions in it. "Sales by Region" has 4 marks, one per region.
  • Disaggregate: menu Analysis → untick Aggregate Measures. Now you see one mark per row. Used for some scatter plots.
Data: East rows have Sales 500 and 800.

SUM(Sales)   for East = 1300
AVG(Sales)   for East = 650
COUNT(Sales) for East = 2
Remember: every measure in a chart is aggregated to the level of the dimensions in the chart. Add a dimension, and you get more, smaller groups.
Part 4 — Building Charts

12. Bar, Line, Text Table and Highlight Table

In plain words

These four are the basics. Bar charts compare categories. Line charts show change over time. Text tables show exact numbers. Highlight tables are text tables with coloured cells.

A bar chart is like a row of water glasses. You see at a glance which glass is fullest.

Bar chart: Sales by Category

  1. Drag Category to Columns.
  2. Drag Sales to Rows. Tableau draws bars with SUM(Sales).
  3. Click the sort icon in the toolbar to sort high to low.
  4. Drag Region to Color for a stacked bar. Drag Region to Columns instead for side-by-side bars.
  5. Drag Sales to Label to show numbers on the bars.

Line chart: Sales over time

  1. Drag Order Date to Columns. It shows YEAR(Order Date).
  2. Right-click the pill → choose the green Month (date value, e.g. "May 2025") for a continuous timeline.
  3. Drag Sales to Rows. You get a line.
  4. Drag Category to Color for one line per category.

Text table (crosstab)

  1. Drag Region to Rows and Category to Columns.
  2. Drag Sales to Text on the Marks card.
  3. Menu Analysis → Totals → Show Row / Column Grand Totals.

Highlight table

  1. Build the text table above.
  2. Drag Sales (or Profit) to Color. Change mark type to Square.
  3. Now big numbers have darker cells. Use a diverging colour (red–green) for Profit, so losses stand out.
Remember: bar = compare categories, line = trend over time, text table = exact values, highlight table = exact values plus colour for quick scanning.

13. Maps and Scatter Plots

In plain words

A map shows data by location. A scatter plot shows how two numbers relate: one on each axis, one dot per item.

A scatter plot is like plotting students by "hours studied" and "marks". If the dots go up together, more study means more marks.

Maps: how to build

  1. Make sure the location field has a geographic role. Right-click State → Geographic Role → State/Province. A globe icon appears.
  2. Double-click State. Tableau adds Latitude (generated) and Longitude (generated) and draws a map.
  3. Symbol map: drag Sales to Size. Bigger circle = more sales.
  4. Filled map (choropleth): change mark type to Map and drag Profit to Color. Each state is shaded.
  • If some places are not found, click the "unknown" note at the bottom-right of the map and fix the locations.
  • You can also use your own latitude/longitude columns, or spatial files (shapefile, GeoJSON).
  • Map layers let you stack several layers (e.g. filled states plus city dots) on one map.

Scatter plot: Sales vs Profit by Customer

  1. Drag Sales to Columns and Profit to Rows. You get just one dot (the grand total).
  2. Drag Customer to Detail. Now there is one dot per customer.
  3. Drag Category to Color.
  4. Optional: Analytics pane → drag Trend Line onto the view.
Remember: a scatter plot needs a dimension on Detail, otherwise you only get one dot. A map needs a geographic role on the field.

14. Heatmap, Treemap, Histogram and Box Plot

In plain words

These charts show patterns and spread. A heatmap uses colour in a grid. A treemap shows parts of a whole as rectangles. A histogram shows how values are spread. A box plot shows the middle and the extremes of values.

A histogram is like sorting students into height groups (150–160 cm, 160–170 cm …) and counting how many are in each group.

Heatmap: Sales by Month and Weekday

  1. Drag Order Date to Columns, set it to Month (discrete, blue).
  2. Drag Order Date to Rows, set it to Weekday (More → Weekday).
  3. Mark type Square. Drag Sales to Color.
  4. Dark squares show busy days. (Mark type Density makes a "glow" heatmap for dense scatter or map points.)

Treemap: Sales by Sub-Category

  1. Drag Sub-Category to Label (or Detail).
  2. Drag Sales to Size and Profit to Color. Mark type Square.
  3. Big rectangle = big sales. Red = loss. Or select the fields and click Treemap in Show Me.

Histogram: how big are our orders?

  1. Click Sales in the data pane, open Show Me, pick Histogram.
  2. Tableau creates a new field Sales (bin) and puts CNT(Sales) on Rows.
  3. Edit the bin size: right-click Sales (bin) → Edit → e.g. size 100.
  4. Result: how many order lines fall in 0–100, 100–200, and so on.

Box plot (box-and-whisker)

  1. Drag Category to Columns, Sales to Rows.
  2. Drag Order ID to Detail, so there is one dot per order. Mark type Circle.
  3. Analytics pane → drag Box Plot onto the view (or pick box-and-whisker in Show Me).
  • The box covers the middle 50% of values (from the 25th to the 75th percentile). The line inside is the median.
  • The whiskers reach out to 1.5 × the box height by default. Dots past them are outliers (unusual values).
Remember: histogram = how values are spread (uses bins). Box plot = median, middle 50% and outliers. Treemap = part-to-whole with rectangles.

15. Dual-Axis and Combo Charts

In plain words

A dual-axis chart puts two measures on top of each other, each with its own axis (one left, one right). A combo chart is a dual-axis chart where each measure uses a different mark type, like bars plus a line.

Like a weather chart: bars for rainfall (mm) and a line for temperature (°C). Two scales, one picture.

How to build Sales (bars) + Profit (line) by Month

  1. Drag Order Date to Columns and set it to continuous Month.
  2. Drag Sales to Rows. Drag Profit to Rows too. You now have two charts stacked.
  3. Right-click the SUM(Profit) pill → Dual Axis. The charts merge.
  4. On the Marks card there is now one tab per measure. Set SUM(Sales) to Bar and SUM(Profit) to Line.
  5. If both use the same unit, right-click the right axis → Synchronize Axis.
  • Synchronize only works when both measures have the same data type (both whole numbers or both decimals).
  • Different scales can mislead. Always label both axes clearly.
  • Blended axis (shared axis) is different: drag a second measure onto the existing axis. Both share one axis, using Measure Names/Values.
  • Dual axis is also used for donut charts (pie + a smaller white circle on top) and map layers.
Remember: dual axis = two measures, two axes, overlaid. Combo = dual axis with different mark types. Sync the axes if units match.

16. Gantt and Bullet Charts

In plain words

A Gantt chart shows tasks or events as bars on a timeline: where each starts and how long it lasts. A bullet chart compares an actual number to a target.

A Gantt chart is like a school timetable drawn as bars. A bullet chart is like a thermometer with a red line marking your goal.

Gantt chart: how long does shipping take?

  1. Create a field Days to Ship: DATEDIFF('day', [Order Date], [Ship Date]).
  2. Drag Order Date to Columns (continuous, exact Day).
  3. Drag Order ID to Rows.
  4. Set mark type to Gantt Bar. Drag Days to Ship to Size. Each bar starts at the order date and its length is the shipping time.

Bullet chart: Sales vs Target

  1. You need two measures: Sales (actual) and Target.
  2. Select both in the data pane (Ctrl/Cmd-click), plus Region. In Show Me, click Bullet Graph.
  3. The bar is actual sales. A reference line marks the target. Shaded bands show e.g. 60% and 80% of target.
  4. If Tableau puts them the wrong way round, right-click the axis → Swap Reference Line Fields.
Remember: Gantt = start + duration (Gantt Bar mark, duration on Size). Bullet = actual vs target in a small space, often used on KPI dashboards.
Part 5 — Organising Data

17. Filters and the Order of Operations

In plain words

A filter keeps only the data you want. Tableau runs filters in a fixed order. The order matters because each step only sees what the earlier steps let through.

Like airport checks: first the ticket check, then security, then the gate. Someone stopped at the first check never reaches the gate. Filters work the same way, top to bottom.

1. Extract filters limit rows saved in the .hyper file 2. Data source filters limit rows for the whole data source 3. Context filters grey pill; makes a smaller working set 4. Dimension filters blue pill: Region, Category, Top N 5. Measure filters green pill: SUM(Sales) at least 1,000 6. Table calculation filters only hide marks; the numbers stay the same FIXED LOD, Top N, sets INCLUDE / EXCLUDE LOD table calcs computed between 3 and 4 between 4 and 5 between 5 and 6 Top runs first. Each step only sees rows the steps above let through.
The filter order of operations (simplified). Trend lines and reference lines come after all of these.

Types of filters

FilterHow to make itExample
Extract filterWhen creating the extract: Edit → Add filterKeep only 2024–2025 in the extract
Data source filterData Source page, top-right → Filters: AddRemove test orders for every sheet
Context filterRight-click a filter pill → Add to Context (turns grey)Top 10 customers within East
Dimension filterDrag a dimension to FiltersRegion = East, West
Measure filterDrag a measure to FiltersSUM(Profit) > 0
Table calc filterFilter on a table calculation fieldShow only the last 6 months, while running totals still count all months

Key points

  • Show Filter: right-click a filter pill → Show Filter. Users get a control (list, drop-down, slider) on the sheet.
  • Dimension filters have tabs: General (pick values), Wildcard (text match), Condition (e.g. Sales > 1000), Top (Top N).
  • Date filters: relative dates (last 3 months), range of dates, or discrete parts (year = 2025).
  • Classic interview trap: You set "Top 10 customers by Sales" and also filter Region = East. You get fewer than 10 rows! Why? Top N runs before the Region filter. Fix: add Region to context.
  • Filters can apply to one sheet, several sheets, or all sheets using the same data source (right-click → Apply to Worksheets).
  • "Only relevant values" on a filter control shows only values allowed by other filters. It is handy but slower.
Remember: Extract → Data Source → Context → Dimension → Measure → Table Calc. FIXED LOD runs before dimension filters, so dimension filters don't change it (context filters do).

18. Sets, Groups and Bins

In plain words

A group combines several values into one, like "East + South = Eastern Zone". A set splits data into two parts: IN the set or OUT of it. A bin cuts a number into equal ranges.

A group is like putting several kids into one team. A set is like a VIP list: each guest is either on the list or not. Bins are like age brackets: 18–25, 26–35, and so on.

Groups

  1. Right-click Sub-Category → Create → Group.
  2. Select "Phones" and "Accessories" → click Group. Name it "Mobile".
  3. Tick "Include Other" to put everything else in one "Other" group.
  • A new field appears with a paperclip icon. You can also select marks in a chart and click the paperclip to group them.
  • Groups are good for fixing spelling variants: "Bengaluru", "Bangalore" → one value.

Sets

  • Fixed set: you pick members by hand. It doesn't change when data changes.
  • Dynamic set: built from a condition (e.g. SUM(Sales) > 5000) or a Top N rule (top 10 customers by sales). It updates when data changes.
  • Use a set on Color to see "Top customers vs everyone else", or on Filters to show only IN members.
  • Combined set: join two sets on the same dimension (all members, shared members, or except shared).
  • Set controls let users add or remove members from a drop-down. Set actions change set members by clicking a chart (see Dashboard Actions).
  1. Right-click Customer → Create → Set.
  2. Go to the Top tab → By field: Top 10 by Sales Sum.
  3. Drag the new set to Color. You see IN (top 10) vs OUT.

Bins

  • Right-click a measure like Sales → Create → Bins. Choose a bin size (e.g. 100).
  • The bin field is a dimension. Used for histograms or customer age bands.
Remember: group = merge values into one, set = IN / OUT split (fixed or dynamic), bin = equal-sized number ranges.

19. Hierarchies and Sorting

In plain words

A hierarchy is a drill-down path from big to small, like Country → State → City. Sorting sets the order in which items appear.

A hierarchy is like a postal address read from the top: country, then state, then city, then street. You zoom in one level at a time.

Hierarchies: how to make one

  1. In the data pane, drag State on top of Country. Name the hierarchy "Location".
  2. Drag City under State in the hierarchy.
  3. Drag "Country" to a shelf. A small + icon appears on the pill. Click it to drill down to State; click − to roll up.
  • Dates have a built-in hierarchy: Year → Quarter → Month → Day.
  • Common example: Category → Sub-Category → Product Name.

Sorting

  • Quick sort: click the sort icon on an axis or the toolbar.
  • Field sort: right-click a dimension pill → Sort. Options: Data source order, Alphabetic, Field (by another measure, e.g. by SUM(Sales)), Manual (drag into your own order), Nested.
  • Nested sort sorts inside each group. Example: sub-categories sorted by sales within each category.
  • Manual sort is "frozen": it won't change when data changes. Sorting by a field is "computed" and updates with the data.
Remember: hierarchies give drill-down with + and −. Sort by a measure (computed) so the order stays right when data changes.
Part 6 — Calculations

20. Calculated Fields

In plain words

A calculated field is a new column you create with a formula. It works like an Excel formula, but for the whole column at once.

Your data has price and quantity, but not the bill amount. A calculated field is like writing a new column on the sheet: "Amount = Price × Quantity".

How to create one

  1. Menu Analysis → Create Calculated Field (or right-click in the data pane → Create → Calculated Field).
  2. Give it a name, like Profit Ratio.
  3. Type the formula. Field names go in square brackets: [Sales].
  4. The bottom of the editor says "The calculation is valid" or shows the error. Click OK.

Basic syntax

// Comments start with two slashes
[Sales] - [Profit]                      // row-level math

// Ratio: aggregate FIRST, then divide
SUM([Profit]) / SUM([Sales])            // correct profit ratio

// IF ... THEN ... ELSEIF ... ELSE ... END
IF [Profit] > 0 THEN "Profitable"
ELSEIF [Profit] = 0 THEN "Break-even"
ELSE "Loss"
END

// CASE: compare one field to fixed values
CASE [Region]
    WHEN "East" THEN "Zone A"
    WHEN "West" THEN "Zone B"
    ELSE "Zone C"
END

// IIF: short IF (test, then, else)
IIF([Sales] >= 1000, "Big order", "Small order")

// Handling nulls (empty values)
ZN(SUM([Sales]))                        // null becomes 0
IFNULL([Discount], 0)                   // if null, use 0
ISNULL([Ship Date])                     // TRUE if empty

// Logic
[Region] = "East" AND [Profit] < 0       // TRUE or FALSE

Key points

  • Calculations can be row-level (run on every row, like [Sales] - [Profit]) or aggregate (run on groups, like SUM([Sales])).
  • You can't mix them in one expression. [Sales] / SUM([Sales]) gives the error "Cannot mix aggregate and non-aggregate arguments". Fix: wrap both, or use an LOD.
  • Why SUM([Profit]) / SUM([Sales]) and not [Profit] / [Sales]? The second makes a ratio per row, and then Tableau sums those ratios. Adding percentages gives nonsense.
  • Strings use double or single quotes. Every IF and CASE needs an END.
  • CASE is often faster and cleaner than many ELSEIFs when checking one field against fixed values.
  • Calculated fields show an = sign next to their icon in the data pane.
Remember: for ratios, aggregate first: SUM([Profit]) / SUM([Sales]). And never mix aggregate and row-level parts in one formula.

21. String and Date Functions

In plain words

String functions work on text: cut it, join it, change its case. Date functions work on dates: take the year, round to the month, count days between two dates.

String functions are like scissors and glue for words. Date functions are like a calendar that can count days for you.

String functions

LEFT([Order ID], 2)                      // "CA"
RIGHT([Order ID], 4)                     // "1001"
MID([Order ID], 4, 2)                    // "10"  (start at position 4, take 2)
LEN([Customer])                          // number of characters
UPPER([Region])                          // "EAST"
TRIM([Customer])                         // remove spaces at both ends
CONTAINS([Product], "Chair")             // TRUE / FALSE
REPLACE([Region], "Central", "Middle")   // swap text
SPLIT([Customer], " ", 1)                // "Asha"  (first part before a space)
[Region] + " - " + [Category]            // join text: "East - Furniture"
STR([Sales]) + " INR"                    // turn a number into text first

Date functions

// Example: [Order Date] = 2025-02-14, [Ship Date] = 2025-02-16

DATEPART('year', [Order Date])           // 2025       (a number)
DATEPART('month', [Order Date])          // 2          (a number)
DATENAME('month', [Order Date])          // "February" (text)
DATETRUNC('month', [Order Date])         // 2025-02-01 (date, rounded down)
DATEDIFF('day', [Order Date], [Ship Date])   // 2      (days between)
DATEADD('month', 3, [Order Date])        // 2025-05-14
YEAR([Order Date])                       // 2025 (shortcut for DATEPART year)
TODAY()                                  // today's date
NOW()                                    // date and time now
MAKEDATE(2025, 1, 1)                     // builds a date
DATEPARSE('dd/MM/yyyy', [Date Text])     // turn text into a date

Key points

  • DATEPART returns a number. DATENAME returns text. DATETRUNC returns a date.
  • Date parts are written in quotes: 'year', 'quarter', 'month', 'week', 'day', 'hour'.
  • DATEDIFF order is (part, start, end). If end is earlier than start, the result is negative.
  • Year-to-date example: [Order Date] <= TODAY() AND YEAR([Order Date]) = YEAR(TODAY()).
  • A text column like "14/02/2025" is not a date yet. Change its type (click the Abc icon → Date) or use DATEPARSE.
Remember: DATEPART = number, DATENAME = text, DATETRUNC = date rounded down, DATEDIFF = gap between two dates.

22. LOD Expressions (FIXED, INCLUDE, EXCLUDE)

In plain words

Normally, a calculation follows the dimensions in the chart. An LOD expression (Level of Detail) lets you choose a different level for one calculation, without changing the chart.

You are looking at sales by city. Your boss asks, "What percent of its state's sales is each city?" You need the state total while still looking at cities. An LOD gets you that state total.

coarser (fewer, bigger groups) All data (one number) Region Region + Category = the view Region + Category + Customer Each row of data finer (more, smaller groups) EXCLUDE [Category] drops a field → coarser INCLUDE [Customer] adds a field → finer FIXED names its own level and ignores the view.
INCLUDE and EXCLUDE move up or down from the chart's level. FIXED jumps straight to the level you name.

Syntax

{ FIXED [dimension] : AGG([measure]) }
{ INCLUDE [dimension] : AGG([measure]) }
{ EXCLUDE [dimension] : AGG([measure]) }
{ SUM([Sales]) }        // no keyword = whole table (same as FIXED with no dimension)

Simple examples

// FIXED: each customer's first order date (cohort analysis)
{ FIXED [Customer] : MIN([Order Date]) }

// FIXED: sales per region, whatever the chart shows
{ FIXED [Region] : SUM([Sales]) }

// Percent of region: each category's share of its region's total
SUM([Sales]) / MIN({ FIXED [Region] : SUM([Sales]) })

// INCLUDE: average sales per customer, shown by Region
//   view = Region; first sum per customer, then AVG on the shelf
AVG({ INCLUDE [Customer] : SUM([Sales]) })

// EXCLUDE: region total next to each category in a Region + Category chart
{ EXCLUDE [Category] : SUM([Sales]) }

Why MIN() around the FIXED part? A FIXED result is copied onto every row of that region. SUM() would add those copies together and give a number that is too big. MIN() (or MAX() / AVG()) just picks the one region total.

Key points

  • FIXED ignores the view's dimensions. It is computed before dimension filters, so normal filters don't change it. Context filters and data source filters do.
  • INCLUDE and EXCLUDE are relative to the view and are computed after dimension filters.
  • FIXED results can be used as dimensions (e.g. "first order year" for cohorts). INCLUDE/EXCLUDE results are measures.
  • Common uses: customer first purchase date, percent of total, compare each item to its group's average, count customers by number of orders.
  • Count customers by order count: { FIXED [Customer] : COUNTD([Order ID]) }, then drag it to Columns as a dimension and COUNTD([Customer]) to Rows.
Remember: FIXED = "use exactly this level". INCLUDE = "go finer". EXCLUDE = "go coarser". FIXED runs before dimension filters; add a filter to context if it must affect FIXED.

23. Table Calculations

In plain words

A table calculation runs on the numbers already in the chart, not on the raw data. It looks across the marks: running totals, ranks, percent of total, change from last month.

It is like working with a printed report. You add a new column in pen: "running total so far", using only the numbers you can see on the page.

Quick table calculations (the easy way)

  1. Build a chart: MONTH(Order Date) on Columns, SUM(Sales) on Rows.
  2. Right-click the SUM(Sales) pill → Quick Table Calculation.
  3. Pick one: Running Total, Difference, Percent Difference, Percent of Total, Rank, Percentile, Moving Average, YTD Total, Compound Growth Rate, Year over Year Growth, YTD Growth.
  4. A small triangle (Δ) appears on the pill. It means "table calculation".

Worked example

MonthSUM(Sales)Running totalDifference% of totalRank
Jan17001700—59%1
Feb8902590−81031%2
Mar3002890−59010%3

Writing them yourself

RUNNING_SUM(SUM([Sales]))                    // running total
SUM([Sales]) / TOTAL(SUM([Sales]))           // percent of total
RANK(SUM([Sales]))                           // 1 = highest (descending by default)
SUM([Sales]) - LOOKUP(SUM([Sales]), -1)      // difference from previous mark
(SUM([Sales]) - LOOKUP(SUM([Sales]), -1))
    / ABS(LOOKUP(SUM([Sales]), -1))          // percent change
WINDOW_AVG(SUM([Sales]), -2, 0)              // 3-month moving average (2 back + current)
WINDOW_SUM(SUM([Sales]))                     // total of all marks in the window
INDEX()                                      // 1, 2, 3 ... position of each mark
FIRST()  /  LAST()                           // offset from the first / last mark

Compute Using (direction) — the simple version

  • A table calc needs to know which way to move through the marks. Right-click the pill → Compute Using.
  • Table (across) = left to right. Table (down) = top to bottom. Pane = inside each pane only. Cell = each cell alone.
  • Specific Dimensions: you tick which dimensions to move along.
  • Addressing = the dimensions it moves along (e.g. Month). Partitioning = the dimensions that make separate groups where it restarts (e.g. Region). Example: running total along Month, restarting for each Region.
  • Table calcs run late (after measure filters). So filtering a table calc only hides marks; it does not change results.
Remember: table calcs work on the aggregated numbers in the view. Always check Compute Using: wrong direction = wrong answer.

24. Parameters

In plain words

A parameter is a single value the user can change, like a number, a date or a word from a list. On its own it does nothing. You plug it into calculations, filters or reference lines.

A parameter is like a volume knob. The knob alone makes no sound. But connect it to a speaker (a calculation), and turning it changes what you hear.

Example 1: Top N with a slider

  1. Right-click in the data pane → Create Parameter. Name: Top N. Data type: Integer. Allowable values: Range 1 to 20. Current value: 10.
  2. Right-click the parameter → Show Parameter. A slider appears.
  3. Drag Customer to Filters → Top tab → By field: Top Top N by SUM(Sales).
  4. Now moving the slider changes how many customers are shown.

Example 2: "Choose a measure"

  1. Create a parameter Choose Measure. Data type: String. Allowable values: List → add "Sales", "Profit", "Quantity".
  2. Create a calculated field Selected Measure:
CASE [Choose Measure]
    WHEN "Sales"    THEN SUM([Sales])
    WHEN "Profit"   THEN SUM([Profit])
    WHEN "Quantity" THEN SUM([Quantity])
END
  1. Put Selected Measure on Rows and Category on Columns.
  2. Show the parameter control. Users pick a measure and the chart changes.
  3. Tip: put the parameter in the title, like "<Choose Measure> by Category", using Insert in the title editor.

Key points

  • Allowable values: All (type anything), List (fixed choices), Range (min, max, step).
  • Parameters are global: one parameter can be used in any sheet of the workbook, even across data sources.
  • Since 2020.1, a list parameter can refresh its values from a field when the workbook opens ("dynamic parameter").
  • Parameter actions let users set a parameter by clicking on a chart.
  • Filter vs parameter: a filter is tied to one field. A parameter is one free value you can use anywhere (in calcs, Top N, reference lines, bins).
Remember: parameter = a user-controlled input value. It does nothing until a calculation, filter or reference line uses it.
Part 7 — Dashboards & Stories

25. Dashboards and Layout

In plain words

A dashboard puts several sheets, filters and text on one screen. Layout containers are invisible boxes that keep things lined up in rows or columns.

Containers are like shelves in a cupboard. A horizontal shelf holds things side by side. A vertical shelf stack holds things one above the other. Move a shelf, and everything on it moves together.

Title (text object) Horizontal container Sales KPI Profit KPI Orders KPI Vertical container Map: Sales by State Line: Sales by Month Vertical container Region filter Category filter Date range filter Floating legend sits on top Tiled items snap into containers. Floating items sit on top, at a fixed spot.
A typical layout: title, a row of KPI cards, main charts on the left, filters on the right. Dashed boxes are layout containers.

How to build a dashboard

  1. Click New Dashboard (bottom tab bar).
  2. Set Size on the left: Fixed (e.g. 1200 × 800; looks the same everywhere), Automatic (fits any screen, may squash), or Range (min and max).
  3. Drag a Horizontal container from Objects to the top. Drag KPI sheets into it.
  4. Drag sheets onto the canvas below. Grey shading shows where they will drop.
  5. Use a sheet's drop-down → Use as Filter (funnel icon) to make clicks on it filter the others.
  6. Add a Text object for the title. Use Distribute Contents Evenly on a container to make items equal width.

Key points

  • Tiled = items snap into a grid and never overlap. This is the default and the safest.
  • Floating = items sit on top at an exact position and size. Good for legends, logos, small notes. Hold Shift while dragging to float.
  • Objects you can add: Horizontal, Vertical, Text, Image, Web Page, Blank, Navigation (button to another sheet), Download (PDF, image, crosstab), Extension.
  • Device layouts: click Device Preview to create Desktop, Tablet and Phone layouts. The phone layout can show fewer charts, stacked vertically.
  • Good design: most important number top-left, 3–5 charts max, consistent colours, clear titles that say the message.
  • The Item hierarchy in the Layout tab shows how containers are nested. Use it to select hard-to-click containers.
Remember: plan with containers first, then drop sheets in. Tiled for the main grid, floating only for small extras.

26. Dashboard Actions

In plain words

Actions make a dashboard interactive. When a user clicks or hovers on one chart, something happens: other charts filter, highlight, or a web page opens.

Actions are like light switches wired to different lamps. Flip a switch on the map (click East) and the lamps in the other charts change.

ActionWhat happensExample
FilterClicking a mark filters other sheetsClick "East" on the map; the line chart shows only East
HighlightMatching marks stay bright, others fadeHover "Furniture"; it lights up in every chart
Go to URLOpens a web page, can pass field valuesClick a product; open its page on the website
Go to SheetJumps to another sheet or dashboardClick a KPI; go to a detail dashboard
Change ParameterSets a parameter's value from the clickClick a region; a reference line shows that region's average
Change Set ValuesAdds or replaces set members from the clickClick categories to expand them (drill-down in place)

How to add a filter action

  1. On the dashboard, menu Dashboard → Actions → Add Action → Filter.
  2. Source sheet: the map. Target sheets: the line chart and the table.
  3. Run action on: Hover, Select (click), or Menu (a link in the tooltip).
  4. Clearing the selection will: Show all values / Keep filtered values / Exclude all values.
  5. Click OK and test by clicking the map.
Remember: six action types: Filter, Highlight, URL, Go to Sheet, Parameter, Set. Each runs on Hover, Select or Menu.

27. Stories, Formatting and Tooltips

In plain words

A story is a set of slides called story points. Each one shows a sheet or dashboard with a caption. Formatting makes charts clean and readable. A tooltip is the pop-up box when you hover on a mark.

A story is like a guided museum tour. Instead of letting visitors wander, you walk them from painting to painting and explain each one.

Stories: how to build

  1. Click New Story. Drag a sheet or dashboard into the story area.
  2. Write a short caption in the box at the top, like "West sales grew 30% in Q2".
  3. Click New Blank Point or Duplicate for the next point.
  4. You can filter or highlight differently in each point, then click Update to save it.

Formatting tips

  • Menu Format → Workbook sets fonts and lines for everything at once.
  • Right-click any part → Format to change only that part (axis, borders, shading).
  • Number format: right-click a measure → Default Properties → Number Format (currency, %, decimals, K/M units).
  • Remove clutter: hide gridlines, use fewer colours, label directly instead of using legends.
  • Edit titles to say the insight, not just the field names.

Tooltips and Viz in Tooltip

  • Click Tooltip on the Marks card to edit the text. Insert fields with the Insert menu, like <SUM(Sales)>.
  • Drag extra fields to the Tooltip shelf to show them on hover without changing the chart.
  • Viz in Tooltip: show a small chart inside the tooltip. In the tooltip editor, click Insert → Sheets → choose a sheet.
<Sheet name="Monthly Trend" maxwidth="300" maxheight="300" filter="<All Fields>">

Now hovering over "East" shows the monthly trend for East only. The filter part passes the hovered mark's values to the small chart.

Remember: a story walks the viewer through findings in order. Viz in Tooltip adds detail on hover without taking space on the dashboard.

28. Trend Lines, Reference Lines and Forecasting

In plain words

The Analytics pane adds helpful lines to a chart: averages, targets, trends and predictions. You just drag an item onto the chart.

It is like drawing on a printed chart with a ruler: a line for the average, a line for the target, and a dotted line showing where things are heading.

What is in the Analytics pane

  • Constant Line: a fixed value, e.g. a target of 1,000.
  • Average Line, Median with Quartiles, Totals.
  • Reference Line: line at a value (average, median, min, max, constant or a parameter). Can be per table, pane or cell.
  • Reference Band: shaded area between two values. Distribution Band: e.g. 60%–80% of average.
  • Trend Line: best-fit line. Models: linear, logarithmic, exponential, polynomial, power. Hover to see the equation, R-squared (how well the line fits, 0 to 1) and p-value (lower than 0.05 usually means the trend is real, not chance).
  • Forecast: predicts future values using exponential smoothing. Needs a date on the view and enough history.
  • Cluster: groups similar marks automatically (k-means).
  • Box Plot: shows median, quartiles and outliers.

How to add a forecast

  1. Build a line chart: continuous MONTH(Order Date) on Columns, SUM(Sales) on Rows.
  2. Analytics pane → drag Forecast onto the view.
  3. The forecast appears in a lighter colour with a shaded band. The band is the prediction interval (95% by default): the likely range.
  4. Right-click → Forecast → Forecast Options to set how far ahead (e.g. 6 months) and the model.
Remember: reference lines show targets and averages, trend lines show the direction (check R-squared and p-value), forecasts predict the future with exponential smoothing.
Part 8 — Sharing & Practice

29. Performance Tips

In plain words

A slow dashboard loses users. Most slowness comes from too much data, too many marks, or too many filters. Fix the biggest problem first.

A slow dashboard is like a heavy backpack. Take out what you don't need (unused columns, extra rows) and the walk gets much easier.

Key points

  • Use extracts for slow sources. Use extract filters and Hide All Unused Fields to make them small.
  • Aggregate the extract to visible dimensions (e.g. monthly, not every row) if you don't need row detail.
  • Fewer marks: a table with 100,000 cells is slow and nobody reads it. Show summaries; drill into details with actions.
  • Fewer quick filters, especially with "Only relevant values" or long lists. Use filter actions or parameters instead.
  • Fewer sheets per dashboard. Each sheet is at least one query.
  • Calculations: numbers and Booleans are faster than strings. Prefer CASE or IN over long IF … OR … chains. Move heavy logic to the database or Prep.
  • Use relationships rather than big joins when tables are at different levels.
  • Use context filters to shrink data early for slow Top N or FIXED calcs (but not too many).
  • Use fixed dashboard size so results can be cached and reused.

How to find the slow part

  1. Menu Help → Settings and Performance → Start Performance Recording.
  2. Use the dashboard: click filters, change sheets.
  3. Stop the recording. Tableau opens a workbook showing which events (queries, layout, rendering) took the longest.
  4. Also try Workbook Optimizer (Server menu → Run Optimizer). It checks your workbook against best-practice rules.
Remember: extract + hide unused fields + fewer marks + fewer filters. Measure with the Performance Recorder before guessing.

30. Publishing and Sharing

In plain words

Publishing means uploading your workbook or data source to Tableau Server, Tableau Cloud or Tableau Public, so others can open it in a browser.

Desktop is your kitchen. Publishing is putting the dish on the restaurant counter. Permissions decide who may taste it and who may change the recipe.

How to publish (Server or Cloud)

  1. Menu Server → Sign In to your Server or Cloud site.
  2. Server → Publish Workbook. Pick a project (a folder) and a name.
  3. Set permissions (or keep the project's defaults).
  4. Choose how data is published: embedded in the workbook, or as a separate published data source others can reuse.
  5. Set authentication for the data (embed password, or prompt users).
  6. Click Publish. For Tableau Public: File → Save to Tableau Public.

Key points

  • Site = a separate space on a server for one team or company. Project = a folder that holds workbooks and data sources.
  • Site roles: Creator, Explorer, Viewer (plus admin roles). They set the maximum a user can do.
  • Permissions are set on projects, workbooks and data sources: view, filter, download, web edit, and so on. Best practice: give permissions to groups, not single users, at the project level.
  • Refresh schedules: published extracts refresh on a schedule (e.g. daily at 6 am). Full or incremental.
  • Tableau Bridge: lets Tableau Cloud refresh from data inside your company network (on-premises databases).
  • Subscriptions email a snapshot on a schedule. Data-driven alerts email you when a number crosses a threshold.
  • Row-level security (RLS): each user sees only their own rows. Simple way: a calculated filter like [Sales Rep Email] = USERNAME(), or ISMEMBEROF("East Team").
  • Tableau Pulse (Cloud): define a metric once (e.g. weekly Sales); users follow it and get AI insight digests.
  • Tableau Public is free but everything is public. Never upload private or company data.
Remember: publish to a project, give permissions to groups, schedule extract refreshes, and use USERNAME() for row-level security.

31. Tableau vs Power BI

In plain words

Tableau and Microsoft Power BI are the two most popular BI (business intelligence) tools. Both build dashboards. They differ in price, style and ecosystem.

They are like two good car brands. Both get you there. One is loved for its design and feel (Tableau); the other is cheaper and fits perfectly with your other Microsoft gadgets (Power BI).

TableauPower BI
OwnerSalesforceMicrosoft
StrengthFlexible, beautiful visuals; great for exploring dataLow cost; deep Excel, Teams, Azure and Fabric integration
Calculation languageCalculated fields, LOD, table calcsDAX (measures) and Power Query M (data prep)
Data prepTableau Prep BuilderPower Query (built in)
Data modellingRelationships, joins, blendingStar schema model with relationships (strong modelling)
Authoring appTableau Desktop (Windows and Mac)Power BI Desktop (Windows only)
SharingServer, Cloud, PublicPower BI Service (in Microsoft Fabric), Report Server
PriceHigher per userUsually lower; Pro included in some Microsoft 365 plans
AI featuresTableau Agent, PulseCopilot in Power BI
Learning curveEasy start; LODs and table calcs take practiceEasy start; DAX takes practice
Remember: if asked "which is better?", say: "Both are strong. Tableau is great for flexible, visual exploration. Power BI is cheaper and fits Microsoft companies. The concepts (dimensions, measures, filters, dashboards) carry over."

32. Build a Sales Dashboard (End to End)

In plain words

This puts everything together. The goal: a one-page sales dashboard for a manager. It answers "How are we doing? Where? Which products? What is the trend?"

Like cooking a full meal: collect ingredients (data), prepare them (clean), cook each dish (sheets), then serve them together on one plate (dashboard).

Step 1 — Connect and prepare

  1. Connect to Superstore.xlsx. Drag Orders to the canvas. Relate Returns on Order ID and People on Region.
  2. Check data types (dates are dates, Postal Code is a string dimension). Set State geographic role.
  3. Choose Extract for speed.

Step 2 — Create calculations

// Profit Ratio
SUM([Profit]) / SUM([Sales])

// Is Returned?
IF ISNULL([Returned]) THEN "No" ELSE "Yes" END

// Sales Current Year (for KPI)
IF YEAR([Order Date]) = { MAX(YEAR([Order Date])) } THEN [Sales] END

// Sales Previous Year
IF YEAR([Order Date]) = { MAX(YEAR([Order Date])) } - 1 THEN [Sales] END

// Year-over-year growth
(SUM([Sales Current Year]) - SUM([Sales Previous Year]))
    / SUM([Sales Previous Year])

Step 3 — Build the sheets

  1. KPI cards: one sheet each for Sales, Profit, Profit Ratio, Orders (COUNTD([Order ID])). Put the measure on Text, make it big. Add YoY growth below it.
  2. Map: State, filled map, Color = Profit Ratio (diverging red–blue).
  3. Trend: continuous Month of Order Date vs Sales, with a Forecast or an average reference line.
  4. Category bars: Sub-Category by Sales, sorted, Color = Profit (losses show red).
  5. Top 10 customers: a Top N filter driven by a Top N parameter.

Step 4 — Assemble the dashboard

  1. New dashboard, Fixed size 1200 × 800.
  2. Title text at the top. Horizontal container with the 4 KPI cards.
  3. Map and trend in a vertical container on the left; category bars and top customers on the right.
  4. Add filters: Region, Category, and a relative date filter. Apply them to all sheets using this data source.

Step 5 — Make it interactive and share

  1. Map → Use as Filter (filter action): click a state to filter everything.
  2. Highlight action on Category. Viz in Tooltip on the map showing the monthly trend.
  3. Add a Phone layout. Run the Performance Recorder.
  4. Publish to Tableau Cloud (or Public for a portfolio) and schedule a daily extract refresh.
Remember: in an interview, explain a dashboard as: business question → data and cleaning → key calculations → chart choices → interactivity → performance → sharing.
Revision

Quick Revision

The most-asked Tableau questions, with short and simple answers. Say these in your own words.

Basics

  • What is Tableau? A drag-and-drop tool that connects to data and makes interactive charts and dashboards.
  • Name the Tableau products. Desktop (build), Prep (clean), Server and Cloud (share inside a company), Public (free, public), Pulse (metrics with AI insights).
  • Server vs Cloud? Server: your company hosts it. Cloud: Salesforce hosts it.
  • .twb vs .twbx? .twb = design only. .twbx = design plus data, packed into one file.
  • What is a .hyper file? An extract: a fast, compressed snapshot of data.
  • Live vs extract? Live = always fresh, depends on database speed. Extract = fast snapshot, refreshed on a schedule.
  • Worksheet vs dashboard vs story? One chart; many charts on one screen; a sequence of slides.

Data

  • Join vs union? Join adds columns (side by side). Union adds rows (stacked).
  • Join vs relationship? Join merges tables early into one; rows can duplicate. Relationship keeps tables separate and joins per chart at the right level.
  • What is data blending? Combining two data sources in one sheet, on a linking field. Works like a left join after aggregation; primary vs secondary source.
  • What does Data Interpreter do? Cleans messy Excel/CSV: finds headers, removes titles and blank rows.
  • What is pivot? Turning many columns (Jan, Feb, Mar) into rows (Month, Value).

Core ideas

  • Dimension vs measure? Dimension = groups and labels. Measure = numbers you aggregate.
  • Discrete vs continuous? Discrete (blue) = headers. Continuous (green) = axis.
  • COUNT vs COUNTD? COUNT counts rows. COUNTD counts unique values.
  • What does ATTR do? Shows the value if it is the same for all rows in the group, otherwise *.
  • What is the Marks card? It controls how marks look: Color, Size, Label, Detail, Tooltip, Shape, Path.

Filters & organising

  • Filter order of operations? Extract → Data source → Context → Dimension → Measure → Table calc.
  • What is a context filter? A filter that runs before others, so Top N and FIXED respect it. Its pill is grey.
  • Group vs set? Group merges values into one. Set splits data into IN and OUT.
  • Fixed vs dynamic set? Fixed = hand-picked members. Dynamic = based on a condition or Top N, updates with data.
  • What is a bin? Equal-sized ranges of a number, used for histograms.

Calculations

  • Why SUM([Profit])/SUM([Sales]) and not [Profit]/[Sales]? The second sums row ratios, which is wrong.
  • "Cannot mix aggregate and non-aggregate" error? Wrap the row-level part in an aggregate, or use an LOD.
  • DATEPART vs DATETRUNC? DATEPART returns a number (2). DATETRUNC returns a date rounded down (2025-02-01).
  • ZN vs IFNULL? ZN turns null into 0. IFNULL turns null into any value you give.
  • FIXED vs INCLUDE vs EXCLUDE? FIXED = exact level you name. INCLUDE = finer than the view. EXCLUDE = coarser than the view.
  • LOD vs table calc? LOD runs in the database on raw data. Table calc runs on the numbers already in the view.
  • What is Compute Using? The direction a table calc moves through the marks (across, down, pane, specific dimensions).
  • Parameter vs filter? A filter is tied to a field. A parameter is a free user input used in calcs, filters or lines.

Dashboards & sharing

  • Tiled vs floating? Tiled snaps into a grid without overlap. Floating sits on top at an exact position.
  • Dashboard action types? Filter, Highlight, Go to URL, Go to Sheet, Change Parameter, Change Set Values.
  • What is Viz in Tooltip? A small chart shown inside a tooltip on hover.
  • How do you speed up a slow dashboard? Extract, hide unused fields, fewer marks, fewer filters, fewer sheets; check with the Performance Recorder.
  • How do you do row-level security? A user filter or calculated filter like [Rep Email] = USERNAME().
  • What is Tableau Pulse? A Tableau Cloud feature that tracks metrics and sends AI-written insights.
Remember: give the simple answer first, then a small example with Superstore data. That beats a long textbook definition.

Learning Path

Go step by step. Download free Tableau Public and the Superstore sample data, and build something at each step.

  1. The interface — data pane, shelves, Marks card, Show Me. Make 5 basic charts.
  2. Core ideas — dimensions vs measures, discrete vs continuous, aggregation.
  3. Connecting data — Excel and CSV, live vs extract, relationships, joins, unions, pivot.
  4. More charts — maps, scatter, dual axis, histogram, treemap, Gantt, bullet.
  5. Filters — all filter types and the order of operations. Practise the Top N + context trap.
  6. Calculations — IF/CASE, date functions, then table calcs, then LOD expressions.
  7. Parameters — build the "choose a measure" and "Top N" examples.
  8. Dashboards — containers, actions, device layouts, a story.
  9. Portfolio — publish 2–3 dashboards on Tableau Public (sales, HR, or a public dataset) and add the link to your resume.
  10. Then — learn basic SQL too. Most analyst roles ask for SQL plus one BI tool.
Remember: for every dashboard, be ready to say what business question it answers, and one insight it shows.