Tableau Content 1
Tableau Content 1
1) Introduction to Tableau
5) Tableau Worksheets
6) Tableau Calculations
7) Tableau Functions
Tableau
Tableau is an excellent data visualization and business intelligence tool used
for reporting and analyzing vast volumes of data. It is an American company
that started in 2003—in June 2019, Salesforce acquired Tableau. It helps users
create different charts, graphs, maps, dashboards, and stories for visualizing
and analyzing data, to help in making business decisions.
Tableau is the fastly growing and powerful data visualization tool. Tableau is a
business intelligence tool which helps us to analyse the raw data in the form of
the visual manner; it may be a graph, report, etc.
Example: - If you have any data like Big Data, Hadoop, SQL, or any cloud data
and if you want to analyse that given data in the form of pictorial
representation of data, you can use Tableau.
Data analysis is very fast with Tableau, and the visualizations created are in the
form of worksheets and dashboards. Any professional can understand the data
created using Tableau.
Features of Tableau
Data Blending
Real-time analysis
The Collaboration of data
The data being generated each day continues to increase at a rapid pace. In
2020, the amount of data created around the world went up fiftyfold from the
prior decade. With so much data available to businesses and organizations, it’s
more important than ever to have effective analytic tools available, as well as
individuals who are trained to use them to help gather important information
for their business. Studying Tableau provides prospective job candidates with
essential data analysis, visualization, and collaboration training with this widely
used software that will set them apart from other candidates.
Many top companies around the world, such as Groupon, Sony, Facebook,
Dell, and General Motors, currently offer high-paying career options in Tableau
for qualified individuals. Those with Tableau training have a plethora of job
options available in 2022, a trend that is likely to continue in the coming years
as more and more data will need to be analyzed and utilized.
This article will explore seven of the most popular Tableau jobs in 2022, the
average national pay rate of each position, and several of the tasks involved
with each career path.
Tableau Consultant
Business Intelligence Manager
Data Visualization Developer
Tableau Business Analyst
Data Visualization Designer
Tableau Developer
The first step is to connect the data source to Tableau. Tableau can connect
to nearly every data sources like text files, relational sources, SQL sources, or
cloud databases, etc. There is an inbuilt connector in Tableau to establish a
link with data sources.
Tableau connects to all popular data sources. It has inbuilt connectors which
take care of establishing the connection, once the connection parameters are
supplied. Be it simple text files, relational sources, SQL sources or cloud data
bases, Tableau connects to nearly every data source.
After connecting to a data source, you get all the column and data available in
the Tableau environment. You classify them as dimensions and measures, and
create any hierarchy required. Using these you build views, which are
traditionally known as Reports. Tableau provides easy drag and drop feature to
build views.
Create Worksheets
Create different worksheets to create different views on the same or different
data.
Create a Story
A story is a sheet that contains a sequence of worksheets or dashboards that
work together to convey information. You can create stories to show how facts
are connected, provide context, demonstrate how decisions relate to
outcomes, or simply make a compelling case.
Tableau - File Types
File
File Type Purpose
Extension
As a data analysis tool, Tableau classifies every piece of data into one of the
four categories namely - String, Number, Boolean and datetime. Once data is
loaded from the source, Tableau automatically assigns the data types.
Contrarily, you can also change some of the data types if it satisfies the data
conversion rule. The user has to specify the data type for calculated fields.
Data Type Description Example
TRUE
BOOLEAN They are logical values.
FALSE
2 Bin
A user-defined grouping of measures in the data source.
Bookmark
A .tbm file in the Bookmarks folder in the Tableau repository that contains a
3
single worksheet. Much like web browser bookmarks, .tbm files are a
convenient way to quickly display different analyses.
Calculated Field
4 A new field that you create by using a formula to modify the existing fields in
your data source.
Crosstab
5 A text table view. Use text tables to display the numbers associated with
dimension members.
Dashboard
6 A combination of several views arranged on a single page. Use dashboards to
compare and monitor a variety of data simultaneously.
Data Pane
A pane on the left side of the workbook that displays the fields of the data
sources to which Tableau is connected. The fields are divided into dimensions
7
and measures. The data pane also displays custom fields such as calculations,
binned fields, and groups. You build views of your data by dragging fields from
the data pane onto the various shelves that are a part of every worksheet.
Dimension
A field of categorical data. Dimensions typically hold discrete data such as
9
hierarchies and members that cannot be aggregated. Examples of dimensions
include dates, customer names, and customer segments.
Extract
A saved subset of a data source that you can use to improve performance and
10
analyze offline. You can create an extract by defining filters and limits that
include the data you want in the extract.
Filters Shelf
11 A shelf on the left of the workbook that you can use to exclude data from a view
by filtering it using measures and dimensions.
Format Pane
A pane that contains formatting settings that control the entire worksheet, as
12
well as individual fields in the view. When open, the Format pane appears on
the left side of the workbook.
Marks
A part of the view that visually represents one or more rows in a data source. A
14
mark can be, for example, a bar, line, or square. You can control the type, color,
and size of marks.
Marks Card
15 A card to the left of the view, where you can drag fields to control mark
properties such as type, color, size, shape, label, tooltip, and detail.
Pages Shelf
A shelf to the left of the view that you can use to split a view into a sequence of
16 pages based on the members and values in a discrete or continuous field.
Adding a field to the Pages shelf is like adding a field to the Rows shelf, except
that a new page is created for each new row.
Rows Shelf
A shelf at the top of the workbook that you can use to create the rows of a data
table. The shelf accepts any number of dimensions and measures. When you
17
place a dimension on the Rows shelf, Tableau creates headers for the members
of that dimension. When you place a measure on the Rows shelf, Tableau
creates quantitative axes for that measure.
Shelves
Named areas to the left and top of the view. You build views by placing fields
18 onto the shelves. Some shelves are available only when you select certain mark
types. For example, the Shape shelf is available only when you select the Shape
mark type.
Workbook
19 A file with a .twb extension that contains one or more worksheets (and possibly
also dashboards and stories).
Worksheet
20
A sheet where you build views of your data by dragging fields onto shelves.
Tableau - Data Sources
Tableau can connect to all the popular data sources which are widely used.
Tableau’s native connectors can connect to the following types of data
sources.
Run Tableau. On the left side of the start screen, there is a Connect
Panel.
Go to the File Section and choose the type of data file you want. Let’s
choose any excel file.
On clicking the Microsoft Excel option, a dialogue box will appear for the user
to choose the required data file. As shown below I have chosen a data –
‘Coral data.xlsx’
Now, Tableau will create connection to the data file and as you can see we
have our data at the bottom.
If you are connecting to a Microsoft file then it is straight forward but if you
are connecting to a Microsoft SQL server then there is a possibility that it
might need some credentials like username, password e.t.c
After connecting to the data file, the user can go the Worksheet
Then finally you can work on the data visualisation after wrangling your data.
Connect Live
The Connect Live feature is used for real-time data analysis. In this case,
Tableau connects to real-time data source and keeps reading the data. Thus,
the result of the analysis is up to the second, and the latest changes are
reflected in the result. However, on the downside, it burdens the source
system as it has to keep sending the data to Tableau.
In-Memory
Tableau can also process data in-memory by caching them in memory and not
being connected to the source anymore while analyzing the data. Of course,
there will be a limit to the amount of data cached depending on the availability
of memory.
Creating an Extract
Extraction of data is done by following the menu - Data → Extract Data. It
creates many options such as applying limits to how many rows to be
extracted and whether to aggregate data for dimensions. The following screen
shows the Extract Data option.
Applying Extract Filters
To extract a subset of data from the data source, you can create filters which
will return only the relevant rows. Let’s consider the Sample Superstore data
set and create an extract. In the filter option, choose Select from list and tick
mark the checkbox value for which you need to pull the data from the source.
Adding New Data to Extract
To add more data for an already created extract, you can choose the option
Data → Extract → Append Data from File. In this case, browse the file
containing the data and click OK to finish. Of course, the number and datatype
of columns in the file should be in sync with the existing data.
Extract History
You can verify the history of data extracts to be sure about how many times
the extract has happened and at what times.
For this, you can use the menu - Data → Extract History.
Tableau - Fields Operations
Tableau has many features to manipulate the fields present in Tableau data
pane. You can rename the fields or combine two fields to create one field. Such
operations help in better organization of the dimensions and measures, as well
as accommodate two or more fields with the same name for better data
analysis.
You can add any field to the worksheet by right-clicking and choosing the
option Add to Sheet. You can also drag and drop the fields into different
shelves present in the worksheet, like Columns shelf, Rows shelf, Filters shelf,
and many other shelves under the Marks card. The following diagram shows
the right-click option.
Tableau - Data Joining
Data joining is a very common requirement in any data analysis. You may need
to join data from multiple sources or join data from different tables in a single
source. Tableau provides the feature to join the table by using the data pane
available under Edit Data Source in the Data menu.
Creating a Join
Consider the data source ‘Sample superstore’ to create a join between Orders
and Returns table. For this, go to the Data menu and choose the option Edit
Data Source. Next, drag the two tables, Orders and Returns to the data pane.
Depending on the field name and datatype, Tableau will automatically create a
join which can be changed later.
Editing a Join Type
The type of join which the table creates automatically can be changed
manually. For this, click the middle of the two circles showing the join. A popup
window appears below which shows the four types of joins available. Also
Tableau automatically greys out some types of joins, which it finds irrelevant
on the basis of data present in the data source.
Tableau - Data Blending
Tableau - Worksheets
Worksheet in the Tableau screen is the area where you create the views for
data analysis. By default, Tableau provides three blank worksheets when you
have established a connection to data source. You can go on adding multiple
worksheets to look at different data views in the same screen, one after
another.
Adding a Worksheet
You can add a worksheet in two ways. Right-click on the name of the current
worksheet and choose the option New Worksheet from the pop-up menu. You
can also click on the small icon to the right of the last sheet name to add a
worksheet.
Tableau - Rename Worksheet
To rename a worksheet, right-click the sheet name and choose the option
Rename Sheet.
An existing worksheet can be both saved and deleted. This helps in organizing
the contents in the Tableau desktop environment. While you can save a
worksheet by clicking the save button under the main menu, you can delete a
worksheet using the following steps.
Tableau - Calculations
Tableau - Operators
Following are the details of the operators that are available and the order
(precedence) of operations.
Types of Operator
General Operators
Arithmetic Operators
Relational Operators
Logical Operators
General Operators
7+3
Profit + Sales
Adds two numbers. Concatenates two strings.
+(addition) 'abc' + 'def' = 'abcdef'
Adds days to dates. #April 15, 2004# + 15 =
#April 30,
2004#
Arithmetic Operators
Comparison Operators
Logical Operators
If the expressions or Boolean values present on both sides [Ship Date] > #April
AND of AND operator is evaluated to be TRUE, then the result 1, 2012# AND [Profit]
is TRUE. Else the result is FALSE. > 10000
If any one or both of the expressions or Boolean values [Ship Date] > #April
OR present on both sides of AND operator is evaluated to be 1, 2012# OR [Profit]
TRUE, then the result is TRUE. Else the result is FALSE. > 10000
This operator negates the Boolean value of the expression NOT [Ship Date] >
NOT
present after it. #April 1, 2012#
Operator Precedence
The following table describes the order in which operators are evaluated. The
top row has the highest precedence. Operators on the same row have the
same precedence. If two operators have the same precedence, they are
evaluated from left to right in the formula. Also parentheses can be used. The
inner parentheses are evaluated before the outer parentheses.
Precedence Operator
1 –(negate)
2 ^(power)
3 *, /, %
4 +, –
6 NOT
7 AND
8 OR
In this chapter, we will see how to apply calculations to the fields. The
calculations can be as simple as subtracting the values of two fields or applying
an aggregate function to a single field.
Following are the steps to create a calculation field and use numeric functions
in it.
The above step opens a calculation editor which lists all the functions that is
available in Tableau. You can change the dropdown value and see only the
functions related to numbers.
Tableau - Functions
Number Functions
String Functions
Date Functions
Logical Functions
Aggregate Functions
Number Functions
These are the functions used for numeric calculations. They only take numbers
as inputs. Following are some examples of important number functions.
POWER (number,
Raises the number to the specified power. POWER(5,3) = 125
power)
String Functions
String Functions are used for string manipulation. Following are
some important string functions with examples
Date Functions
NOW( ) = 2004-04-15
NOW( ) Returns the current date and time.
1:08:21 PM
Logical Functions
These functions evaluate some single value or the result of an expression and
produce a boolean output.
Aggregate Functions
Function Description Example
COUNT Returns the number of items in a group. Null values are not
(expression) counted.
Sorting of data is a very important feature of data analysis. Tableau allows the
sorting of data of the fields, which are called dimensions. There are two ways
in which Tableau carries out the sorting.
Computed Sorting is the sort directly applied on an axis using the sort
dialog button.
Manual Sorting is used to rearrange the order of dimension fields by
dragging them next to each other in an ad hoc fashion.
Computed Sorting
This type of sorting involves choosing a field to be sorted and directly applying
the sort using the sort dialog box. You have the option to choose the sort order
as ascending or descending and choose the field on which to apply the sort.
Example
Manual Sorting
This is basically changing the order in which the visualization elements appear
in the screen. For example, you want to show the sales volume of different
product segment in a descending order, however you have your own choice of
order. This sort is not as per the exact values of number or text, rather they
represent the user’s choice of ordering. Hence, they are called as manual
sorting.
Filtering is the process of removing certain values or range of values from a result
set. Tableau filtering feature allows both simple scenarios using field values as
well as advanced calculation or context-based filters. In this chapter, you will
learn about the basic filters available in Tableau.
There are three types of basic filters available in Tableau. They are as follows −
Filter Dimensions
These filters are applied on the dimension fields. Typical examples include
filtering based on categories of text or numeric values with logical expressions
greater than or less than conditions.
Filter Measures
These filters are applied on the measure fields. Filtering is based on the
calculations applied to the measure fields. Hence, while in dimension filters
you use only values to filter, in measures filter you use calculations based on
fields.
Filter Dates
Tableau treats the date field in three different ways while applying the date
field. It can apply filter by taking a relative date as compared to today, an
absolute date, or range of dates. Each of this option is presented when a date
field is dragged out of the filter pane.
Any data analysis and visualization work involves the use of extensive filtering
of data. Tableau has a very wide variety of filtering options to address these
needs. There are many inbuilt functions for applying filters on the records
using both dimensions and measures. The filter option for measures offers
numeric calculations and comparison. The filter option for dimension offers
choosing string values from a list or using a custom list of values. In this
chapter, you will learn about the various options as well as the steps to edit
and clear the filters.
Creating Filters
Filters are created by dragging the required field to the Filters shelf located
above the Marks card. Create a horizontal bar chart by dragging the measure
sales to the Columns shelf and the dimension Sub-Category to the Rows shelf.
Again drag the measure sales into the Filters shelf. Once this filter is created,
right-click and choose the edit filter option from the pop-up menu.
Measures are numeric fields. So, the filter options for such fields involve
choosing values. Tableau offers the following types of filters for measures.
Dimensions are descriptive fields having values which are strings. Tableau
offers the following types of filters for dimensions.
Creating a Dashboard
Step 1 − Create a blank worksheet by using the add worksheet icon located at
the bottom of the workbook. Drag the dimension Segment to the columns
shelf and the dimension Sub-Category to the Rows Shelf. Drag and drop the
measure Sales to the Color shelf and the measure Profit to the Size shelf. This
worksheet is referred as the Master worksheet. Right-click and rename this
worksheet as Sales_Profits. The following chart appears.
Step 2 − Create another sheet to hold the details of the Sales across the States.
For this, drag the dimension State to the Rows shelf and the measure Sales to
the Columns shelf as shown in the following screenshot. Next, apply a filter to
the State field to arrange the Sales in a descending order. Right-click and
rename this worksheet as Sales_state.
Step 3 − Next, create a blank dashboard by clicking the Create New Dashboard
link at the bottom of the workbook. Right-click and rename the dashboard as
Profit_Dashboard.
Step 4 − Drag the two worksheets to the dashboard. Near the top border line
of Sales Profit worksheet, you can see three small icons. Click the middle one,
which shows the prompt Use as Filter on hovering the mouse over it.
Step 5 − Now in the dashboard, click the box representing Sub-Category
named Machines and segment named Consumer.
You can notice that only the states where the sales happened for this amount
of profit are filtered out in the right pane named Sales_state. This illustrates
how the sheets are linked in a dashboard.