TDA-C01 Cheatsheet
Tableau Certified Data Analyst
Download free PDFConnect to and transform data
Connections and Tableau files
- **Live connections** query the underlying database; **extracts** store a snapshot in the Hyper engine. Live freshness depends on source updates, connectivity and caching; an extract changes only when refreshed.
- **.hyper** stores extract data. **.twb** stores a workbook definition; **.twbx** packages a workbook with included local resources. **.tds** describes a data source; **.tdsx** packages it with included local data.
- Use the **Text File** connector for delimited files such as CSV and TSV. Use the appropriate database connector for SQL sources; a web API needs a supported connector or integration rather than an assumed connection to any HTML table.
- **Custom SQL** defines the query behind a supported connection. A row restriction such as SELECT * FROM Students WHERE City = 'Berlin' belongs in **WHERE**; grouped restrictions belong in **HAVING**.
Relationships, joins, unions and blends
- **Relationships** connect logical tables while preserving their separate grains. Tableau constructs queries according to fields used in the view; relationship keys stay defined even though query behavior adapts.
- **Joins** combine physical tables before analysis. **Inner** retains matches; **left** retains all left rows; **right** retains all right rows; **full outer** retains rows from both sides, with nulls for unmatched fields.
- **Unions** append rows from similarly structured tables; align field names and types. Joins add columns using matching keys. Check many-to-many matches because repeated rows can inflate sums.
- **Blending** combines aggregated results from separate data sources using linking fields. The primary source defines the view domain, with left-join-like behavior; a blend is not a row-level physical join.
Clean and standardize in Tableau Prep
- Build a flow from **Input** through cleaning and transformation steps to **Output**. Check data types, nulls, duplicate keys and field profiles before combining sources. **Data Interpreter** can identify tables and remove extraneous spreadsheet layout.
- **Group Values** can consolidate spelling variants using common characters, pronunciation, spelling or manual choices. Review suggested groups so distinct entities are not merged accidentally.
- **Data roles** describe valid semantic values; a custom role can validate a field against a published role. Assigning a role identifies validity issues rather than guaranteeing that all values have been repaired.
- Split delimiter-separated text, trim whitespace and replace unwanted characters before matching names or IDs. For cross-source preparation, standardize join-key types and formats before the join step.
Reshape, aggregate and fill gaps
- **Columns-to-rows pivot** turns repeated fields, such as monthly columns, into a name/value structure. A wildcard pivot can include new matching columns. **Rows-to-columns pivot** spreads member values into separate fields.
- **Aggregate** groups by chosen dimensions and summarizes measures. To roll daily or monthly data into years, create the year grouping and aggregate at that grain; a pivot alone does not perform the annual rollup.
- **New Rows** can generate missing date or numeric values over a defined range. Generated dates do not imply observed activity; explicitly decide how measures for missing dates should be represented.
- **Input unions** can collect matching files using a filename pattern. In a join step, inspect matched and unmatched records; **left-only** retains left records without a right-side match.
Outputs and reusable data sources
- Output prepared data to a **.hyper file** for a local Desktop handoff or to a **published data source** for shared Server or Cloud use. A **.tfl** defines a Prep flow; it is not the prepared output table.
- **Publishing an output data source** shares the resulting data. **Publishing a flow** shares transformation logic for managed execution; publishing alone does not make future runs occur automatically.
- For regularly updated goals or budgets, publish a reusable source and arrange refresh access to the original file or database. A packaged copy of a local file does not automatically follow later edits to that file.
Field metadata and source replacement
- **Rename** changes a field name. **Aliases** change displayed dimension-member labels without changing underlying values. **Replace References** redirects dependent uses of one field to another; check formulas and types afterward.
- **Replace Data Source** redirects workbook fields from an old connection to a compatible new one. Match field names, data types and meaning; inspect calculations, filters and views for broken or changed results.
- **Folders** organize the Data pane. **Hierarchies** define drill paths such as Category to Subcategory. Set a field's **default sort** for a stable business order, such as Bronze, Silver, Gold.
Explore and analyze data
Grain, field roles and aggregation
- **Dimensions** define groups; **measures** supply values to aggregate. **Discrete** fields create headers; **continuous** fields create axes. Numeric identifiers can be dimensions, and either role can be discrete or continuous.
- **SUM** totals values; **AVG** averages non-null values; **COUNT** counts non-null occurrences; **COUNTD** counts distinct non-null members. Count a person or order ID distinctly when repeated rows represent the same entity.
- **ATTR** returns a value when all underlying values agree, otherwise an asterisk. Adding a unique ID to **Detail** increases mark granularity; this is essential when individual observations should appear in a scatter plot or box plot.
- Keep calculation levels compatible: SUM([Sales]) / SUM([Quantity]) gives revenue per unit. AVG([Sales] / [Quantity]) averages row ratios and may differ. Check the denominator grain and zero values.
Strings, nulls and conversions
- **TRIM** removes surrounding whitespace; **LTRIM** and **RTRIM** target leading or trailing spaces. REPLACE([Name], ';', '') removes semicolons. Trimming does not remove arbitrary punctuation.
- **SPLIT** uses a delimiter and token position. **LEFT**, **RIGHT** and **MID** extract characters; **FIND** returns a substring position. Concatenate with +, adding a separator for full names; variable name structures need explicit handling.
- **CONTAINS**, **STARTSWITH** and **ENDSWITH** test text. **LEN** returns length; **STR**, **INT**, **FLOAT** and **DATE** convert compatible values. String MIN/MAX follow the source's sort rules rather than measuring string length.
- **ISNULL** tests for null. **IFNULL([Profit], 0)** replaces a null; **ZN([Profit])** returns zero for a null numeric value. Use ISNULL rather than equality to null, and distinguish missing values from genuine zeroes.
Logic and parameter-driven calculations
- **IF / ELSEIF / ELSE / END** supports arbitrary Boolean conditions. **CASE** matches one expression to listed values: CASE [Subject] WHEN 'Science' THEN 'Sciences' ELSE 'Other' END. Supply an ELSE when unmatched values need a result.
- A **parameter** holds one value with a defined type and allowable values. It changes analysis only when referenced by a calculation, filter, reference line or other supported control.
- For measure switching, use CASE [Pick Measure] WHEN 'Sales' THEN SUM([Sales]) WHEN 'Profit' THEN SUM([Profit]) END. For region selection, filter a Boolean calculation such as [Region] = [Choose Region] to True.
- Use numeric parameters for numeric thresholds or Top N counts and date parameters for date boundaries. A **dynamic parameter** can repopulate its allowed values when the workbook opens; it is not a multiselect dimension filter.
Dates, boundaries and comparable periods
- **TODAY()** returns the current date; **NOW()** includes time. **DATETRUNC** returns a period boundary; **DATEPART** returns a numeric part; **DATENAME** returns a label. **DATEADD** shifts dates; **DATEDIFF** counts interval boundaries.
- For **YTD** with a date field, use [Order Date] >= DATETRUNC('year', TODAY()) AND [Order Date] <= TODAY(). For timestamps, use an exclusive upper bound of DATEADD('day', 1, TODAY()) to include all of today.
- To exclude the current month from YTD, use [Order Date] >= DATETRUNC('year', TODAY()) AND [Order Date] < DATETRUNC('month', TODAY()). Comparing only month numbers can incorrectly include other years.
- For **prior-year month to date**, shift the reference date back one year, truncate it to month start and compare through the shifted date. To find a first weekday of a month, combine month start, an explicit weekday offset and DATEADD; specify the week-start convention.
Level of detail expressions
- **FIXED** declares a grain independent of dimensions in the view: { FIXED [State] : SUM([Sales]) }. A dimension-free expression, { FIXED : SUM([Sales]) }, computes a total across the data surviving earlier filters.
- Use { FIXED [Region], DATETRUNC('year', [Order Date]) : SUM([Sales]) } for region-year totals. Use { FIXED [Customer ID] : MIN([Purchase Date]) } for the first purchase date per customer.
- **INCLUDE** adds dimensions to the view's calculation grain, then reaggregates the results. **EXCLUDE** removes specified view dimensions for the calculation. INCLUDE does not require its dimension to appear on Rows, Columns or Marks.
- An **average of product totals** differs from an average transaction. Compute each product's total before averaging at the parent grain; select the outer aggregation deliberately so repeated lower-grain rows do not create unintended weighting.
Filter scope and order of operations
- A useful evaluation sequence is **extract filters**, **data source filters**, **context**, **FIXED LOD**, **dimension filters**, **INCLUDE/EXCLUDE LOD**, **measure filters**, then **table calculation filters**. Top and conditional dimension filters have their own precedence.
- An ordinary dimension filter usually changes displayed marks without changing a **FIXED** result. Promote that filter to **context** when the FIXED calculation must use only those members; adding the dimension to FIXED changes the calculation grain instead.
- **Context filters** establish a subset for dependent filters, such as Top N within a selected discipline or animal type. They may help when highly selective, but performance should be measured rather than assumed.
- **Data source filters** restrict all worksheets using the source; **extract filters** restrict stored extract rows and require refresh to change stored content. A **table calculation filter** hides marks after the calculation rather than removing its input rows.
Member filters, Top N and sets
- Use **General** for explicit member selection, **Wildcard** for patterns, **Condition** for expression or aggregate thresholds, and **Top** for a ranked subset. A condition on SUM([Sales]) per store differs from a row filter on individual sales values.
- A **Top N** dimension filter ranks members by an aggregated measure. Supply an integer parameter for N when users must choose the count; make a parent filter contextual when N must be evaluated within its subset.
- **Groups** consolidate members into categories. **Sets** classify members as In or Out; a dynamic Top set can drive Color as data changes. A manually selected set retains selected members rather than recalculating the top group.
- **Combined sets** must use the same underlying dimension. Union includes members of either set, intersection includes shared members, and difference subtracts one from the other. Overlap can make Top N plus Bottom N contain fewer than 2N members.
Table calculation direction and partitioning
- **Table calculations** operate on aggregated marks in the view. **Addressing** defines the direction of calculation; **partitioning** defines where it restarts. In Specific Dimensions, checked dimensions address the calculation and unchecked dimensions partition it.
- **INDEX()** gives a 1-based mark position; **FIRST()** is the offset to the partition's first mark; **LAST()** is the offset to its last. IF FIRST() = 0 THEN COUNT([Returns]) END displays a result only at the first mark.
- **RANK(SUM([Sales]))** ranks measure values, descending by default, with gaps after ties. **RANK_DENSE** has no gaps; **RANK_UNIQUE** assigns distinct ranks. Ranking and position depend on partitioning, ordering and the marks available.
- For a rank across all displayed categories, address every dimension that should share the ranking. For a rank restarting within each region, partition by Region. A late table calculation filter can hide the first-ranked mark without recomputing ranks.
Running, window and comparative calculations
- **RUNNING_SUM(SUM([Sales]))** accumulates values in the addressing order. Set partitioning or restart rules for yearly or per-state totals. **Percent of Total** must partition by Category to make each category sum to 100%.
- **LOOKUP(SUM([Sales]), -1)** accesses the previous addressed mark. Percent change is (current - previous) / previous; handle a zero or null baseline. Relative-to-first compares each mark with the first mark rather than with its predecessor.
- For quarterly year-over-year growth, an offset of **-4** represents last year only when quarters are consecutive and addressed chronologically. Missing periods or different partitioning change the meaning of the offset.
- **WINDOW_AVG(SUM([Sales]), -2, 0)** averages the current and two preceding marks. It represents three years only at yearly grain. **WINDOW_SUM**, **WINDOW_MIN/MAX** and **TOTAL** summarize the defined window or partition.
Reference lines, distributions and forecasts
- **Reference lines** show a constant or computed value. Choose **Table**, **Pane** or **Cell** scope to control where it is computed. Configure labels to display the computation, value or custom text.
- **Reference bands** show a bounded interval; **distribution bands** show ranges such as percentiles or standard deviations. A band from -1 to +1 standard deviations summarizes spread around a mean, rather than a minimum-to-maximum range.
- **Box plots** summarize median, quartiles, whiskers and outliers. They need multiple marks per group; add the observation ID to Detail when an aggregated view contains only one mark per vendor or region.
- **Trend lines** model relationships between measures; association does not establish causation. **Forecasting** uses historical time patterns to estimate future values. Use suitable date grain, sufficient history and prediction intervals.
Create analytical content
Choose a chart for the analytical question
- **Bars** compare categories; **lines** show ordered trends; **scatter plots** compare two continuous measures. Put an entity ID on Detail when each point should represent a separate student, customer or transaction.
- **Histograms** use equal-width **bins** to show frequency distributions. **Box plots** compare spread and outliers. **Treemaps** use nested rectangles and area for hierarchical part-to-whole comparisons.
- **Gantt charts** show start times and task durations. **Bullet graphs** compare performance with targets. A matrix uses discrete fields on Rows and Columns, with count or another measure on Text or Color.
Marks, combined axes and dual axes
- The **Marks card** controls mark type, Color, Size, Label, Detail and Tooltip. A measure on Size encodes magnitude; a dimension on Detail increases granularity without requiring a separate visible encoding.
- **Combined axes** display multiple measures on one shared scale using **Measure Values** and **Measure Names**. **Dual axes** overlay two axes and provide separate Marks cards for independent mark types and formatting.
- Synchronize dual axes when the scales should align, especially for the same measure shown as line and shape. Configure each Marks card independently; misleading scale choices can create a false visual relationship.
- **Measure Values** can use separate color legends when measures require independent scales. Put custom image files into a subfolder of **My Tableau Repository / Shapes**, then reload the shape palette.
Maps and meaningful color
- Assign appropriate **geographic roles** and resolve unknown or ambiguous locations. Add country or state context where city names repeat. **Filled maps** color areas; symbol size encodes magnitude; **density maps** emphasize concentrations of locations.
- **Sequential palettes** show low-to-high magnitude. **Diverging palettes** show deviations around a meaningful midpoint, such as zero profit. **Stepped colors** create discrete bands from a quantitative range.
- **Map layers** can show different geographic grains together. Enable the **Layer Control** to let users show or hide layers. Custom workbook palettes can be defined in **Preferences.tps** in My Tableau Repository.
Labels, tooltips and annotations
- **Mark labels** show values persistently; the label font can match mark color. Label only min/max marks when endpoints or extremes matter, and set the scope so the correct pane or group is considered.
- **Tooltips** reveal details on hover. Add Region or AVG([Sales]) to Tooltip while keeping SUM([Sales]) on the axis; changing the tooltip aggregation need not change the bar aggregation.
- **Annotations** attach explanatory text to a mark, point or area. Use them for a specific event in a time series. **Captions** describe the worksheet overall; neither substitutes for interactive tooltip content.
Formatting, dates, sorting and totals
- **Default Properties / Number Format** sets a field's reusable currency, decimal and display-unit format. Keep measures numeric instead of concatenating currency symbols; formatting a value as thousands does not change its stored magnitude.
- Use **row banding** with size 1 to alternate row shading. Workbook formatting can set common fonts and lines; worksheet and field formatting provide more specific control.
- **Nested sorting** orders members within parent groups; a manual/default sort supports business-defined sequences. A discrete date creates headers, while a continuous date creates a timeline. **Show Missing Values** can reveal missing date headers without creating observed source records.
- **Row grand totals** summarize across columns; **column grand totals** summarize down rows. **Subtotals** summarize intermediate dimension groups. Totals may recompute the aggregation rather than sum displayed values, particularly for ratios and distinct counts.
Dashboard layout and containers
- **Tiled objects** participate in layout flow; **floating objects** use independent positions and can overlap. Inspect the **Item Hierarchy** and Layout pane to understand nesting and placement.
- **Horizontal containers** arrange objects side by side; **vertical containers** stack them. Use **Distribute Evenly** for equal shares. Set a border on a container to frame several sheets as one group.
- **Padding** controls whitespace inside and around dashboard objects. **Fit** controls a worksheet within its allotted space; dashboard size controls the canvas. Swap a sheet to replace it in an existing dashboard position.
- **Image objects** add artwork or a watermark. **Navigation objects** link to workbook destinations; **Download objects** provide supported exports. Device Preview and **device layouts** tailor phone, tablet and desktop views at the same dashboard URL.
Filter, highlight, URL and navigation actions
- Define an action's **source sheets**, **target sheets**, **trigger** and field mapping. **Filter actions** reduce target data; **highlight actions** emphasize matching marks while retaining the other marks.
- Choose **Hover**, **Select** or **Menu** to control activation. For a filter action, clearing the selection can **leave the filter**, show all values or exclude all values. Leave the filter preserves the last selected city until another is chosen.
- **Use as Filter** creates an interaction quickly; edit its target sheets for precision. **Ignore Actions** controls whether a worksheet responds to applicable filter actions. Independent actions can filter in one direction and highlight in the other.
- **Go to URL** opens an external address; a menu-triggered action can expose a named tooltip link. A mailto: URL opens an email client. **Go to Sheet** actions and Navigation objects move to a workbook sheet or dashboard.
Dynamic selections and visible content
- **Parameter actions** set a parameter from selected marks, affecting calculations or other controls that reference it. **Set actions** update membership; an In/Out set on Color can recolor one view from selections in another.
- A **Show/Hide button** toggles an object or container. Hiding an object in tiled layout lets the layout reclaim its space; floating placement supports overlay panels. Keep related controls in a container when they should toggle together.
- For **sheet swapping**, a parameter and Boolean calculations can control which sheet has marks. **Dynamic Zone Visibility** controls an object's visibility using a Boolean, single-value field whose value is independent of the visualization.
- **Stories** present ordered story points based on worksheets or dashboards. Choose navigator styles such as captions, numbers or dots to suit the narrative; a story point preserves a particular analytical state.
Publish and manage content
Publishing, sites and permissions
- **Publish Workbook** shares views; **Publish Data Source** shares a reusable connection and semantic model. **Tableau Cloud** is hosted; **Tableau Server** is organization-managed. Use controlled sites and permissions for confidential content.
- **Tableau Public** is intended for public sharing. A site named Public on a private Server installation is still governed by that installation's permissions; the site name does not make it Tableau Public.
- **Site roles** cap capabilities; project and content permissions authorize actions. Publishing from Desktop requires an appropriate role and publish permissions. Discovering and using a published source requires access on the signed-in site, including **Connect** capability.
- Choose published sheets deliberately and show sheet tabs when navigation among published views is intended. Hiding a sheet tab is a presentation choice, not a substitute for content authorization.
Credentials and row-level security
- A **live published connection** needs network access and an authentication method usable by viewers or the server. Embedded or managed credentials can support authorized queries without giving each viewer a direct database account.
- An **extract** lets authorized users query copied data without authenticating individually to the source. Protect that copy and arrange valid credentials for refresh; changing to an extract does not itself establish workbook permissions.
- **Row-level security** restricts data by identity. A Boolean rule such as USERNAME() = [Tableau_User_Name] can filter an entitlement mapping; ensure usernames use the same format as the signed-in identity.
- Enforce user filters at a protected **data source** layer when sharing a source, and restrict authoring or download paths that could remove enforcement. Source permissions control use of content; they do not by themselves define which rows each user sees.
Refresh schedules, access and performance
- **Extract refreshes** update stored snapshots. A **full refresh** replaces the extract contents; an **incremental refresh** processes configured new or changed data according to its supported settings. Define the correct update key and change-handling behavior.
- Schedule refresh tasks on Server or Cloud, provide persistent authentication and verify source reachability. Manage task timing, priority and additional runs through the available scheduling controls; a manual refresh handles an immediate update.
- For a cloud database queried live, allow the required secure connectivity. **Tableau Bridge** supports eligible Cloud access to private-network data; locally packaged files need an accessible update path to remain current.
- Improve performance by reducing unnecessary rows and columns, using appropriate extracts and aggregations, and avoiding excessive marks or costly calculations. Use **Performance Recording** to identify expensive queries; a selective context filter is a design choice to test.
Subscriptions and data-driven alerts
- **Subscriptions** deliver scheduled snapshots of views or workbooks by email, with image and PDF options. Recipients still need the relevant content access; delivery does not grant permissions.
- Manage subscriptions from the subscribed view or personal account content/settings, subject to permissions. Subscribing other users requires the applicable owner or administrative capability and their access to the view.
- **Data-driven alerts** notify users when a supported numeric threshold condition is met. They differ from subscriptions, which run on a schedule regardless of whether a threshold has changed.
- An alert owner can manage and resume a **suspended alert** from the site's personal content alert controls. Check the underlying view, permissions and connection errors before expecting successful evaluation.
Exports, printing and sharing
- Use worksheet **Copy Image** or **Export Image** to place a chart in a report. **CSV, text and Excel** exports provide tabular values; image exports omit interactive controls.
- **Page Setup** controls PDF titles and captions separately from on-screen title visibility. Exported PDFs and images are snapshots.
- **Packaged workbooks** share resources offline; **published views** support managed updates. Check permissions and included data before distribution.