Tableau
Tableau
1. DATE
Example:
DATE("9/22/2018") → September 22, 2018
2. DATEADD
Example:
DATEADD('week', 1, [due date]) → Adds 1 week to your due date.
3. DATEDIFF
What it does: Finds the difference between two dates (in days, months, etc).
Example:
DATEDIFF('day', #3/25/1986#, #2/20/2021#) → 12,751 days
4. DATENAME
What it does: Returns the name of a date part (like the month or day name).
Example:
DATENAME('month', #1986-03-25#) → "March"
5. DATEPARSE
What it does: Turns a specially formatted text into a date (when DATE doesn’t work).
Example:
DATEPARSE('yyyy-MM-dd', "1986-03-25") → March 25, 1986
6. DATEPART
What it does: Returns the number for a date part (like month as 3 for March).
Example:
DATEPART('month', #1986-03-25#) → 3
7. DATETRUNC
What it does: Rounds a date down to the start of a time period (like the first day of the
month).
Example:
DATETRUNC('month', #9/22/2018#) → September 1, 2018
Examples:
DAY(#September 22, 2018#) → 22
MONTH(#1986-03-25#) → 3
YEAR(#1986-03-25#) → 1986
QUARTER(#1986-03-25#) → 1
WEEK(#1986-03-25#) → 13
9. ISDATE
Example:
ISDATE("09/22/2018") → True
ISDATE("22SEP18") → False
10. MAKEDATE
What it does: Builds a date from year, month, and day numbers.
Example:
MAKEDATE(1986, 3, 25) → March 25, 1986
11. MAKETIME
Example:
MAKETIME(14, 52, 40) → 2:52:40 PM (on Jan 1, 1899 by default)
ISOYEAR, ISOQUARTER, ISOWEEK, ISOWEEKDAY: Get the ISO year, quarter, week, or
weekday.
Common Arguments
date_part: Tells the function what part of the date to use (like 'year', 'month', 'day', etc).
start_of_week: Lets you choose which day is the start of the week (like "Sunday" or
"Monday").
Quick Tips
Want to change how a date looks? Use formatting, not a calculation.
Not sure if your data is a date? Look for the calendar icon in Tableau.
String functions help you work with text data (like names, codes, or IDs). You can use them to
extract, change, or check parts of text.
Suppose you have an order ID like CA-2011-100006 and you want just the number at the end
(100006):
You can pick which part you want (counting from the left or right).
Some data sources (like Excel, MySQL) let you split from both ends, but others (like Oracle,
Redshift) only let you split from the left.
In short:
Tableau’s string functions help you quickly find, change, or pull out parts of text in your data. Use
them to make your data tidy and useful for analysis!
Or
tableau
CopyEdit
RIGHT([Order ID], 6)
Result: '100006'
2.1.3. Write logical and Boolean expressions (If, case, nested, etc.)
Logical functions in Tableau help you make decisions in your data-like checking if something is true or
false, handling missing values, or categorizing data. Here’s a breakdown of each function and
operator, with clear examples and explanations so you don’t miss any points:
AND
Example:
IF [Season] = "Spring" AND [Season] = "Fall" THEN "It's the apocalypse" END
Both must be true for the result to be true.
OR
Example:
IF [Season] = "Spring" OR [Season] = "Fall" THEN "Sneakers" END
If either is true, the result is true.
NOT
Reverses the result of a condition.
Example:
IF NOT [Season] = "Summer" THEN "Don't wear sandals" ELSE "Wear sandals" END
True becomes false, and vice versa.
Example:
text
ELSE 'Sneakers'
END
Checks each condition in order and returns the result for the first true one. If none match, returns the
ELSE result.
Compares a value to several options and returns a result for the first match.
Example:
text
CASE [Season]
ELSE 'Sneakers'
END
Simpler than multiple IF statements for comparing one field to many values.
IIF
Short for "Immediate IF". Checks one condition and returns one value if true, another if false,
and optionally another if unknown (null).
Example:
IIF([Season] = 'Summer', 'Sandals', 'Other footwear')
Like a compact IF statement.
IN
ISNULL
Example:
ISNULL([Assigned Room])
Returns true if the value is missing.
IFNULL
Returns the first value if it’s not null; otherwise, returns the second value.
Example:
IFNULL([Assigned Room], "TBD")
If the room is missing, returns "TBD".
ZN
Example:
ZN([Test Grade])
If the grade is missing, returns 0.
MAX / MIN
Example:
MAX(4,7) returns 7
MIN(4,7) returns 4
ISDATE
Example:
ISDATE("2018-09-22")
Returns true if the string is a proper date.
Key Points
Use IF for multiple conditions, CASE for comparing one value to many options.
Number functions in Tableau help you perform calculations on numeric data fields. Here’s a clear
summary of each function and what it does-no steps skipped.
They let you compute or transform numeric data, like finding absolute values, rounding
numbers, or calculating logarithms.
ATAN2(y, x): Returns the arctangent between two numbers (in radians).
Example: ATAN2(2, 1) = 1.11
HEXBINX(x, y): Maps coordinates to the x-coordinate of the nearest hexagonal bin.
HEXBINY(x, y): Maps coordinates to the y-coordinate of the nearest hexagonal bin.
LN(number): Returns the natural logarithm (base e).
Example: LN(50) = 3.91
ZN(expression): Returns the expression if not null, otherwise zero (replaces nulls with 0).
Example: ZN(null) = 0
5. Click OK. The new calculation appears in your data pane and can be used in visualizations.
These functions help you clean, transform, and analyze numerical data in Tableau, making your
analysis more accurate and flexible1.
To make sure your data is in the correct format for calculations or visualizations.
For example, if you have a date stored as a text string, you must convert it to a date type to
use it in date functions like DATEDIFF.
You can change a field's data type for the whole dataset in the Data pane, or just for a
specific calculation using a type conversion function3468.
Suppose you want to convert the "Postal Code" field from a number to a string:
1. Open Tableau Desktop and connect to your data (e.g., Sample - Superstore).
2. Go to a worksheet.
text
STR([Postal Code])
6. Click OK.
Now, "Postal Code String" will appear in your Data pane as a string (text) field. Tableau will treat it as
text, not a number, so it won't aggregate it as a numeric value568.
Extra Tips
You can often change a field’s data type directly in the Data pane by clicking its icon.
Use type conversion functions in a calculation if you only want to change the type for a
specific use, or if Tableau can't automatically recognize the format (such as unusual date
strings)346.
Boolean values can also be converted: True becomes 1 (or "1"), False becomes 0 (or "0"), and
Unknown becomes Null.
Summary
Use them when your data isn’t in the right format for your analysis or visualization.
You can use these functions in calculated fields for flexible, on-the-fly conversions.
They let you change the level of detail (granularity) in your analysis.
Example: To find out how many unique orders you had in a year, you can use COUNTD(Order
ID).
To group data (like sales per year, average profit per region).
1. ATTR
Syntax: ATTR(expression)
Use: Returns the value if all rows have the same value; otherwise, returns *.
2. AVG
Syntax: AVG(expression)
Use: Returns the average (mean) of the values.
3. COLLECT
Syntax: COLLECT(spatial)
4. CORR
5. COUNT
Syntax: COUNT(expression)
6. COUNTD
Syntax: COUNTD(expression)
7. COVAR / COVARP
8. MAX
9. MEDIAN
Syntax: MEDIAN(expression)
10. MIN
11. PERCENTILE
Syntax: SUM(expression)
Important Notes
Some functions only work with certain data types (e.g., AVG only with numbers).
text
IIF(SUM([Sales]) != 0, SUM([Profit])/SUM([Sales]), 0)
o This calculates profit margin, but only if sales are not zero.
All arguments in a function must be either all aggregated or all not aggregated.
Sometimes, due to how computers store numbers, you may see very small rounding errors
(like -1.42e-14 instead of 0).
You can use the ROUND function or format numbers to hide extra decimals.
Summary Table
Spatial functions let you analyze and combine location-based data (like maps, coordinates, or shapes)
with other types of data (like spreadsheets or text files). For example, you can:
Join a map of city districts with a list of pothole locations (latitude/longitude) to see which
district has the most repairs.
Draw lines between two points, like showing the path from where a commuter starts to
where they end their trip.
1. AREA
What it does: Calculates the surface area of a polygon (like a district or park).
2. BUFFER
What it does: Creates a shape (circle or area) around a point or line at a set distance.
Syntax:
Example:
3. DIFFERENCE
What it does: Shows what part of one area is left after removing the overlapping part with
another area.
4. DISTANCE
Note: Only works with live data connections when creating, but works with extracts after.
5. INTERSECTION
6. INTERSECTS
What it does: Checks if two shapes (point, line, or polygon) overlap or touch.
7. MAKELINE
Note: Can't use Tableau's auto-generated latitude/longitude fields. Data must have its own
coordinates.
9. LENGTH
10. OUTLINE
Syntax: OUTLINE(polygon)
11. SHAPETYPE
What it does: Tells you the type of spatial object (like Point, Line, Polygon).
Syntax: SHAPETYPE(geometry)
12. SYMDIFFERENCE
What it does: Shows the parts of two areas that don't overlap.
13. VALIDATE
Syntax: VALIDATE(geometry)
Example: UNION(VALIDATE([Geometry]))
Step 2: Add a second, non-spatial data source (like a spreadsheet with lat/lon).
Step 4: Drag the non-spatial data source onto the Join dialog.
Step 5: Click the Join icon.
o For the spatial file, pick a spatial field (has a globe icon).
o Click OK.
Step 1: Go to a worksheet.
Step 3: Name it "Buffer Distance", set Data Type to Integer, Allowable values to Range (e.g.,
100 to 1000, step 100).
Summary Table
A moving average is a calculation that takes the average of a set number of data points in a
sequence, typically time-based, and moves this window forward one step at a time. For each new
point, the oldest value drops out and the newest value is included. This smooths out short-term
fluctuations and highlights longer-term trends in the data379.
A moving average calculates the average of the current value and a specified number of
previous values (and optionally, future values), moving through the data one step at a
time367.
It is most often used to smooth out noisy data, making it easier to see overall trends-
common in financial data, sales figures, or any time series.
For example, a 3-month moving average of monthly sales will, at each month, take the
average of that month and the two months before it. The result is a new, smoothed value for
each month, except at the very start where there aren’t enough previous values.
You can adjust the window size (how many points to include) and whether to include points
before, after, or both relative to the current value.
The moving average does not skip any points in the data; it simply shifts the window forward
one step at a time, recalculating the average each time.
Example Table:
Jan 100 -
Feb 120 -
WINDOW_AVG in Tableau?
WINDOW_AVG is a function that calculates the average of a number across a group of rows
in your chart or table.
It helps you find the average value within a specific part of your data, not just one row.
Using WINDOW_AVG, you can find the average sales over all months or over a few months
around the current month.
It looks at the numbers in your view and calculates the average based on the window (range)
you choose.
Simple example
If you want to find the average sales for all months shown in your chart, you write:
text
WINDOW_AVG(SUM([Sales]))
This will give you the average sales across all months visible in your chart.
If you want to calculate the average sales of the current month and the previous month, you write:
text
WINDOW_AVG(SUM([Sales]), -1, 0)
Quick summary
Percent of Total is a common table calculation used in tools like Tableau to show how much each
value (for example, sales in a given month) contributes to the total within a specified group or
partition (such as a quarter or a year).
How It Works
For each mark (or cell) in your view, the Percent of Total calculation divides the value of that mark by
the total of all values in the current partition, then expresses the result as a percentage.
Example Scenarios
Visual Example
The Percent of Total (Quarter) column shows each month’s sales as a percent of the
quarter’s total.
The Percent of Total (Year) column shows each month’s sales as a percent of the year’s total.
Key Points
The calculation is always relative to the total of the current partition (e.g., quarter, year,
table, or a custom group).
Changing the "Compute Using" option in Tableau changes the partition, allowing you to view
percentages at different levels (e.g., by quarter, by year, or for the whole table.
The sum of all percentages within a partition will always add up to 100%.
In summary:
Percent of Total calculations provide context by showing the contribution of each part to the whole,
and can be flexibly applied to different groupings in your data visualization tool.
A running total calculation in Tableau allows you to aggregate values cumulatively across a partition,
such as summing sales month by month within each year, so each value builds on the previous ones.
Here’s a clear, step-by-step approach to creating and customizing a running total view, using sales
data as an example.
Drag Order Date to the Columns shelf; by default, it appears as YEAR(Order Date).
Drag Order Date to the Rows shelf. Right-click and choose Quarter (the first option).
Drag Order Date again to the Rows shelf, to the right of Quarter(Order Date). Right-click and
select Month (the first option).
Click the SUM(Sales) pill on the Marks card and select Add Table Calculation.
In the Table Calculation dialog, set the Calculation Type to Running Total.
For Compute Using, choose Table (Down). This ensures the running total accumulates down
each year’s column, so each month adds to the previous months within that year.
You should now see each month’s sales value added to a cumulative total for the year. The December
value for each year matches the column grand total, confirming the calculation.
The running total doesn’t have to be a sum. In the Table Calculation dialog, you can choose:
To restart the running total at a specific dimension (e.g., each year or quarter), click
SUM(Sales) on the Marks card and choose Edit Table Calculation.
When multiple dimensions are checked (e.g., Quarter and Month), the Restarting every
option appears. Select the dimension where you want the running total to reset (e.g.,
Quarter of Order Date to restart every quarter).
This is useful for hierarchical data, ensuring the running total restarts at the chosen level, such as at
the start of each year or quarter.
After adding a running total, you can layer a secondary calculation (e.g., year-over-year
percent difference).
Click SUM(Sales) on the Marks card, select Edit Table Calculation, and then Add Secondary
Calculation.
In the second panel, choose the calculation type (e.g., Percent Difference From), and set the
appropriate Compute Using option1.
Key Points
Running total aggregates values cumulatively, typically by sum, but can also use average,
min, or max.
Compute Using controls the direction and scope (e.g., Table Down for columns, Table Across
for rows).
Restarting every allows you to reset the running total at a specific dimension, such as each
year or quarter.
Secondary calculations can be layered for advanced analytics, such as percent change over
time.
1. Difference
What is it?
Difference shows the actual change (increase or decrease) between two values in your data.
How is it calculated?
The “comparison value” can be the previous value, next value, first value, or last value in
your table, depending on what you choose.
Example:
Right-click your measure (like Sales) and choose Add Table Calculation.
Key Points:
What is it?
It tells you “how big” the change is compared to where you started.
How is it calculated?
Like with Difference, you can choose what to compare to (Previous, Next, First, Last).
Example:
Right-click your measure (like Sales) and choose Add Table Calculation.
Key Points:
Summary Table
Best for Seeing real increase/decrease Comparing changes across different scales
amounts
In Add Table Calculation > Difference Add Table Calculation > Percent Difference
Tableau From From
Extra Tips
First value always has no previous value to compare to, so it’s blank.
Don’t filter out the first row/year if you want calculations to work correctly-just hide it if
you don’t want to show it.
You can choose what to compare to: previous, next, first, or last value in your data.
In short:
Percent Difference = “How big was the change, compared to where I started?”
2.3.5. Percentile
A percentile table calculation in Tableau computes the percentile rank for each value within a defined
partition of your data. Rather than assigning a traditional rank (e.g., 1st, 2nd, 3rd), each value is
assigned a percentile (from 0% to 100%) that reflects its relative standing within the group.
Percentile Rank: Each value in the partition is ranked, then converted to a percentage based
on its position. For example, the lowest value gets 0%, the highest gets 100%, and values in
between are distributed evenly depending on the number of items in the partition.
Partitioning: The calculation is performed within the partition you define (e.g., all months in
a year, all sub-categories, etc.).
Order: You can choose ascending (least to most) or descending (most to least) order, which
affects how percentiles are assigned.
Example
Suppose you have monthly sales data for one year. If you use a percentile table calculation:
The month with the highest sales is at 100% (12 out of 12).
Percentile calculations are useful when you want to compare the relative standing of a value within a
group. For example:
Showing how a particular month’s sales compare to other months in the year.
1. Add Your Data to the View: For example, display sales by month and year.
o "Table (down)" computes percentiles down each column; "Pane" computes within
each group; "Specific Dimensions" allows for custom partitioning.
4. Adjust Order: Select ascending or descending, depending on whether you want to rank from
least to most or vice versa.
Key Points
Percentile table calculations transform raw values into relative ranks as percentages.
They are partitioned and ordered based on your chosen dimensions and settings.
Percentile calculations provide a normalized way to compare values, making them ideal for
benchmarking and performance analysis.
2.3.6. Index
Returns the index of the current row in the partition, without any sorting with regard to value. The
first row index starts at 1. For example, the table below shows quarterly sales. When INDEX() is
computed within the Date partition, the index of each row is 1, 2, 3, 4..., etc.
Example
FIRST( )
Returns the number of rows from the current row to the first row in the partition. For example, the
view below shows quarterly sales. When FIRST() is computed within the Date partition, the offset of
the first row from the second row is -1.
Example
LAST( )
Returns the number of rows from the current row to the last row in the partition. For example, the
table below shows quarterly sales. When LAST() is computed within the Date partition, the offset of
the last row from the second row is 5.
Example
2.3.7. Ranking
The next rank after a tie is incremented by the number of tied values, creating gaps.
Nulls are ignored-they are not ranked and do not affect percentile calculations.
Example:
For the set (6, 9, 9, 14), the ranks would be (4, 2, 2, 1).
RANK_PERCENTIL Percentile rank; shows relative standing as a value 0.00, 0.67, 0.67, 1.00
E between 0 and 1.
Key Points
Partitioning:
You can use PARTITION BY to rank within groups (e.g., by department or class). Each group is
ranked independently.
Ordering:
The ORDER BY clause determines how the values are sorted before ranking is applied.
Handling Nulls:
Null values are ignored in all ranking functions-they are not assigned a rank and do not affect
percentile calculations.
Simple Examples
RANK:
For values (6, 9, 9, 14):
o 14 gets rank 1
o 14 gets rank 1
RANK_MODIFIED:
Same set:
o 14 gets rank 1
o 6 gets rank 4
RANK_PERCENTILE:
Same set:
o 6: 0.00
o 14: 1.00
RANK_UNIQUE:
Same set:
o 14: 1
o 6: 4
Summary
Use RANK_MODIFIED for a variation where the next rank increases by 1 after ties.
Quick table calculations in Tableau are pre-built, commonly used calculations that you can apply
instantly to your visualizations. They are designed to save time and simplify analysis by automatically
using the most typical settings for each calculation type, so you can focus on insights instead of
manual configuration.
Difference
Percent difference
Percent of total
Rank
Percentile
Moving average
Year-over-year growth
YTD growth
Quick table calculations: Instantly apply a common calculation with default settings. No
manual setup required.
Regular table calculations: Require you to manually select the calculation type, aggregation,
and how the calculation is computed (addressing and partitioning.
Scenario: Show the moving average of profit by state and year using Tableau's Sample-Superstore
data.
You will see a delta symbol (∆) on the field, indicating that a quick table calculation is applied. The
colors now reflect the moving average of profit across years.
o The calculation type (e.g., change from Moving Average to Running Total)
o Aggregation method
o How the calculation is computed (addressing and partitioning: e.g., across table,
down table, by specific dimensions).
Key Points
Only measures (not dimensions) can have quick table calculations applied directly.
The way the calculation is computed (across table, down table, by pane, or by specific
dimensions) affects the result and can be adjusted for more precise analysis5.
In summary: Quick table calculations in Tableau let you quickly add common calculations to your
visualizations, saving time and simplifying your workflow. They are perfect for standard needs and
can be further customized as your analysis requires.
Table calculations in Tableau are powerful tools for transforming and analyzing your data directly
within your visualizations. You can customize these calculations in several ways to fit your analytical
needs, using both the context menu and the calculation editor.
Click any field in the view with a table calculation to open its context menu.
From here, you can change the Compute Using option, which controls the direction and
scope of the calculation relative to your visualization. Options include computing across the
table, down the table, across then down, down then across, or by specific dimensions649.
For certain calculations like Difference From, Percent Difference From, and Percent From, you
can also specify what the calculation is relative to (e.g., Previous, Next, First, Last) using the
Relative to list6.
Drag a table calculation into the calculation editor to view and modify its underlying formula.
In the editor, you can further customize the logic or create a new named calculated field
based on the original calculation.
Clicking Default Table Calculation in the editor opens the Table Calculation dialog box, where
you can adjust settings and save your changes as a new field6.
o Are themselves table calculations that include at least one other table calculation.
With nested calculations, you can independently set the Compute Using configuration for
each calculation within the nest6.
Example workflow:
o Add this combined field to your view and edit each underlying calculation’s settings
independently in the Table Calculation dialog box.
Option Description
Table (across) Computes across columns for each row, restarting after each partition.
Table (down) Computes down rows for each column, restarting after each partition.
Table (across then Computes across columns, then down rows for the entire table.
down)
Table (down then Computes down rows, then across columns for the entire table.
across)
Pane (down/across) Computes within each pane (group), either down or across, based on the
selected dimensions.
Specific Dimensions Calculates based on the dimensions you select, making the calculation
dynamic.
Summary
Use the context menu for quick adjustments to direction, scope, and relative reference.
Use the calculation editor for deeper customization or to create new calculated fields.
Nested calculations allow for complex, layered analytics, with independent control over each
calculation’s settings.
The Compute Using option is central to how your table calculation partitions and processes
data, so choose it carefully for accurate results.
When working with dimensions-which represent discrete, categorical data such as product
categories, regions, or customer segments-Tableau offers several ways to filter your data. Here’s a
clear, step-by-step explanation of the available options and how each works:
Drag a dimension field from the Data pane to the Filters shelf. This opens the Filter dialog
box, which contains four main tabs, each offering a different way to filter your data.
General Tab
You can check or uncheck values from a list, or enter a custom value list.
This is the most straightforward way to filter by category, such as showing only certain
regions or product types.
Wildcard Tab
Useful for text fields. For example, to show only products containing "Office" in their name
or emails ending with "@gmail.com".
Condition Tab
Example: Show only products where average unit price is greater than or equal to $25, or
sub-categories where profit is less than zero.
You can use built-in controls or write custom formulas for more advanced filtering.
Top Tab
Example: Show the top 10 states by sales, or the bottom 5 products by profit.
You define the number (N) and the measure (e.g., Sales, Profit) to rank by.
Important Note:
Selections from multiple tabs can be combined. For example, you can exclude certain values using
the General tab and then apply a Top N filter in the Top tab. All definitions are summarized on the
General tab.
Context Filters:
You can set one or more categorical filters as context filters. These are processed first and
can affect how other filters behave, especially when combining dimension and measure
filters.
Example Scenarios
Filter by Region:
Drag "Region" to the Filters shelf, use the General tab to select "Central" only, and click
Apply.
Conditio Filter by aggregated value or custom formula Show products with avg. price ≥ $25
n
All these options make it easy to control which categories appear in your Tableau visualizations,
supporting both simple and advanced filtering needs.
Measures represent quantitative data such as sales, profit, or quantity. Filtering measures usually
involves selecting a range or condition based on numeric values.
A Filter Field dialog box appears, prompting you to select how to aggregate the measure
(e.g., Sum, Average, Minimum, Maximum).
After choosing the aggregation, click Next to open the filtering options.
1. Range of Values
o All values within this range (including the boundaries) are included.
2. At Least
3. At Most
4. Special
o Options: Include only Null values, only Non-null values, or All values.
Filtering on measures in large data sources can slow down performance significantly.
A more efficient approach can be to create a set based on the measure and then filter on
that set.
Sets pre-aggregate or pre-select data, reducing the filtering workload during visualization.
Range of Select a minimum and maximum Sales between $10,000 and $50,000
Values range
At Least Include all values ≥ minimum Products with sales at least $25,000
At Most Include all values ≤ maximum Orders with shipping time at most 5
days
Special Filter on Null or Non-null values Show only records with missing sales
data
2.4.2. Configure filter settings including Top N, Bottom N, include, exclude, wildcard, and
conditional
Top N / Show highest or 1. Select the field to filter Show top 5 products by
Bottom N lowest N records 2. Choose Top/Bottom N sales
option
3. Set N and metric
Conditional Filter by numeric or 1. Open Condition tab Show sales greater than
logical conditions 2. Set condition operator (>, 10,000
<, =, between, etc.)
3. Enter value(s)
Context filters in Tableau are special filters that determine the order in which filters are applied to
your data. By default, all filters in Tableau operate independently, each accessing all rows in your data
source. When you set a filter as a context filter, it becomes the first filter Tableau applies, and any
other filters become dependent filters, processing only the data that passes through the context
filter156.
Force a filter to be carried out first: Ensures that a specific filter is always applied before
others.
Create dependent numerical or Top N filters: For example, you can filter to a specific
category (like "Furniture") first, and then apply a Top 10 filter to find the top 10 products
within that category.
Improve performance: On large data sources, context filters can reduce the amount of data
processed by subsequent filters, making dashboards faster15610.
1. Add a Categorical Filter: Drag a dimension (like "Category") to the Filters shelf and select the
values you want to include.
2. Set as Context: Right-click the filter on the Filters shelf and select Add to Context. The filter
turns gray, indicating it is now a context filter156.
3. Add Dependent Filters: Add other filters (like a Top N filter) to process only the data that
passes through the context filter.
1. Create a View: Use the Sample - Superstore data. Drag "Sub-Category" to Rows and "Sales"
to Columns to create a bar chart.
2. Apply a Top N Filter: Drag "Sub-Category" to Filters, go to the Top tab, and set it to show the
Top 10 by Sum of Sales.
4. Set Category as Context: Right-click the "Category" filter and choose Add to Context. Now,
the Top 10 filter will only consider furniture products, not all products15.
If there are only four sub-categories in "Furniture," the chart will show those four-because the Top 10
filter is now limited to the context of "Furniture."
Order of Operations: Context filters are applied before other filters, affecting how data is
processed and displayed11011.
Appearance: Context filters appear at the top of the Filters shelf and are shown in gray. They
cannot be rearranged1.
Modification: You can remove a context filter, edit it (which recalculates the context), or
select Remove from Context to turn it back into a regular filter1.
Performance Tips:
o Use a single context filter that significantly reduces data size rather than many
context filters.
o Complete data modeling before creating a context filter, as changes will require
recomputation.
o Set up context filters before adding other fields to shelves for better query
performance.
Affects Other Filters Yes (makes them dependent) No (all are independent)
Performance Impact Can improve speed May slow down with large data
In Simple Terms
Context filters let you control which filters are applied first, making other filters dependent
on them.
They are useful for focusing analyses (like Top N within a category) and improving
performance on large datasets.
To create one, right-click a filter and select Add to Context. All other filters then work only on
the data that passes through this context filter.
This approach ensures your Tableau dashboards are both accurate and efficient.
By default, when you add a filter to a worksheet in Tableau, it only affects that worksheet. However,
you can easily apply the same filter to multiple worksheets for consistency and efficiency. Here’s how
you can do it, simply explained:
This makes the filter global to all worksheets that use the same primary data source. Any
changes to the filter will update all these worksheets automatically15.
This option works if your data sources are related (relationships set up in Tableau Desktop).
The filter will apply to all worksheets using those related sources1.
In the dialog box, choose the worksheets you want the filter to affect.
Click OK. Now, changes to the filter will update only the selected worksheets157.
4. Apply a Filter to the Current Worksheet Only
This is the default. Right-click the filter field and select Apply to Worksheets > Only This
Worksheet1.
The filter will only affect the worksheet where it was created.
In the dialog, click All on dashboard, then OK. The filter will now control all worksheets on
that dashboard that use the same or related data sources12.
Consistency: Ensures all related worksheets show the same filtered data.
Efficiency: Saves time compared to adding the same filter to each worksheet individually.
Interactivity: Makes dashboards more interactive and user-friendly, as changes to the filter
are reflected across all relevant views57.
All Using This Data Source Applies filter to all worksheets with the same primary data source
All Using Related Data Applies filter to all worksheets with related data sources
Sources
Selected Worksheets Lets you pick specific worksheets for the filter
All on Dashboard Filter applies to all worksheets in the dashboard with the
same/related data
Tip: Filters applied to multiple worksheets are marked with icons in Tableau, so you can easily
identify their scope.
You can always change or remove these settings later by right-clicking the filter and adjusting the
"Apply to Worksheets" option. This flexibility helps keep your Tableau dashboards interactive and
consistent.
2.5.1. In calculations
1. Parameter in Tableau?
A parameter is a dynamic input control you create. It lets users change a value (like a number, date,
or text) and see how the dashboard or worksheet updates in response.
2. Create Parameter
o Name: Give your parameter a clear name (e.g., "Top N", "Select Category").
String (text)
Date or DateTime
o Current Value (Optional): Set the default value the parameter will have when you
open the workbook.
o Display Format (Optional): Choose how numbers or dates are shown (e.g., currency,
percent).
4. Allowable Values
Type values in the left column, or click “Add values from” to pull
from a field or paste values.
Range: Users pick a value within a range (for numbers and dates only).
o For List or Range, you can choose to refresh values each time the workbook opens.
This keeps the list up-to-date with your data.
6. Finish
o Click OK.
o Your parameter now appears in the Parameters section at the bottom of the Data
pane.
3. Edit or Delete a Parameter
Edit:
o Or, click the dropdown on the parameter control card and select Edit Parameter.
Delete:
o Warning: If any calculation or filter uses this parameter, those will break.
4. Use a Parameter
In Calculations:
o Example: Create a calculated field using the parameter (e.g., IF [Sales] > [My
Parameter] THEN "High" ELSE "Low" END).
o Type the parameter name in the calculation editor or drag it in from the Data pane.
In Filters:
o Example: Use a parameter to control a Top N filter (e.g., show Top [N] products,
where N is your parameter).
In Reference Lines:
o In the Add Reference Line dialog, select your parameter as the value.
Why?
o So users (or you) can change the parameter value and see the effect.
How?
o Use the dropdown arrow on the control to change its display (slider, radio buttons,
dropdown, etc. – options depend on parameter type).
What: Let users change parameter values by interacting with the viz (e.g., clicking a bar
updates the parameter).
How: Go to Dashboard > Actions > Add Action > Change Parameter.
What: The parameter’s value can update automatically based on a calculation or field.
How:
o Example: Set the default value to the latest date in your dataset.
Note:
7. Troubleshooting Parameters
The field for the default value must return a single value and match the parameter’s data
type.
If the list is empty, Tableau assigns a fallback value (e.g., 1 for integer, "" for string).
To refresh:
Parameters are global: Once created, use them in any worksheet in your workbook.
Edit or delete parameters carefully to avoid breaking your calculations and filters.
1. Create a parameter
o When you set a filter to show the "Top N" items, pick the parameter instead of
typing a fixed number.
o Show a control (like a slider or box) so users can pick how many items to see.
Example:
Sure! Here’s a simple and easy-to-understand summary of the information from your file about
Reference Lines, Bands, Distributions, and Boxes in Tableau:
These are tools in Tableau that help you highlight important values or ranges on your charts. They
make it easier to compare your data to things like averages, targets, or ranges.
Types
1. Reference Lines
2. Reference Bands
o Shaded areas between two values (like between minimum and maximum).
3. Reference Distributions
o Shaded gradients or bands that show how your data is spread out.
4. Box Plots
o Special charts that show the spread and center of your data.
o Includes quartiles and “whiskers” to show variation.
4. Set what value it should show (average, sum, min, max, etc.).
3. Choose how to split the data (percentages, percentiles, quantiles, or standard deviation).
Quickly spot trends (like which products are above or below average).
In short:
Reference lines, bands, distributions, and boxes help you make your Tableau charts more informative
and easier to understand by highlighting key values and ranges.
Sure! Here's a simple and clear explanation of how to make a dynamic parameter in Tableau without
skipping any important points:
How to Make a Dynamic Parameter in Tableau (Simple Guide)
A dynamic parameter is a parameter that updates automatically based on your data. For example, it
can always show the latest date or a list of values that change as your data changes.
1. Create a Parameter
o Dynamic Current Value: You can set the parameter’s default value to a calculation
that changes with your data.
The calculation must return only one value and must not depend on the
current view.
Use a FIXED Level of Detail (LOD) expression like this to get the latest date:
text
This means the parameter will always start with the latest date when you
open or refresh the workbook.
Important: If you use context filters, the dynamic parameter will NOT update
based on those filters.
o Dynamic List of Values: You can set the list of allowed values to come from a field in
your data.
This list will update automatically when the data changes or when you
refresh the data source.
Important Notes
The calculation for the default value must be a single value and view-independent (does not
change when you change the viz).
Avoid using dynamic parameters as filters on data extracts because Tableau has to process all
data first, which slows down performance.
Dynamic parameters update only when you open the workbook or refresh the data source,
not in real-time.
Summary
Create Parameter Data pane > Create Parameter To have a control that users can
interact with
Set Dynamic Current Use FIXED LOD expression like { FIXED : Automatically sets default to
Value MAX([Date]) } latest value
Populate List Use field values for parameter list Keeps list up-to-date with data
Dynamically changes
Add Parameter Worksheet > Actions > Add Action > Let users change parameter by
Actions Change Parameter clicking on viz
2.6.1. Sets
Here’s a simple, clear, and complete summary of how to create and use Sets in Tableau, based on
your file. No points are skipped.
Sets are custom fields that define a subset of your data based on certain conditions.
Sets help you compare and analyze specific groups within your data.
Types of Sets
1. Dynamic Sets
1. In the Data pane, right-click a dimension and select Create > Set.
3. Click OK.
4. The new set appears under the Sets section in the Data pane.
4. Optionally:
o Choose Add to Filters shelf if you want to filter the view immediately.
5. Click OK.
6. The set appears under the Sets section in the Data pane.
Drag the set from the Data pane into your worksheet.
o Members List: Only shows members inside the set (acts like a filter).
Show In/Out Members
Set actions let users update set values by interacting with the visualization.
For example, clicking marks can add/remove them from the set.
Combine Sets
1. In the Data pane, under Sets, select two sets based on the same dimension(s).
3. In the dialog:
4. Click OK.
Notes
Some features (like In/Out mode and combining sets) may not be available in older
workbooks or with certain data sources.
Set controls are only for dynamic sets, not fixed sets.
Summary:
Sets in Tableau help you focus on and analyze specific groups of data. You can create dynamic or
fixed sets, use them in your visualizations, let users interact with them, and even combine sets for
deeper analysis. All these features make your Tableau dashboards more interactive and insightful!
2.6.2. Bins
Bins in Tableau help you group continuous numeric data into equal-sized intervals, making it easier to
analyze distributions and spot patterns. Here’s a simple, step-by-step guide to creating bins from a
continuous measure, applicable to Tableau Desktop, Tableau Cloud, and Tableau Server.
Bins are equal-sized containers that group data values within a specified range.
They transform a continuous measure (like Sales or Age) into discrete intervals (e.g., 0–10,
10–20, etc.), making it easier to summarize and visualize data5712.
In the Data pane, locate the continuous measure you want to bin (e.g., Sales, Profit, Age)512.
In the dialog box that appears, accept the suggested name or enter a custom name for your
new bin field512.
Enter a value for the Size of bins (the interval for each bin), or let Tableau suggest a size by
clicking Suggest Bin Size.
where nnn is the number of distinct rows. The bin size is calculated by dividing the range (Max - Min)
by the number of bins56.
Click OK. The new bin field appears in the Data pane as a dimension512.
Drag this binned dimension into your worksheet to use it in your visualizations. Each bin acts
as a container for values within its range, and the bin label shows the lower limit (inclusive)5.
Histograms are a common use case for bins, showing the distribution of values across intervals.
To create a histogram:
Right-click the binned dimension and choose Convert to Continuous (if you want a
continuous axis)5.
Change the aggregation on Rows from SUM to COUNT (right-click the field and select
Measure > Count)3.
This will display a histogram, with each bar showing how many records fall into each bin.
Important Notes
Bins can only be created from relational data sources (not cubes)5.
Binned fields cannot be directly used in calculations. However, you can mimic binning with
calculated fields using formulas like:
Once created, a binned dimension can be switched between discrete and continuous,
depending on your visualization needs5.
Step Action
By following these steps, you can easily convert any continuous measure into bins in Tableau,
allowing for deeper data analysis and clearer visualizations.
2.6.3. Hierarchies
Tableau allows you to organize related fields into hierarchies, making it easy to drill down or roll up
data in your visualizations. This is particularly helpful for geographic, product, or organizational data
structures.
In the Data pane, drag a field and drop it directly on top of another field you want grouped
together. For example, drag "State" onto "Region" to start a geographic hierarchy216.
If the field is inside a folder, right-click (or control-click on Mac) the field and select Create
Hierarchy2.
When prompted, enter a name for the hierarchy and click OK256.
Add more fields by dragging them into the hierarchy, and reorder fields as needed by
dragging them to new positions2156.
Example:
To create a hierarchy of Region > State > County:
Click the + icon next to the field label to drill down to the next level (e.g., from Region to
State)2158.
Removing a Hierarchy
In the Data pane, right-click (control-click on Mac) the hierarchy and select Remove
Hierarchy.
The fields return to their original positions, and the hierarchy disappears from the Data
pane2.
Action How-To
Create Hierarchy Drag a field onto another in the Data pane, name the hierarchy, add/reorder
fields
Drill Up/Down Use the + or – icons next to the field label in the viz
Remove Right-click the hierarchy in the Data pane, select Remove Hierarchy
Hierarchy
Hierarchies in Tableau make it simple to explore data at multiple levels of detail, improving both
analysis and presentation.
2.6.4. Groups
Grouping in Tableau lets you combine related items in your data to simplify analysis, fix data
inconsistencies, or answer "what if" questions. For example, you can group similar majors into
categories like "Liberal Arts Majors" or combine different spellings of a state into one group157.
In the tooltip that appears, click the group icon (looks like a paperclip or chain link).
If your view has multiple detail levels, choose which level to group.
The selected items are grouped together, and a new grouped field appears14.
In the Data pane (left side), right-click a field (like "Category" or "State").
In the Create Group dialog box, select the members you want to group and click Group.
Tableau creates a new group with a default name (you can rename it).
You can use the Find option to search for specific members (Desktop only)157.
Tableau can automatically group all leftover (non-grouped) members into a group called
"Other".
This is useful for highlighting specific groups and comparing them to everything else.
To include "Other":
o Right-click the group field in the Data pane and select Edit Group.
Editing Groups
Remove Members: In the Edit Group dialog, select members and click Ungroup. They move
to "Other" if it exists.
Create New Groups: Select members in the Edit Group dialog and click Group.
Rename Groups: Select a group in the Edit Group dialog and click Rename.
Action How to Do It
Create group in Data Right-click field, Create > Group, select members, click Group
pane
Grouping makes your Tableau dashboards cleaner and your analysis more focused, especially when
dealing with many categories or inconsistent data.
How to Create Maps That Show Quantitative Values in Tableau (Proportional Symbol Maps)
Proportional symbol maps in Tableau Desktop are an effective way to visualize quantitative values at
specific geographic locations. Each symbol’s size (and optionally, color) represents the value of a
measure at that location, making it easy to compare data across a map.
A wide range of values for the quantitative field is recommended, so symbol sizes are visually
distinct1.
Earthquake ID
Magnitude
Longitude1
o Tableau adds Latitude to the Rows shelf and Longitude to the Columns shelf, creating
a basic map with one data point1.
Drag your quantitative measure (e.g., Magnitude^10) to Size on the Marks card.
o Using a field with a wide value range (like Magnitude^10 instead of Magnitude)
ensures size differences are visually clear1.
The map now displays proportional symbols: larger symbols for higher values, smaller for
lower1.
o Use Stepped Color and set the number of steps (e.g., 8).
o Optionally, reverse the palette so higher values are a specific color (e.g., orange for
high, blue for low).
o Adjust the center point (e.g., set center at 7 for earthquake magnitude)1.
Add a border color (e.g., dark blue) for better symbol distinction1.
Your proportional symbol map is now complete. Larger and/or darker symbols represent
higher values.
Always clarify what the symbol size means. For example, if symbol size represents crater
diameter, clarify that it does not represent the area covered on the ground, to avoid
misinterpretation.
Use area, not diameter, to represent values-this ensures accurate perception of differences.
Avoid overcrowding-too many overlapping symbols can obscure data; consider filtering or
aggregating as needed.
Provide a legend and clear explanations-make sure your audience understands what the
sizes and colors mean.
Don’t mix too many variables-stick to one or two measures per map to keep it readable.
STEP ACTION
DATA PREPARATION Ensure data has quantitative values and geographic info
ENCODE SIZE Drag quantitative measure (e.g., Magnitude^10) to Size on Marks card
ENCODE COLOR (Optional) Drag the second measure (e.g., Magnitude) to Color on Marks
card
Proportional symbol maps are a powerful way to visualize and compare quantitative data across
locations in Tableau Desktop. By following these steps and best practices, you can create clear,
effective maps that help your audience quickly understand the data story.
Heatmaps, or density maps, in Tableau are powerful for visualizing trends and concentrations in
dense datasets, especially those with overlapping data points such as geographic locations or high-
frequency events. Here’s a clear, step-by-step guide to creating and customizing density maps in
Tableau:
o Ensure your latitude and longitude fields are correctly set as Latitude and Longitude
geographic roles4.
o Tableau will generate a map with points for each data record46.
Increase granularity:
o Drag a unique identifier (like ID or event number) to the Detail shelf on the Marks
card. This ensures each data point is represented individually, which is crucial for
accurate density calculations4.
o If prompted about exceeding the recommended number of marks, choose to add all
members.
o On the Marks card, use the drop-down menu (next to “Automatic”) and select
“Density.” Tableau will now compute and display a density surface, color-coding
areas by the concentration of overlapping marks3456.
Adjust Color:
o Click “Color” on the Marks card to select from density-specific color palettes or any
available color scheme. Density palettes are optimized for both light and dark
backgrounds41.
o If your data includes negative values, use a diverging palette for clarity.
Adjust Intensity:
o Use the Intensity slider (found in the Color options) to control the vividness of the
density effect. Higher intensity makes more “hot spots” visible, while lower intensity
highlights only the most concentrated areas412.
Adjust Size:
o Click “Size” on the Marks card to change the radius of the density marks. Increasing
size makes the density effect more pronounced; decreasing size makes it more
granular412.
o As you zoom or filter, Tableau recalculates the density surface for the visible area,
allowing you to explore trends at different scales4.
o Hover over areas to see details, or select specific regions to analyze underlying data
points4.
Step Action
Set Mark Type Change mark type to “Density” on the Marks card
Customize Adjust color, intensity, and size using the Marks card options
Tips:
Density maps are best for large datasets with overlapping points.
Adjust color and intensity to highlight the trends or concentrations you want to analyze.
This workflow will help you create clear, insightful heatmaps in Tableau to reveal hidden patterns and
data concentrations.
2.7.3. Create density maps – note that “heat maps” and “density maps” are interchangeable terms
Heat maps and density maps in Tableau are essentially the same thing-they both use color to show
where data points are more concentrated or less concentrated12358. The terms are often used
interchangeably in Tableau documentation and by users.
In simple terms:
Heat maps/density maps show where there are more or fewer data points by blending
colors: areas with more points are shown in darker or more intense colors, while areas with
fewer points are lighter.
These maps are especially useful when you have lots of overlapping data, such as many sales
in the same city or many events in a small area128.
2. Place your geographic dimension (like Postal Code, City, or Latitude/Longitude) on the view
to create a map.
3. On the Marks card, change the mark type to Density (sometimes called Heatmap).
4. Tableau will automatically group overlapping marks and color them based on how many are
in each area-the more marks, the "hotter" (darker) the color1278.
5. You can adjust the color scheme and intensity to highlight the patterns you want to see.
Areas with the most data points (like customers, sales, or events) will appear as the darkest
or most intense spots on the map.
Summary Table:
Key Point:
In Tableau, "heat map" and "density map" mean the same thing: a visual way to quickly see where
your data is concentrated using color.
Ratio or aggregated data (e.g., rates, percentages, averages) rather than raw counts1611.
Geographic patterns or trends, such as obesity rates by county, unemployment rates by
district, or profit by state369.
Comparisons between regions, highlighting areas with higher or lower values relative to
others611.
Tip: Always use standardized data (like rates or ratios) rather than absolute counts to avoid
misleading interpretations, especially when regions differ significantly in size or population6711.
Creating a choropleth map in Tableau is straightforward and involves a few key steps:
o Ensure your dataset includes geographic information (e.g., country, state, county)
and a quantitative value (e.g., percentage, rate)15.
o Drag the geographic field (like State or Country) onto the view. Tableau automatically
generates a map145.
o On the Marks card, select "Map" to switch from a point map to a filled (choropleth)
map4.
o Drag your quantitative measure (e.g., Profit, Obesity Rate) to the Color shelf on the
Marks card.
o Drill down to finer geographic detail (e.g., from State to County) if your data supports
it.
o Exclude irrelevant regions (e.g., Alaska and Hawaii for contiguous US maps) as
needed.
Visualizing obesity rates by county across the United States to identify regional health trends.
Key Advantages
Customizable: Adjust color schemes and data intervals for clarity and impact.
Feature Description
Choropleth maps in Tableau provide a simple and effective way to visualize how a measurement
varies across a geographic area, making them a go-to choice for spatial data analysis.
2.8. Summarize, model, and customize data by using the Analytics feature
2. In the Analytics pane, under Summarize, drag Totals into the Add Totals dialog.
Requirements:
The view must have at least one header (a dimension on Rows or Columns).
Note:
For graphical views (like bar charts), only column totals are calculated if there are only
column headers.
Totals are computed locally if connected to Essbase, using the cube’s aggregation.
2. Options for Calculating Grand Totals
By default, grand totals use disaggregated data from the data source.
Sometimes, the total you see is not just the sum/average of visible numbers, but is calculated
from all underlying data.
1. Go to Analysis > Totals > Total All Using > [Aggregation] (e.g., Average).
2. Now, the total is calculated based on the displayed values, not all underlying data.
When you turn on grand totals, they use the current aggregation for each field.
Default aggregations:
Aggregation Description
Note:
Only "Automatic" totals are available for table calculations and fields from a secondary data
source.
4. Show Subtotals
To show subtotals:
5. Move Totals
By default:
To move totals:
Notes:
Other options (Sum, Average, etc.) use the aggregated data you see in the view.
Server Option:
Not available for dynamic hierarchies or some calculated fields (may show blanks).
7. More Information
For table calculations or blended data, see Tableau Knowledge Base articles:
o “Grand Totals and Subtotals Do Not Show Expected Numbers With Table
Calculations”
Summary:
Understand that totals may use underlying data or just what you see, depending on your
settings.
You can add reference lines, bands, distributions, and box plots to any continuous axis in a Tableau
view to highlight specific values, ranges, or statistical distributions. These tools help you understand
how your data compares to averages, ranges, or statistical measures.
Reference Lines: A straight line on a continuous axis at a specific value. This value can be a
constant or calculated from your data (like average sales). You can also add confidence
intervals around the line.
Reference Bands: A shaded area between two values on the axis. It highlights a range of
values, such as between minimum and maximum sales or between two percentiles.
Reference Distributions: A gradient shading that shows the distribution of values along the
axis. You can define it by percentiles, quantiles, standard deviations, or percentages. Useful
for showing data spread.
Box Plots: A standardized chart showing data distribution with quartiles (hinges) and
whiskers (range or outliers). Box plots are available only in Tableau Desktop, not on the web.
Step 1: Open your Tableau workbook and make sure you have a continuous axis, like sales or
profit over time.
Step 3: Drag Reference Line from the Analytics pane onto your view. Tableau will highlight
possible drop targets.
Step 4: Drop the reference line on the axis or in the area where you want it. Depending on
your view, Tableau gives you options:
Value Field: Choose the continuous field or parameter to base the line on. If the field is not
in the view, drag it to the Details on the Marks card first.
o None: No label.
o Custom: Create your own label with text and dynamic values.
Tooltip: Choose whether to show a tooltip when hovering over the line:
o None: No tooltip.
Confidence Interval: You can add a confidence interval around the reference line:
o Choose to show the line with confidence interval, just the line, or just the confidence
interval.
o The higher the confidence level, the wider the shaded band.
Formatting: (Tableau Desktop only) Customize the line’s color, style, and thickness.
Fill Colors: You can fill the area above and below the line with colors to highlight regions.
Recalculated Lines: Optionally, you can choose to recalculate the line based on highlighted
or selected data points for dynamic comparison.
Summary
Reference Line Adds a line at a specific Aggregation, label, tooltip, All Tableau
value or statistic confidence intervals platforms
Reference Band Shades an area between Start/end values, label, All Tableau
two values on an axis tooltip, fill color platforms
By using these tools, you can add rich statistical context and visual cues to your Tableau dashboards,
making your data easier to interpret and compare.
Reference bands are shaded areas behind the marks in your Tableau view, highlighting a range
between two values on a continuous axis. They help you visually emphasize important ranges or
thresholds in your data.
o Drag it onto your chart. Tableau will highlight possible drop areas, typically labeled as
Table, Pane, or Cell.
o Drop the band in your chosen scope (Table, Pane, or Cell). A dialog box appears for
configuration.
Value (From): The starting point of the band (e.g., Minimum, Average, a
specific field, or constant).
Value (To): The end point of the band (e.g., Maximum, Median, another
field, or constant).
o You can use parameters or different fields, but don’t select the same field and
aggregation for both12.
o Tooltip: Set what appears when hovering over the band (None, Automatic, or
Custom)1.
o Choose shading color and whether to mark the band edges with a line.
o In Tableau Desktop, you can also specify if the band should recalculate for
highlighted or selected data1.
7. Click OK
o The reference band appears in your view, shading the specified range.
Quick Example
Suppose you want to highlight the area between the minimum and average sales for each product
category:
Tips
If you want to use a continuous field not in the view, drag it to the Details target on the
Marks card first1.
You can edit or remove the reference band by right-clicking it in the view.
Summary Table
Step Action
Reference bands are a simple but powerful way to add context and highlight important ranges in
your Tableau visualizations.
Customize: Click the line to change aggregation (Average, Sum, Total), edit, remove, or
format it.
Shortcut: Right-click the axis and choose Edit Reference Line to modify the line.
Purpose: Helps quickly compare data points to the average and spot trends or outliers.
Adding trend lines in Tableau helps you visually highlight patterns and relationships in your data,
such as the correlation between the ease of doing business index and GDP per capita. Here’s a
simple, step-by-step guide to adding and customizing trend lines in Tableau Cloud, Desktop, Public,
or Server.
In the Analytics pane, find the Trend Line option under the Model section148.
Drag the Trend Line into your view (for example, onto a scatter plot)148.
o Linear
o Logarithmic
o Exponential
o Polynomial
o Power1468
After adding a trend line, you can right-click the line (or click it in web editing mode) and
select Edit Trend Lines to change its type, factors, or appearance248.
You can also format the trend line’s color and style via the Format menu8.
Hovering over the trend line will show key statistics, such as R-squared and p-value, which
help you assess how well the model fits your data68.
Logarithmic When data increases or decreases quickly and then levels out
Example:
To visualize the relationship between the ease of doing business index and GDP per capita, create a
scatter plot with these variables and add a logarithmic trend line to best fit the data’s pattern.
Tips:
You can add multiple trend lines by segmenting your data (e.g., by year or region), assigning
each a different color for clarity.
Use the Describe Trend Line or Describe Trend Model options for detailed statistical
summaries.
Adding and customizing trend lines in Tableau is straightforward and provides immediate insight into
data trends, making your visualizations more informative and actionable.
Adding reference distributions in Tableau allows you to visually highlight statistical ranges (like
percentiles, quantiles, or standard deviations) within your data, making it easier to interpret and
compare values. Here’s a simple, step-by-step guide:
Drag the Distribution Band option from the Analytics pane and drop it onto your chart.
Tableau will highlight possible destinations-choose where you want the distribution to apply:
Table, Pane, or Cell.
In the dialog box that appears, select how you want to define your distribution:
o Percentages: Shades between specified percentage values (e.g., 60, 80). Enter values
separated by commas and specify the measure and aggregation2.
o Percentiles: Shades between specified percentiles (e.g., 25, 50, 75). Enter values
separated by commas12.
o Quantiles: Breaks the view into equal-sized tiles (e.g., terciles, quartiles). Specify the
number of tiles (3–10)2.
o Standard Deviation: Shades areas within a specified number of standard deviations
from the mean. Specify the factor (number of standard deviations) and whether to
use sample or population23.
o None: No label.
You can choose to show recalculated bands for highlighted or selected data points for
interactive analysis2.
Adjust colors, shading, and fill options to make the bands visually clear. For example, you can
use different colors for different percentile ranges (e.g., 25th, 50th, 75th percentiles)1.
Click OK or Apply. Your chart will now display the reference distribution bands, visually
highlighting the specified statistical ranges.
Suppose you want to add bands at the 25th, 50th, and 75th percentiles:
The result will be bands showing where data falls below the 25th, 50th, and 75th percentiles,
each shaded differently.
Requirements
You need at least one date dimension and one measure in your view to create a forecast125.
Steps to Turn On Forecasting
Right-click (or control-click on Mac) on your visualization and choose Forecast > Show
Forecast.
Or, go to the menu and select Analysis > Forecast > Show Forecast125.
The field you want to forecast is on the Rows shelf, and a continuous date field is on the
Columns shelf.
The field you want to forecast is on the Columns shelf, and a continuous date field is on the
Rows shelf.
The field you want to forecast is on either the Rows or Columns shelf, and discrete dates
(with at least one Year level) are on either shelf.
The field you want to forecast is on the Marks card, and a continuous or discrete date set is
on Rows, Columns, or Marks1.
Note: You can also forecast without a date dimension if you have a dimension with integer values in
the view12.
Tableau shows estimated future values (the forecast) in a lighter shade than historical values.
The forecasted data appears alongside your actual data on the chart125.
Prediction Intervals
Forecasts include a shaded area (for line charts) or whiskers (for shapes, bars, circles, etc.) to
show the prediction interval.
By default, Tableau uses a 95% prediction interval, meaning there’s a 95% chance the actual
value will fall within this range.
You can change the prediction interval (90%, 95%, or 99%) or turn off prediction bands in the
Forecast Options dialog13.
You can check the quality of your forecast by dragging another instance of the forecast
measure to the Detail shelf on the Marks card.
Right-click the field to access options for editing the forecast formula, viewing results, or
controlling the tooltip.
Add multiple result types (like upper/lower prediction intervals) to tooltips for deeper
insight15.
Summary of Steps
Tip: Forecasting is not supported for multidimensional (cube) data sources, and you cannot add a
forecast if your view includes table calculations, disaggregated measures, percent calculations, or
grand totals/subtotals.
How to Open:
Go to Analysis > Forecast > Forecast Options in Tableau Desktop or Tableau Public18.
1. Forecast Length
2. Source Data
Aggregate by: Choose how data is grouped (e.g., by month, week, day). Default is usually the
same as your chart, but you can change it1610.
Ignore last: Skip a set number of recent periods (e.g., last month) to avoid using incomplete
data in the forecast1610.
Fill in missing values with zeros: If your data has gaps, Tableau can fill them with zeroes110.
3. Forecast Model
o None: No trend/seasonality.
o Note: Multiplicative models can’t be used if your data has zero or negative values.
4. Prediction Interval
Sets the confidence level for the forecast range (e.g., 90%, 95%, 99%). Higher values mean a
wider shaded area (more uncertainty).
5. Forecast Summary
Shows a text summary of your current forecast settings and any errors1.
Extra Tips:
You can right-click the forecasted field to see more results like actual vs. forecast, trend,
prediction intervals, and forecast quality.
Adjusting these options helps you fine-tune forecasts for better business planning and
analysis.
FIXED Level of Detail (LOD) expressions in Tableau enable calculations at a specified granularity,
independent of the visualization's dimensions. These expressions use the syntax {FIXED [Dimension] :
Calculation} and are particularly useful for creating consistent metrics across varying levels of data
aggregation.
Granularity Control: Compute values using explicitly defined dimensions, ignoring those in
the view.
Filter Behavior: Ignore all filters except context, data source, and extract filters.
Use Cases:
Insight: Customers acquired earlier (e.g., 2013) show higher sustained spending, visible as upward-
trending lines in the visualization.
Result: Each state within a region displays the same sales value
because the calculation ignores the State dimension in the view. Using INCLUDE instead would yield
state-specific values.
FIXED LODs are essential for scenarios requiring consistent aggregation, such as cohort analysis or
performance benchmarking. By decoupling calculations from the visualization’s structure, they
provide flexibility in deriving insights across diverse data hierarchies.
INCLUDE level of detail expressions in Tableau allow you to compute values using specified
dimensions in addition to whatever dimensions are already in your view. This means you can
calculate metrics at a more granular level and then re-aggregate those results at a higher level,
depending on how your visualization is set up. The results of INCLUDE LOD expressions will
automatically update as you add or remove dimensions from your view127.
Key Points:
INCLUDE LOD expressions are useful when you want to perform calculations at a finer level
of detail than the current view, but still want to display results at a coarser level.
text
{ INCLUDE [Dimension] : AGG([Measure]) }
As you change the dimensions in your view, the INCLUDE LOD calculation dynamically
adjusts.
Examples
text
The resulting view shows the average sales per customer for each region.
If you also add the [Sales] measure to the Rows shelf, you can compare total sales per region
to the average sales per customer per region.
text
Place this calculation on the Rows shelf and set the aggregation to AVG.
The view now displays the average sum of sales per state across categories.
You can further break down the view by adding [Segment] to Columns and using color to
distinguish segments, revealing how the average sum of sales per state varies by category
and segment.
When you need to calculate a metric at a more detailed level than your current visualization,
but want to display or aggregate it at a higher level.
For example, finding average sales per order (using [Order ID]) when your view is at the
region level.
INCLUDE is especially helpful when you want to include a dimension in your calculation that
isn’t present in the view.
FIXED Ignores view’s dimensions, {FIXED [State] : SUM([Sales])} Always sum sales
uses only specified ones per state,
regardless of view
INCLUDE Adds specified dimensions to {INCLUDE [Customer Name] : Avg sales per
those in the view SUM([Sales])} customer,
aggregated by
region
Summary:
INCLUDE LOD expressions in Tableau are powerful for calculating metrics at a more granular level and
then aggregating them as needed for your analysis. They adjust automatically as you change your
view, making them flexible for dynamic dashboards and exploratory analysis.
EXCLUDE LOD expressions in Tableau allow you to remove one or more dimensions present in your
view from the context of a calculation. This means the calculation will ignore these dimensions, even
if they are displayed in your visualization, and aggregate data at a higher level (less granular).
To calculate values like "percent of total" or "difference from overall average" where you
want to ignore certain breakdowns in your view.
To compare detailed data against higher-level aggregates without changing your visualization
structure.
To simplify calculations that would otherwise require complex table calculations or manual
data manipulation.
Syntax
text
Replace [Dimension1], [Dimension2] with the dimensions you want to remove from the
calculation.
Replace AGG([Measure]) with the aggregation you want (e.g., SUM, AVG).
EXCLUDE removes the specified dimension(s) from the calculation, even if those dimensions
are present in the view.
The result is aggregated at a higher level than the view, ignoring the excluded dimensions.
The calculation's result can change depending on the structure of your view (unlike FIXED
LOD, which is always the same regardless of the view).
Examples
o Effect: Shows the average blood pressure for each country over time, ignoring the
breakdown by sex, even if sex is in the view.
o View: Bar chart with sales broken out by region and month.
o Effect: Shades the chart to show total sales by month, ignoring the regional
breakdown.
text
{EXCLUDE [Order Date (Month / Year)] : AVG({FIXED [Order Date (Month / Year)] : SUM([Sales])})}
o Effect: Calculates the average sales per month, then excludes the month to compare
each month's sales to the overall monthly average.
EXCLUDE LOD expressions cannot be used for row-level calculations (since there are no
dimensions to omit at the row level).
The result of an EXCLUDE LOD can change if you change the dimensions in your view, since it
always works relative to what's shown.
EXCLUDE is especially helpful for creating custom totals, averages, or comparisons without
altering the visualization's structure.
In summary:
EXCLUDE LOD expressions in Tableau are powerful tools for removing specific dimensions from your
calculations, allowing you to control the granularity of your analysis and create advanced
comparisons and summaries within your dashboards.
Nested LODs in Tableau are Level of Detail expressions placed inside another LOD. This allows you to
perform multi-step aggregations at different granularities in a single calculation.
Syntax Example
Suppose you want to calculate the average of monthly sales totals, then aggregate that average at a
higher level (e.g., by year):
text
)}
The inner LOD { FIXED [Order Date (Month/Year)] : SUM([Sales]) } calculates total sales per
month.
The outer LOD { EXCLUDE [Order Date (Month/Year)] : AVG(...) } then averages those monthly
totals, excluding the month granularity1.
Key Points
Inner LODs are evaluated first, then aggregated by the outer LOD.
Common use cases: comparing aggregates across different dimensions, advanced cohort
analysis, or recreating complex table calculations.
Quick Example
text
)}
This computes total sales per month, then averages those monthly totals at the region level.
3.1.1. Create basic charts from scratch (bar, line, pie, highlight table, scatter plot, histogram, tree
map, bubbles, data tables, Gantt, box plots, area, dual axis, combo)
This section includes detailed exercises that guide you through the steps involved in building some
common chart types in data views. All exercises use the Sample - Superstore data source, which is
included with Tableau Desktop. This collection of topics is just a sample of the many types of data
views that you can create in Tableau. For details on options for building views from scratch, see Build
Data Views from Scratch and Build a Basic View to Explore Your Data.
Build a Histogram
Build a Treemap
Sorting happens for the innermost dimension (e.g., Color within Hue).
Sorts the items in that header (e.g., sorts Materials for a specific color).
o Data Source Order: Uses the order from your data source.
Non-Nested Sort: Sorts values across all panes the same way (e.g., Hues sorted the same for
all Materials).
Troubleshooting
Missing Sort Icons: Not all charts support sorting (e.g., scatterplots). Icons may be disabled.
Clear Sorts: Right-click a field and choose Clear Sort, or use the Worksheet menu to clear all
sorts.
Remove Sort Controls: Authors can hide sort icons from viewers in the Worksheet menu.
Tips
3.2.1. Combine sheets into a dashboard by using containers and layout options
Fixed Size: The dashboard stays the same size no matter what window it’s in. If the window
is too small, scroll bars appear. You can pick a preset or set your own size. Fixed size is good
for exact placement and can make dashboards load faster1.
Range: The dashboard can grow or shrink between a minimum and maximum size you set. If
the window is smaller than the minimum, scroll bars show up. If it’s bigger than the
maximum, there’s extra white space. Use this if you want your dashboard to work on two
different screen sizes, like small and medium browser windows, or for mobile dashboards1.
Automatic: The dashboard always fills the window it’s in. Tableau does the resizing for you.
This is easy but can look unpredictable on different screens. Best used with tiled layouts1.
Choose a preset size (like Desktop Browser) or pick a sizing behavior (Fixed, Range, or
Automatic)1.
Layout containers let you group items together so you can move and size them as a group.
To add: Under Objects, select Horizontal or Vertical and drag to your dashboard. Add your
views or objects into the container1.
To evenly space items, select the container, right-click, and choose "Distribute Evenly"1.
If you have related sheets in a container, you can set them to resize automatically depending
on what’s selected.
Use "Use as Filter" on one sheet, then set up actions to control how other sheets resize
when nothing is selected (show all data, or collapse)1.
Use the drop-down menu to select "Remove Container." This lets you edit items inside
separately1.
Tiled: Items don’t overlap; they fit into a grid and resize with the dashboard1.
Floating: Items can overlap and be placed anywhere, even over other objects. Good for
fixed-size dashboards1.
To add: Under Objects, pick Tiled or Floating, then drag to the dashboard1.
Select an item, then in the Layout pane, set its exact size and position (x/y in pixels)1.
Use arrow keys for fine adjustments (Shift for bigger jumps)1.
To rename: Right-click in the Layout pane and choose Rename Dashboard Item1.
To reorder: Drag items in the Item hierarchy in the Layout pane. Top items are in front1.
In the Layout tab, set border style, color, background color, and padding (inside or outside
spacing)1.
Tip: Turn off "All sides equal" to adjust padding on just one side.
Make Elements Transparent
For transparent backgrounds, select the sheet, go to Format > Shading, and choose None.
For transparent maps, turn off the Base layer and adjust other map layers as needed.
To make a sheet partially transparent, set the background color and opacity in the Layout
pane.
Floating filters, legends, and parameters are transparent by default. If not, set their
background to None in the Layout tab.
This covers the main points for sizing and laying out your Tableau dashboard in a simple, easy-to-
understand way.
Follow these simple steps to create and enhance a dashboard in Tableau. Each point is explained
clearly so you don’t miss anything.
1. Create a Dashboard
At the bottom of your Tableau workbook, click the New Dashboard icon (it looks like a small
window).
On the left, you’ll see a list of your sheets. Drag the sheets you want from this list into the
dashboard area on the right1.
To add a sheet: Drag it from the left panel into your dashboard.
To replace a sheet: Select the sheet in the dashboard, hover over the replacement sheet in
the left panel, and click the Swap Sheets button.
o Note: When you replace a sheet, Tableau keeps the old sheet’s padding, border, or
background color, but you might need to adjust the size or remove filters that no
longer apply1.
3. Add Interactivity
Use as Filter: In the upper corner of a sheet, enable the Use as Filter option. Now, when you
select something in that sheet, it filters other sheets in the dashboard.
You can add different objects to make your dashboard more interactive and visually appealing:
Horizontal/Vertical Containers: Group related items together and control how your
dashboard resizes.
Web Page: Show a web page directly in your dashboard (note: some pages like Google may
not work).
Download: Let users export the dashboard as PDF, PowerPoint, PNG, or crosstab (after
publishing).
To add an object: Drag it from the Objects section (left side) into your dashboard (right side).
Select the object, open its menu, and choose Copy Dashboard Item.
Go to the dashboard where you want to paste, then use Paste from the menu or keyboard
shortcut.
The object appears slightly offset from the top-left; drag it to move1.
Note: You cannot copy sheets, filters, parameters, legends, or layout containers with uncopyable
items inside.
Click an object, then the arrow in its upper corner to open its menu.
Options depend on the object type. For example, for images, you can:
o Insert an image file or link to a web-based image (use HTTPS for web images).
Select the object, open its menu, and choose Add Show/Hide Button.
o Tooltip text1
Tip: Place objects you want to hide in a horizontal or vertical container for better layout control.
Use HTTPS URLs for web pages and images for better security.
In Tableau Desktop, adjust web view security settings via Help > Settings and Performance >
Set Dashboard Web View Security (if allowed by your admin)1.
Use tooltips and show/hide buttons to make dashboards cleaner and more interactive.
You now have a clear, step-by-step guide to creating and customizing dashboards in Tableau, with all
major points explained simply and directly.
A Tableau Story is a special feature in Tableau (Cloud, Desktop, and Server) that lets you combine
multiple visualizations-like charts, maps, and dashboards-into a single, interactive sequence. Think of
it as creating a slideshow where each slide is a different view or insight from your data.
Key Points
Story Sheet: In Tableau, a story is a type of sheet, just like a worksheet or dashboard.
Story Points: Each "page" or "slide" in your story is called a story point. Each story point can
show a different visualization or dashboard.
Sequence: Story points are arranged in a sequence to guide your audience through your data
narrative step by step.
Interactive: When you share your story (on Tableau Public, Tableau Server, or Tableau Cloud),
viewers can click through the story points, interact with filters, and explore the data
themselves.
Tell a Data Narrative: Guide your audience through your findings, step by step.
Engage Your Audience: Make your data more compelling and easier to understand.
Example
Each point builds on the last, making your insights clear and easy to follow.
Absolutely! Here’s a clear, step-by-step guide to adding filters to Tableau dashboards, using your
screenshots for reference.
Click on the worksheet you want to filter (see the gray outline around the chart in the first
image).
In the top right corner of the worksheet, you’ll see four icons (highlighted in red in the first
image).
Click the down arrow icon (▼) to open the options menu.
In the menu, hover over Filters (as shown in the first image).
A list of available fields will appear (e.g., “Order Date”, “State/Province”, “Region”, etc.).
In the Dashboard pane on the left (see the second image), you can see the device layouts
(Default, Tablet, Phone).
o Make sure you’re on the right device layout tab (e.g., Tablet).
o If your layout is set to Default, filters added will show on all device layouts.
o If you want a filter only for a custom layout, set the layout to Custom.
o Drag the filter (e.g., “Sales” filter in the second image) into the view for that device.
Extra Tips
You can clear all filters for a layout by clicking the “Clear all” button in the Dashboard pane.
Summary Table
4. Device Layout Use Dashboard pane to manage filters for each device Second image
Filter actions in Tableau allow you to send information between worksheets or dashboard
sheets.
When you select (or hover over) a mark in one view, a filter action can display related data in
another view.
For example, selecting a house in a sales view can show all comparable houses in another
sheet .
How to Create or Edit a Filter Action
Or, from a dashboard sheet’s drop-down menu, select Use as Filter for a quick setup.
o You can insert variables from selected fields to make the name dynamic.
o Select the worksheet, dashboard, or data source that will trigger the action.
o Exclude all values: Hides all data in the target sheet(s) until a selection is made
(useful for dynamic dashboards)17.
o If using Selected Fields, map the source field to the target field (matching data types
required)1.
Tips and Notes
If you use fields with different names (e.g., "Latitude" vs. "Lat"), you can manually map them
when connecting relational data sources.
For multidimensional data sources, source and target fields must have the same name and
use the same data source (Windows only)1.
Filter actions do not work with user functions like USERNAME() due to row-level security1.
Step Options/Details
Where to create Worksheet > Actions, Dashboard > Actions, Use as Filter
Clear selection action Leave filter, Show all values, Exclude all values
Absolutely! Here’s an easy-to-understand, step-by-step guide to using URL Actions in Tableau, based
on your attached text. I’ll cover all the main points, so you don’t miss anything.
A URL Action lets you add clickable links in your Tableau dashboards or worksheets. These links can
open web pages, files, or even create emails. You can also make the links dynamic by inserting field
values from your data.
Use the dropdown to select which sheet(s) or data source(s) the action applies to.
Hover: Action runs when the user moves the mouse over a mark.
Menu: Action runs when the user right-clicks (or control-clicks on Mac) and selects from a
tooltip menu. This is best for URL actions.
New Tab if No Web Page Object Exists: Opens in a browser tab if there’s no web page object
in the dashboard.
Web Page Object: Opens inside a web page object in your dashboard (if you have one).
The URL must start with one of these: http, https, ftp, mailto, news, gopher, tsc, tsl, sms, or
tel.
TIP: Always use the full URL (e.g., http://example.com). If you don’t, it may not work when
published to Tableau Server or Tableau Cloud.
Local files: In Tableau Desktop, you can use paths like C:\Example folder\example.txt.
Click the Insert menu next to the URL box to add dynamic field, filter, or parameter values.
Example: http://maps.com/?address=<Address>
Encode Data Values: Check this if your data has special characters (like & in "Sales &
Finance").
Allow Multiple Values via URL Parameters: Use this if your target web page can accept a list
of values (e.g., multiple product IDs). Set a delimiter (like a comma), and a delimiter escape if
needed.
o mailto:
o Add &body= and insert any fields you want in the email body.
o In the Value Delimiter box, type %0a (this is the code for a line break).
For parameters, if you want to send the actual value (not the display value), add ~na after
the parameter name.
o Example: http://<IPAddress~na>/page.htm
Aggregated fields aren’t available by default. To use them, create a calculated field and add it
to your view (even if it’s just on Detail).
Summary Table
Step Action
Test your links using the example link provided in the dialog.
Highlight actions help you focus on important parts of your data by coloring certain marks and
dimming the rest. You can highlight marks in different ways depending on what you want to do.
When to use:
What it does: You click on colors, sizes, or shapes in the legend to highlight those marks.
When to use:
What it does: You type a word or pick from a list to highlight matching marks.
When to use:
o When you want to quickly find and highlight marks by name or category.
What it does: You set up rules to highlight marks when you click or hover on something else.
When to use:
o When you want interactive dashboards that respond to clicks.
Select Marks Click marks you want to highlight Small data, manual picking
In short:
Set actions let users interact with a dashboard or chart by clicking, hovering, or using a menu. When
you do this, Tableau changes what’s in a “set” (a group of data points you define), and updates the
visualization right away.
Make dashboards interactive – Users can click on part of a chart to filter or highlight other
charts.
Show details on demand – Only show more info when a user selects something.
o Decide what happens when the selection is cleared (keep, add all, or remove all).
6. Test It Out
Interact with your viz and see how it responds!
Asymmetric Drill Down: Click a category to drill into just that one.
Dynamic Coloring: Select countries to adjust the color scale for only those.
In short:
Set actions let you make dashboards interactive and dynamic by letting users control what data is
shown, simply by clicking or hovering.
Navigation and Download objects in Tableau dashboards offer a range of customization options to
enhance interactivity and provide clear visual cues for users. Here’s a detailed breakdown of the
available options and how you can configure them:
Destination Selection:
Choose where the button navigates by selecting a sheet outside the current dashboard from
the "Navigate to" menu39.
Button Style:
Select between Text or Image for the button appearance.
o Text: Customize the button label, font, color, size, and formatting349.
o Image: Upload a custom image (e.g., icon or logo) to serve as the button349.
Tooltip Text:
Add optional explanatory text that appears when users hover over the button. This is
especially helpful for image buttons to clarify their purpose (e.g., “Go to Sales Overview”)34.
Formatting Options:
Adjust background color, border, and layout (floating or tiled). You can also change the
button’s position and size within the dashboard49.
Interactivity Note:
When authoring a dashboard, you must Alt-click (Windows) or Option-click (macOS) to
activate the button. In published dashboards, a regular click suffices34.
o Image: Download the view as a PNG image, reflecting current filters and
selections23.
o Crosstab: Export data as a CSV or Excel file, with options to select specific sheets and
columns1235.
Button Style:
Similar to navigation buttons, choose between Text or Image for the button’s appearance
and customize accordingly35.
Tooltip Text:
Optionally add a tooltip to clarify the download action (e.g., “Download as PDF”)345.
Formatting Options:
Customize font, color, background, border, and button layout. You can also adjust the
button’s size and placement on the dashboard45.
Interactivity Note:
Download buttons for Crosstab exports are only active after publishing the dashboard; they
may appear grayed out in Tableau Desktop15.
Crosstab, etc.
Data/Sheet
N/A Select sheets/columns for export
Selection
Best Practices
Use clear, descriptive tooltips to guide users, especially for image-based buttons.
Match button style and placement to your dashboard’s design for a cohesive user
experience.
Test button functionality after publishing, especially for download actions like Crosstab,
which may not be active in Tableau Desktop.
These options allow you to create intuitive, visually distinct buttons that streamline navigation and
exporting within your Tableau dashboards.
Parameter actions let users interact directly with your Tableau visualizations (like clicking or hovering)
to change the value of a parameter. This makes your dashboards much more interactive and
dynamic.
Make dashboards interactive: Users can click on charts to filter or change what they see.
Display summary statistics: Show things like the average or total for selected data.
Control reference lines: Let users move a reference line by clicking on the chart.
Customize views: Users can choose what data or calculation they want to see.
2. (Optional) Use Parameter in a Calculation: You can create a formula that uses the
parameter.
o Choose:
Example Scenarios
Dynamic Reference Line: Click a point on a line chart and the reference line moves to that
value.
Selective Hierarchy: Click a fruit type and see only the varieties for that fruit.
Summary Data: Select several data points and instantly see their average or total.
Key Tips
If users can select multiple items, you must choose an aggregation (like sum or average).
You can control what happens when the selection is cleared (keep the value or reset it).
In Short
Parameter actions make Tableau dashboards much more interactive and user-friendly. They allow
users to control what they see and how they see it, just by clicking or hovering on the data.
How It Works:
You can add a Show/Hide button to any dashboard object (like a filter container, chart, or
text box).
Clicking the button will either reveal or hide the selected object, depending on its current
state.
The button itself can be customized with different images, text, colors, and tooltips for both
the "shown" and "hidden" states156.
1. Select the Object: Click on the dashboard object you want to show or hide (e.g., a floating
container with filters).
2. Add the Button: From the object’s menu (usually a small dropdown arrow in the corner),
select "Add Show/Hide Button"356.
3. Edit the Button: Customize the button’s appearance for both states (shown/hidden). You can
use images (like an “X” or hamburger icon) or text, and set tooltips for clarity56.
4. Move and Resize: Drag the button to your preferred location and resize it as needed.
5. Test the Button: In dashboard editing mode, you may need to Alt-click (Windows) or Option-
click (Mac) to test the toggle. In published dashboards, a regular click works35.
Floating Objects: When hidden, they simply disappear, revealing whatever is beneath
them16.
o If the object is inside a horizontal or vertical container, hidden objects’ space is filled
by the remaining objects, so the layout adjusts smoothly.
o If the object is in the main tiled layout (not inside a container), hiding it leaves a
blank space behind16.
Best Practices:
Place objects you plan to hide in horizontal or vertical containers for smoother layout
adjustments.
Use clear tooltips and button labels so viewers know what the button does.
Name your dashboard objects in the layout pane for easier management when setting up
buttons7.
Common Uses:
Example:
You have a bar chart and a detailed text table. Instead of showing both at once, you add a Show/Hide
button to the text table. When the button is clicked, the table appears; click again, and it hides,
letting the bar chart take centre stage.
This feature is a simple but powerful way to make dashboards interactive, flexible, and user-friendly.
1. Default Colors
Every chart or mark in Tableau starts with a default color (usually blue for marks, black for
text).
Categorical Palettes: Used for fields with distinct categories (like departments). Each
category gets a different color.
Ordinal Palettes: Used for fields with an order (like dates or numbers). Colors show
progression.
Quantitative Palettes: Used for continuous values (like sales numbers). Shows a gradient of
colors.
Select the item (category or value) you want to change, then pick a new color from the
palette.
Diverging Palette: Used for fields with both negative and positive values (e.g., profit/loss).
Shows two color ranges.
Sequential Palette: Used for fields with only positive or negative values. Shows one color
range.
Stepped Color: Groups values into bins, each with its own color.
Full Color Range: Makes sure both ends of the value range use the full intensity of colors.
5. Extra Effects
Halos: Add a colored outline to marks to make them stand out on maps.
Markers: (For line charts) Show or hide points along the line.
6. Resetting Colors
You can always reset back to the default color settings if needed.
Tableau offers flexible font and text formatting options across Tableau Desktop, Server, and Cloud.
Here’s how you can easily format fonts and text elements:
Tableau Desktop
To format fonts:
Worksheet (overall)
Tooltip
Title
o Options include:
To format tooltips:
o Select Worksheet > Tooltip.
o Use the formatting toolbar in the dialog to adjust font, size, style, color, and add
dynamic text via the Insert menu1.
o Right-click (or control-click on Mac) the item and select Edit <item>.
o Use the dialog to change font, size, style, color, and alignment. Use the Insert menu
for dynamic text1.
To format fonts:
o Select Format and choose the element (Title, Caption, Legends, Filters, Sets,
Highlighters, Parameters).
o You can also clear all worksheet formatting from the Format menu1.
o Double-click the item to open the edit dialog and adjust font and style1.
Workbook-Level Formatting
o Use the Format Workbook pane to set default fonts for all views, titles, and
dashboards.
Font Recommendations
Recommended alternatives: Helvetica, Arial, Open Sans, Segoe UI, San Francisco, Helvetica
Neue, Lucida Grande8.
Additional Tips
Formatting individual controls: Right-click the control (e.g., filter or parameter), select
Format, and adjust font, style, color, and background5.
Resetting to default: Use the Reset option in the title or caption dialog to revert to default
formatting1.
Summary:
Tableau provides intuitive menus for formatting fonts and alignment in both Desktop and
Server/Cloud environments. You can target specific worksheet elements or apply changes across the
entire workbook, ensuring your visualizations are both clear and visually appealing124.
1. Drag a field (usually a dimension) from the Data pane to the Shape button on the Marks
card. This assigns different shapes to each member of that field.
2. To change the shapes, click Shape on the Marks card or the shape legend, then choose new
shapes from the palette. You can pick from default shapes or select a different palette.
3. To use your own shapes, add image files (like PNG or JPG) to a new folder inside the Shapes
folder in your Tableau Repository (Documents folder). Then, in Tableau, select your custom
palette from the Shape menu.
4. You can assign shapes manually or click Assign Palette to apply shapes automatically.
5. Adjust the size of shapes using the Size option on the Marks card.
styling in Tableau:
Change fonts, colors, and sizes to make your dashboard clear and attractive.
Use consistent colors and fonts throughout your dashboard for a professional look,
Add borders, background colors, and padding to separate and highlight items.
Keep your dashboard simple-show only the most important information and avoid clutter.
Add clear titles and labels to help users understand your visuals.
Use tooltips to give extra information when users hover over data points
Stick to intuitive colors (like red for down, green for up) to make trends easy to spot.
Create and follow a style guide or template to save time and keep everything consistent.
Adding custom shapes in Tableau allows you to enhance your data visualizations with icons or images
that are meaningful to your analysis. Here’s a straightforward, step-by-step guide:
Supported formats include: .png, .gif, .jpg, .bmp, and .tiff (note: .emf is not supported)76.
For best results, use images with transparent backgrounds (PNG is preferred for smooth
transparency)67.
Create a new subfolder (e.g., “My Custom Shapes”). The folder name will become the palette
name in Tableau769.
In Tableau, build your visualization and set the Mark type to “Shape.”
In the dialog, choose your custom palette (the folder you created).
Assign shapes to your data categories either one by one or by clicking “Assign Palette” to
automatically assign them7.
Suggested image size: around 32x32 pixels, unless you plan to use larger icons7.
Minimize extra transparent space around your image to improve hover/click behavior7.
You can resize shapes in Tableau using the Size slider on the Marks card76.
When you use custom shapes, they are saved with the workbook, so your visualizations can
be shared and viewed by others even if they don’t have your custom shapes installed7.
Step Action
Prepare images Create/download, save each as .png, .gif, .jpg, .bmp, or .tiff
Use in Tableau Set Mark type to Shape, Edit Shape, select your custom palette, assign shapes
Ordinal Palettes: Used for fields with an order (like dates or numbers). Colors show
progression.
Quantitative Palettes: Used for continuous values (like sales numbers). Shows a gradient of
colors.
Select the item (category or value) you want to change, then pick a new color from the
palette.
Diverging Palette: Used for fields with both negative and positive values (e.g., profit/loss).
Shows two color ranges.
Sequential Palette: Used for fields with only positive or negative values. Shows one color
range.
Stepped Color: Groups values into bins, each with its own color.
Full Color Range: Makes sure both ends of the value range use the full intensity of colors.
5. Extra Effects
Halos: Add a colored outline to marks to make them stand out on maps.
Markers: (For line charts) Show or hide points along the line.
6. Resetting Colors
You can always reset back to the default color settings if needed.
Annotations in Tableau Desktop are used to highlight or explain specific data points, areas, or trends
in your visualizations. Here’s how you can add, edit, format, and remove annotations:
Types of Annotations
Point Annotation: Used to annotate a specific point in the view, not necessarily tied to a data
mark.
Area Annotation: Used to annotate a broader area, such as a cluster of marks or a region on
a map18910.
1. Right-click (or Control-click on Mac) a data point or area in your worksheet where you want
to add the annotation.
2. Select Annotate, then choose the annotation type: Mark, Point, or Area.
o Use the Insert menu to add dynamic variables (e.g., data values that update with
changes in the underlying data).
To edit an annotation, right-click (Control-click on Mac) the annotation and select Edit.
Update the text as needed and click OK1810.
To move or resize an annotation, simply click and drag the annotation or its handles. You can
also adjust the annotation line or text box as needed18.
Formatting Annotations
o Font properties
o Text alignment
You can format multiple annotations at once by selecting them together and using the
Format pane179.
Removing Annotations