Professional Documents
Culture Documents
Tableau Functions DOC (All Bootcamps)
Tableau Functions DOC (All Bootcamps)
There are many functions supported by Tableau that are used to create Tableau Calculations. The Tableau
Bootcamp team has put together several of them to be used for reference. The Tableau Bootcamps #1,
Tableau Bootcamps #2, and Tableau Bootcamps #3 will cover very few of the functions. This handout is
provided to give you an idea of the key functions that can be used in Tableau.
Disclaimer: Tableau is not a programming language, however it can use syntax and functions to create
complex calculations.
Date values
Numerical values
CONCEPTS
CHARTS
Line chart The line chart, or line graph, connects several
distinct data points, presenting them as one
continuous evolution. Use line charts to view
trends in data, usually over time (like stock price
changes over five years or website page views for
the month
Bar Chart Bar charts are one of the most common data
visualizations. You can use them to quickly
compare data across categories, highlight
differences, show trends and outliers, and reveal
historical highs and lows at a glance. Bar charts
are especially effective when you have data that
can be split into multiple categories.
FUNCTIONS
[From Station Name]+ " (TO) "+[To Station Combines two string variables.
Name]
Maps (Show Me Function) Creates a Heat Map that shows for example the
number of sales or total number of students in a
particular country based on a color representing
different values. (E.g. Greater number of students
represent in red and a lower number of students
in blue)
Tree Maps ( Show Me Function) This function allows users to display the data in
nested rectangles that showcases the data from
attributes of the data that are most to least
important ( E.g. If Canada had 100 students and
USA had 40 students who graduated from
university then the Tree map would represent
Canada in a larger portion of the Tree Map
relative to the US)
Shapes (Under the “Marks” Section) Allows you to manipulate and change the design
of your Tableau Dashboard through different
shapes to represent different different pieces of
information ( For example: You can change the
the figures to be squares, circles or you can
change them shapes to be males and females to
represent different genders)
Order ( Ascending or Descending.) Allows you to order your data sourced in based
upon 4 criteria:
1) Data Source Order
2) Alphabetic.
3) Field
4) Manual ( Selecting Certain values)
Size ( Under the “Marks” Section) Changes the size of the shapes or graphs that you
are representing in your Tableau worksheet
LOG(number [, base]) Returns the logarithm of a number for the given base. If
the base value is omitted, base 10 is used.
MAX(number, number) Returns the maximum of the two arguments, which must
be of the same type. Returns Null if either argument is
Null. MAX can also be applied to a single field in an
aggregate calculation.
Examples: MAX(4,7)
MIN(number, number) Returns the minimum of the two arguments, which must
be of the same type. Returns Null if either argument is
Null. MIN can also be applied to a single field in an
aggregate calculation.
Examples: MIN(4,7)
DATEADD(date_part, interval, date) Returns the specified date with the specified number
interval added to the specified date_part of that date.
Supports ISO 8601 dates.
Example:
DATEADD('month', 3, #2004-04-15#) = 2004-07-15
12:00:00 AM
This expression adds three months to the date #2004-
04-15#.
DATEDIFF(date_part, date1, date2, Returns the difference between date1 and date2 expressed
[start_of_week]) in units of date_part.
Examples:
DATEDIFF('week', #2013-09-22#, #2013-09-24#,
'monday')= 1
DATEDIFF('week', #2013-09-22#, #2013-09-24#,
'sunday')= 0