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.
1. What Tableau Is
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 ID | Order Date | Ship Date | Region | Category | Customer | Sales | Profit |
|---|---|---|---|---|---|---|---|
| CA-1001 | 2025-01-05 | 2025-01-08 | East | Furniture | Asha Rao | 500 | 80 |
| CA-1002 | 2025-01-19 | 2025-01-21 | West | Technology | Ravi Kumar | 1200 | 300 |
| CA-1003 | 2025-02-02 | 2025-02-07 | South | Office Supplies | Meera Iyer | 90 | -10 |
| CA-1004 | 2025-02-14 | 2025-02-16 | East | Technology | Asha Rao | 800 | 150 |
| CA-1005 | 2025-03-03 | 2025-03-09 | Central | Furniture | John Das | 300 | -40 |
2. The Tableau Product Family
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).
| Product | What it does | Simple example |
|---|---|---|
| Tableau Desktop | The main app on your computer. You build charts and dashboards here. | You make a sales dashboard. |
| Tableau Prep Builder | Cleans 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 Server | Your 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 Cloud | The same idea as Server, but Tableau (Salesforce) hosts it for you. Old name: Tableau Online. | A startup shares dashboards without managing servers. |
| Tableau Public | Free. Anyone can see what you publish. Good for learning and portfolios. | You share a project on your resume. |
| Tableau Pulse | Part 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.
3. The Tableau Interface
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.
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).
4. Workbooks, Worksheets, Dashboards and Stories
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.
| Item | What it holds | Used for |
|---|---|---|
| Worksheet | One chart (one "viz") | Building and testing a single view |
| Dashboard | Many worksheets, filters, text, images | Monitoring the business on one screen |
| Story | A 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.
5. Live vs Extract, and File Types
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)
- Open Tableau. On the start page, under Connect, pick the source: Microsoft Excel, Text file (CSV), or a server like MySQL.
- Choose the file (or type the server name, user and password).
- You land on the Data Source page. Drag the sheet or table into the canvas.
- At the top-right, choose Live or Extract.
- Click the Sheet 1 tab to start building charts.
| Live connection | Extract (.hyper) | |
|---|---|---|
| Data freshness | Always up to date | As fresh as the last refresh |
| Speed | Depends on the database speed | Usually fast (Hyper engine is built for this) |
| Works offline? | No | Yes |
| Load on database | Every click sends a query | Only during refresh |
| Good for | Real-time numbers, very fast warehouses | Slow sources, big files, sharing packaged work |
File types you must know
| Extension | What it is |
|---|---|
.twb | Tableau Workbook. Only the design (charts, calculations). No data inside. Small file. |
.twbx | Packaged Workbook. The workbook plus its data (extract or local files). Send this to someone who doesn't have your data. |
.hyper | Extract file. A compressed snapshot of data. (Old format was .tde.) |
.tds | Data Source file. Saves connection details, calculated fields, renames. No data. |
.tdsx | Packaged data source: the .tds plus the extract. |
.tfl / .tflx | Tableau 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.
6. Joins
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 type | Keeps | Rows in result |
|---|---|---|
| Inner | Only rows that match in both tables | CA-1002 |
| Left | All rows from the left table + matches from the right | CA-1001, 1002, 1003 (Returned is null for 1001 and 1003) |
| Right | All rows from the right table + matches from the left | CA-1002, CA-9999 |
| Full outer | Everything from both, matched where possible | CA-1001, 1002, 1003, 9999 |
How to make a join (step by step)
- On the Data Source page, drag Orders to the canvas.
- Double-click the Orders box. This opens the physical layer (the join area).
- Drag Returns next to Orders. A Venn icon (two circles) appears.
- Click the Venn icon. Pick the join type (Inner, Left, Right, Full Outer).
- 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).
7. Relationships and Blending
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.
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.
| Join | Relationship | Blend | |
|---|---|---|---|
| Where | Physical layer (inside a table) | Logical layer (top of Data Source page) | In a worksheet, between two data sources |
| When combined | Before analysis, once | At query time, per chart | After each source is aggregated |
| Join type | You choose | Tableau chooses | Always left (primary → secondary) |
| Duplicate rows? | Possible | No (keeps level of detail) | No |
| Best for | Same-level tables, simple lookups | Default choice for most models | Different sources at different levels, quick one-off |
8. Unions, Data Interpreter, Pivot and Split
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.csvandSales_2025.csv. - Join = adds columns (side by side). Union = adds rows (top to bottom).
- Tableau adds a
Table Name(orSheet) column so you know where each row came from. - Wildcard union = union all files matching a pattern, like
Sales_*.csv.
- Drag the first table to the canvas and double-click it (physical layer).
- Drag the second table under the first until it says "Drag table to union". Drop it.
- 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:
| Region | Jan | Feb | Mar |
|---|---|---|---|
| East | 500 | 800 | 650 |
- On the Data Source page, select the
Jan,Feb,Marcolumns (Ctrl/Cmd-click). - Right-click → Pivot.
- You get two columns:
Pivot Field Names(Jan, Feb, Mar) andPivot Field Values(500, 800, 650). Rename them toMonthandSales.
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.
9. Dimensions vs Measures
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 Codeis 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).
10. Discrete vs Continuous (Blue vs Green)
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.
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).
11. Aggregation
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
12. Bar, Line, Text Table and Highlight Table
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
- Drag
Categoryto Columns. - Drag
Salesto Rows. Tableau draws bars withSUM(Sales). - Click the sort icon in the toolbar to sort high to low.
- Drag
Regionto Color for a stacked bar. DragRegionto Columns instead for side-by-side bars. - Drag
Salesto Label to show numbers on the bars.
Line chart: Sales over time
- Drag
Order Dateto Columns. It showsYEAR(Order Date). - Right-click the pill → choose the green Month (date value, e.g. "May 2025") for a continuous timeline.
- Drag
Salesto Rows. You get a line. - Drag
Categoryto Color for one line per category.
Text table (crosstab)
- Drag
Regionto Rows andCategoryto Columns. - Drag
Salesto Text on the Marks card. - Menu Analysis → Totals → Show Row / Column Grand Totals.
Highlight table
- Build the text table above.
- Drag
Sales(orProfit) to Color. Change mark type to Square. - Now big numbers have darker cells. Use a diverging colour (red–green) for Profit, so losses stand out.
13. Maps and Scatter Plots
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
- Make sure the location field has a geographic role. Right-click
State→ Geographic Role → State/Province. A globe icon appears. - Double-click
State. Tableau addsLatitude (generated)andLongitude (generated)and draws a map. - Symbol map: drag
Salesto Size. Bigger circle = more sales. - Filled map (choropleth): change mark type to Map and drag
Profitto 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
- Drag
Salesto Columns andProfitto Rows. You get just one dot (the grand total). - Drag
Customerto Detail. Now there is one dot per customer. - Drag
Categoryto Color. - Optional: Analytics pane → drag Trend Line onto the view.
14. Heatmap, Treemap, Histogram and Box Plot
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
- Drag
Order Dateto Columns, set it to Month (discrete, blue). - Drag
Order Dateto Rows, set it to Weekday (More → Weekday). - Mark type Square. Drag
Salesto Color. - Dark squares show busy days. (Mark type Density makes a "glow" heatmap for dense scatter or map points.)
Treemap: Sales by Sub-Category
- Drag
Sub-Categoryto Label (or Detail). - Drag
Salesto Size andProfitto Color. Mark type Square. - Big rectangle = big sales. Red = loss. Or select the fields and click Treemap in Show Me.
Histogram: how big are our orders?
- Click
Salesin the data pane, open Show Me, pick Histogram. - Tableau creates a new field
Sales (bin)and putsCNT(Sales)on Rows. - Edit the bin size: right-click
Sales (bin)→ Edit → e.g. size 100. - Result: how many order lines fall in 0–100, 100–200, and so on.
Box plot (box-and-whisker)
- Drag
Categoryto Columns,Salesto Rows. - Drag
Order IDto Detail, so there is one dot per order. Mark type Circle. - 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).
15. Dual-Axis and Combo Charts
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
- Drag
Order Dateto Columns and set it to continuous Month. - Drag
Salesto Rows. DragProfitto Rows too. You now have two charts stacked. - Right-click the
SUM(Profit)pill → Dual Axis. The charts merge. - On the Marks card there is now one tab per measure. Set
SUM(Sales)to Bar andSUM(Profit)to Line. - 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.
16. Gantt and Bullet Charts
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?
- Create a field
Days to Ship:DATEDIFF('day', [Order Date], [Ship Date]). - Drag
Order Dateto Columns (continuous, exact Day). - Drag
Order IDto Rows. - Set mark type to Gantt Bar. Drag
Days to Shipto Size. Each bar starts at the order date and its length is the shipping time.
Bullet chart: Sales vs Target
- You need two measures:
Sales(actual) andTarget. - Select both in the data pane (Ctrl/Cmd-click), plus
Region. In Show Me, click Bullet Graph. - The bar is actual sales. A reference line marks the target. Shaded bands show e.g. 60% and 80% of target.
- If Tableau puts them the wrong way round, right-click the axis → Swap Reference Line Fields.
17. Filters and the Order of Operations
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.
Types of filters
| Filter | How to make it | Example |
|---|---|---|
| Extract filter | When creating the extract: Edit → Add filter | Keep only 2024–2025 in the extract |
| Data source filter | Data Source page, top-right → Filters: Add | Remove test orders for every sheet |
| Context filter | Right-click a filter pill → Add to Context (turns grey) | Top 10 customers within East |
| Dimension filter | Drag a dimension to Filters | Region = East, West |
| Measure filter | Drag a measure to Filters | SUM(Profit) > 0 |
| Table calc filter | Filter on a table calculation field | Show 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.
18. Sets, Groups and Bins
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
- Right-click
Sub-Category→ Create → Group. - Select "Phones" and "Accessories" → click Group. Name it "Mobile".
- 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).
- Right-click
Customer→ Create → Set. - Go to the Top tab → By field: Top 10 by
SalesSum. - 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.
19. Hierarchies and Sorting
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
- In the data pane, drag
Stateon top ofCountry. Name the hierarchy "Location". - Drag
CityunderStatein the hierarchy. - 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.
20. Calculated Fields
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
- Menu Analysis → Create Calculated Field (or right-click in the data pane → Create → Calculated Field).
- Give it a name, like
Profit Ratio. - Type the formula. Field names go in square brackets:
[Sales]. - 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, likeSUM([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
IFandCASEneeds anEND. CASEis often faster and cleaner than manyELSEIFs when checking one field against fixed values.- Calculated fields show an = sign next to their icon in the data pane.
SUM([Profit]) / SUM([Sales]). And never mix aggregate and row-level parts in one formula.21. String and Date Functions
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.
22. LOD Expressions (FIXED, INCLUDE, EXCLUDE)
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.
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 andCOUNTD([Customer])to Rows.
23. Table Calculations
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)
- Build a chart:
MONTH(Order Date)on Columns,SUM(Sales)on Rows. - Right-click the
SUM(Sales)pill → Quick Table Calculation. - 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.
- A small triangle (Δ) appears on the pill. It means "table calculation".
Worked example
| Month | SUM(Sales) | Running total | Difference | % of total | Rank |
|---|---|---|---|---|---|
| Jan | 1700 | 1700 | — | 59% | 1 |
| Feb | 890 | 2590 | −810 | 31% | 2 |
| Mar | 300 | 2890 | −590 | 10% | 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.
24. Parameters
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
- Right-click in the data pane → Create Parameter. Name:
Top N. Data type: Integer. Allowable values: Range 1 to 20. Current value: 10. - Right-click the parameter → Show Parameter. A slider appears.
- Drag
Customerto Filters → Top tab → By field: Top Top N by SUM(Sales). - Now moving the slider changes how many customers are shown.
Example 2: "Choose a measure"
- Create a parameter
Choose Measure. Data type: String. Allowable values: List → add "Sales", "Profit", "Quantity". - 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
- Put
Selected Measureon Rows andCategoryon Columns. - Show the parameter control. Users pick a measure and the chart changes.
- 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).
25. Dashboards and Layout
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.
How to build a dashboard
- Click New Dashboard (bottom tab bar).
- 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).
- Drag a Horizontal container from Objects to the top. Drag KPI sheets into it.
- Drag sheets onto the canvas below. Grey shading shows where they will drop.
- Use a sheet's drop-down → Use as Filter (funnel icon) to make clicks on it filter the others.
- 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.
26. Dashboard Actions
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.
| Action | What happens | Example |
|---|---|---|
| Filter | Clicking a mark filters other sheets | Click "East" on the map; the line chart shows only East |
| Highlight | Matching marks stay bright, others fade | Hover "Furniture"; it lights up in every chart |
| Go to URL | Opens a web page, can pass field values | Click a product; open its page on the website |
| Go to Sheet | Jumps to another sheet or dashboard | Click a KPI; go to a detail dashboard |
| Change Parameter | Sets a parameter's value from the click | Click a region; a reference line shows that region's average |
| Change Set Values | Adds or replaces set members from the click | Click categories to expand them (drill-down in place) |
How to add a filter action
- On the dashboard, menu Dashboard → Actions → Add Action → Filter.
- Source sheet: the map. Target sheets: the line chart and the table.
- Run action on: Hover, Select (click), or Menu (a link in the tooltip).
- Clearing the selection will: Show all values / Keep filtered values / Exclude all values.
- Click OK and test by clicking the map.
27. Stories, Formatting and Tooltips
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
- Click New Story. Drag a sheet or dashboard into the story area.
- Write a short caption in the box at the top, like "West sales grew 30% in Q2".
- Click New Blank Point or Duplicate for the next point.
- 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.
28. Trend Lines, Reference Lines and Forecasting
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
- Build a line chart: continuous
MONTH(Order Date)on Columns,SUM(Sales)on Rows. - Analytics pane → drag Forecast onto the view.
- The forecast appears in a lighter colour with a shaded band. The band is the prediction interval (95% by default): the likely range.
- Right-click → Forecast → Forecast Options to set how far ahead (e.g. 6 months) and the model.
29. Performance Tips
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
CASEorINover longIF … 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
- Menu Help → Settings and Performance → Start Performance Recording.
- Use the dashboard: click filters, change sheets.
- Stop the recording. Tableau opens a workbook showing which events (queries, layout, rendering) took the longest.
- Also try Workbook Optimizer (Server menu → Run Optimizer). It checks your workbook against best-practice rules.
30. Publishing and Sharing
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)
- Menu Server → Sign In to your Server or Cloud site.
- Server → Publish Workbook. Pick a project (a folder) and a name.
- Set permissions (or keep the project's defaults).
- Choose how data is published: embedded in the workbook, or as a separate published data source others can reuse.
- Set authentication for the data (embed password, or prompt users).
- 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(), orISMEMBEROF("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.
31. Tableau vs Power BI
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).
| Tableau | Power BI | |
|---|---|---|
| Owner | Salesforce | Microsoft |
| Strength | Flexible, beautiful visuals; great for exploring data | Low cost; deep Excel, Teams, Azure and Fabric integration |
| Calculation language | Calculated fields, LOD, table calcs | DAX (measures) and Power Query M (data prep) |
| Data prep | Tableau Prep Builder | Power Query (built in) |
| Data modelling | Relationships, joins, blending | Star schema model with relationships (strong modelling) |
| Authoring app | Tableau Desktop (Windows and Mac) | Power BI Desktop (Windows only) |
| Sharing | Server, Cloud, Public | Power BI Service (in Microsoft Fabric), Report Server |
| Price | Higher per user | Usually lower; Pro included in some Microsoft 365 plans |
| AI features | Tableau Agent, Pulse | Copilot in Power BI |
| Learning curve | Easy start; LODs and table calcs take practice | Easy start; DAX takes practice |
32. Build a Sales Dashboard (End to End)
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
- Connect to
Superstore.xlsx. Drag Orders to the canvas. Relate Returns onOrder IDand People onRegion. - Check data types (dates are dates, Postal Code is a string dimension). Set
Stategeographic role. - 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
- 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. - Map: State, filled map, Color = Profit Ratio (diverging red–blue).
- Trend: continuous Month of Order Date vs Sales, with a Forecast or an average reference line.
- Category bars: Sub-Category by Sales, sorted, Color = Profit (losses show red).
- Top 10 customers: a Top N filter driven by a
Top Nparameter.
Step 4 — Assemble the dashboard
- New dashboard, Fixed size 1200 × 800.
- Title text at the top. Horizontal container with the 4 KPI cards.
- Map and trend in a vertical container on the left; category bars and top customers on the right.
- 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
- Map → Use as Filter (filter action): click a state to filter everything.
- Highlight action on Category. Viz in Tooltip on the map showing the monthly trend.
- Add a Phone layout. Run the Performance Recorder.
- Publish to Tableau Cloud (or Public for a portfolio) and schedule a daily extract refresh.
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.
Learning Path
Go step by step. Download free Tableau Public and the Superstore sample data, and build something at each step.
- The interface — data pane, shelves, Marks card, Show Me. Make 5 basic charts.
- Core ideas — dimensions vs measures, discrete vs continuous, aggregation.
- Connecting data — Excel and CSV, live vs extract, relationships, joins, unions, pivot.
- More charts — maps, scatter, dual axis, histogram, treemap, Gantt, bullet.
- Filters — all filter types and the order of operations. Practise the Top N + context trap.
- Calculations — IF/CASE, date functions, then table calcs, then LOD expressions.
- Parameters — build the "choose a measure" and "Top N" examples.
- Dashboards — containers, actions, device layouts, a story.
- Portfolio — publish 2–3 dashboards on Tableau Public (sales, HR, or a public dataset) and add the link to your resume.
- Then — learn basic SQL too. Most analyst roles ask for SQL plus one BI tool.