Tableau: Interview Guide
Tableau: Interview Guide
Tableau: Interview Guide
TABLEAU
Interview Guide
1 | www.simplilearn.com
Ace Your Tableau
Interview
Data is the currency of business, interactive, data-based visualizations.
allowing smarter decision-making As data-centric business processes
based on granular information. As continue to take hold, so too is the
more and more sources of data are demand for IT professionals proficient
getting discovered, businesses at in Tableau.
all levels and scales embrace data
We have clubbed a list of the most
visualization softwares, that allows
popular questions you can expect
them to analyze and explore trends
in an interview. So prepare ahead of
visually and take quicker and seamless
time, and crack your Tableau interview
decisions. One of the leading tools for
in the first go, and step into an exciting
making sense of data in a business
career using the popular software.
setting is Tableau, which enables
2 | www.simplilearn.com
Interview Guide
Dimensions Measures
Dimensions contain Measures contain numeric,
qualitative values (such quantitative values that you can
as names, dates, or measure (such as Sales, Profit)
geographical data)
Measures can be aggregated
You can use dimensions to
categorize, segment, and Example:
reveal the details in your Profit, Quantity, Rank, Sales,
data. Sales per Customer, Total
Example: Orders
3 | www.simplilearn.com
Interview Guide
A: Tableau filters are a way of restricting the content of the data that may enter a
Tableau workbook, dashboard, or view.
The different types of Tableau filters are:
Extract filters
Context filters
Data source filters
Filters on measures
Filters on dimensions
Table calculation filter
4 | www.simplilearn.com
Interview Guide
Looking above, the corporate segment has 32.12 percent of the total profits.
A: Combining the data from two or more different sources is data blending such
as Oracle, Excel, and SQL Server. In data blending, each data source contains
its own set of dimensions and measures.
Combining the data between two or more tables or sheets within the same
data source is data joining. All the combined tables or sheets contains common
set of dimensions and measures.
5 | www.simplilearn.com
Interview Guide
A: Tableau Data Extracts are snapshots of data optimized for aggregation and
loaded into system
memory to be quickly recalled for visualization.
Example: Hospitals that monitor incoming patient data need to make real-time decisions.
Live connections offer the convenience of real-time updates, with any changes
in the data source reflected in Tableau.
Example: Hospitals need to monitor patient’s weekly or monthly trends require data extracts.
If you have the Tableau server, the extract option can be set to a refresh
schedule to be updated.
A: A calculated field is used to create new (modified) fields from existing data in
the data source. It can be used to create more robust visualizations and doesn’t
affect the original dataset.
The data set considered here has information regarding order date and ship
date for four different regions. To create a calculated field:
1. Go to Analysis and select Create Calculated Field.
2. A
calculation editor pops up on the screen. Provide a name to the calculated
field: Shipping Delay.
3. Enter the formula: DATEDIFF (‘day’, [Order Date], [Ship Date])
4. Click on Ok.
6 | www.simplilearn.com
Interview Guide
7. D
rag Region field to Rows shelf and SUM(Average Shipping Delay) to the
marks card; the average delay for each region gets displayed.
Q. How can you display top five and bottom five sales in the same view?
7 | www.simplilearn.com
Interview Guide
Did you know?
We can’t use groups in calculated fields but we can use sets.
8 | www.simplilearn.com
Interview Guide
A: A parameter is a dynamic value that a customer could select and you can use it
to replace constant values in calculations, filters, and reference lines.
For example, when creating a filter to show the top 10 products based on total
profit instead of the fixed value, you can update the filter to show the top 10,
20, or 30 products using a parameter.
Continuing with the same example of top five and bottom five customers,
follow these steps:
1. Select the drop-down arrow on the top right corner of the Data pane.
2. Click on Create Parameter and fill the details:
a. Name - Number of top/bottom customers
b. Select ‘Range’ for Allowable Values and fill the fields as:
i. Minimum - 5
ii. Maximum - 20
iii. Step - 5
3. Edit the set ‘Top Customers’ by changing ‘By Field’ value of 5 with ‘Select
number of top/bottom customers.’ Do the same changes in ‘Bottom
Customers’ set.
4. Go to the created parameter on the data pane, right-click on it and select
‘Show Parameter Control.’ Now, if you increase the step within the range, the
data appears as per the parameter value set.
A: Heat Maps
9 | www.simplilearn.com
Interview Guide
A Heat map is used to compare categories using color and size. In this, we can
compare two measures.
Scenario: Show sales and profit in all regions for different product category and sub-category.
A heat map is not only defined by color, but you can also use its size. Here we
define the size by sale by dragging the Sales tab to Size under marks card,
comparing profit and sales through the color and size.
Analysis: Profit is represented by color and ranges from orange for loss to blue
for profit. The total sales is represented by size.
10 | www.simplilearn.com
Interview Guide
Tree Maps
A Tree map is used to represent hierarchical data. The space in the view is
divided into rectangles that are sized and ordered by a measure.
Scenario: Show sales and profit in all regions for different product category and sub-category.
Analysis: The larger the size of the node, the greater the profit in that category.
Similarly, the darker the node, the more sales in that category.
A: .twbx
The .twbx contains all of the necessary information to build the visualization
along with the data source. This is called a packaged workbook and it
compresses the package of files all together.
.twb
The .twb just contains instructions about how to interact with the data source.
When it's building a visualization, Tableau will look at the data source and then
build the visualization with an extract. It can’t be shared alone as it contains
only instructions and the data source needs to be attached separately.
Tableau uses a workbook and sheet file structure, much like Microsoft Excel.
11 | www.simplilearn.com
Interview Guide
A: Blended Axis is used to blend two measures that share an axis when they have
the same scale.
Scenario: Show Min and Max profit in the same pane and have a unified axis for both, so that it
is quicker and easier to interpret the chart.
First, create a visualization that shows sales over time. Next, see profit along
with sales over the same time. Here, you get two visualizations, one for sales
over time and the other for profit over time.
To see a visualization that has a blended axis for sales over time and profit
over time, we bring in Measure Values and select the properties that we want
to keep (Sales and Profit), removing all of the rest. You can now see profit and
sales over one blended axis.
12 | www.simplilearn.com
Interview Guide
A: Dual Axis allows you to compare measures, and this is useful when you want to
compare two measures that have different scales.
Considering the same example used in the above question, first create a
visualization with sales over time and profit over time. To create a dual axis,
right-click on the second pill of the measures and select Dual Axis.
Observe that sales and profit do not share the same axis, and profit is much
higher towards the end.
13 | www.simplilearn.com
Interview Guide
The difference between a blended axis and a dual axis chart is that the blended
axis uses the same scale, while a dual axis could have two different scales and
two marks cards.
Scenario: We want to show Sales by year and Profit Ratio by year in the same view.
We create a visualization of sales over time and profit ratio over time.
Observe that sales and profit ratio can’t use the same scale as profit ratio is in
percentage. As we want the two parameters on the same area, we right click
on Profit Ratio and select Dual Axis.
A: Left(3, “Tableau”)
It will return an error because the correct syntax is: left(string, num_chars). So,
it should be: Left(“Tableau”, 3)
14 | www.simplilearn.com
Interview Guide
Left returns a specific number of characters from the start of the given string.
If the correct syntax is followed, the result would be ‘Tab’.
A: If the field contains null values or if there are zeros or negative values on a
logarithmic axis, Tableau cannot plot them. Tableau displays an indicator in the
lower right corner of the view, and you can click the indicator and choose from
the following options:
Filter Data - Excludes the null values from the visualization using a filter. In that
case, the null values are also excluded from any calculations used in the view.
Show Data at Default Position - Shows the data at a default location on the
axis.
Clearly, Chairs is the sub category which is ranked #2 for the first class
shipment mode.
Q. Find the customer with the lowest overall profit. What is their profit
ratio?
A: Draw a visualization between Customers and their profit and sort it from
smallest to biggest.
15 | www.simplilearn.com
Interview Guide
Here, Cindy Stewart is the one who has the lowest profit. To determine her
profit ratio:
16 | www.simplilearn.com
Interview Guide
rank
rank_dense
rank_modified
rank_unique
1. Drag Store field to Rows shelf and Sales field to the marks card.
2. Create a Calculated Field named Rank and use the formula: RANK (SUM(Sales))
3. Bring Rank field to the marks card.
4. D
ouble-click on Rank field and you can see the rank assigned to the stores
based on sales.
Next, duplicate the Rank field by right clicking on it and selecting Duplicate.
Name the copy as ‘Rank Modified’ and use the formula:
RANK MODIFIED (SUM(Sales))
Bring Rank Modified to the marks card to view the data.
Repeat the same steps to create ‘Rank Dense’ and use the formula:
RANK DENSE (SUM(Sales))
Similarly, create ‘Rank Unique’ and use the formula:
RANK UNIQUE (SUM(Sales))
17 | www.simplilearn.com
Interview Guide
1. Go to the dashboard.
2. Double click ‘Webpage’ option available under ‘Objects.’
18 | www.simplilearn.com
Interview Guide
3. Do not provide a URL in the dialog box that appears and click on Ok.
4. Click on the Dashboard in the menu and select ‘Action.’
5. Click on ‘Add Action’ and select ‘Go to URL.’
6. E
nter ‘https://en.wikipedia.org/wiki/’ under URL option. Click on the arrow
adjacent to it and select ‘State.’
7. Click on ‘Select option’ and hit ‘Ok.’
Now, when you click on any state like California, it brings up the California
Wikipedia page. This is how to make it dynamic.
A: Follow these simple steps to show region wise profit and sales:
1. Drag Profit and Sales field to the Rows shelf
2. Drag Region field to the Columns shelf
But for such questions, the interviewer may be looking for your mapping
capabilities in Tableau.
So, you need to follow these steps to show region wise profit and sales in a
better way:
1. Double click on State field to get its view
2. Go to Marks card and change the mark type from Automatic to Map.
3. Bring Region field to Color on the marks card
4. Drag Profit, Sales, and State fields to Label on the marks card
19 | www.simplilearn.com
Interview Guide
These steps produce a better view of region wise profit and sales as shown:
A: There are multiple ways to optimize the performance of the dashboard like:
Maximize the number of fields and records. You can exclude unused fields from
your visualization or use extract filters.
Limit the amount of filters used, by avoiding quick filters and using action and
parameter filters instead. These filters reduce query loads.
Use Min/Max instead of Average because average functions require more
processing time than Min/Max
Use boolean or numerical calculations more than string calculations.
Computers can process integers and boolean much faster than strings.
Boolean > int > float > date time > string
20 | www.simplilearn.com
Interview Guide
entity) is missing and displaying a null when you use map view?
21 | www.simplilearn.com
Interview Guide
Here, the sales is shown for a category like Furniture and its sub-categories
(Chairs, Tables, etc.). To look at sales for furniture category as a whole and
not its sub-categories, remove the sub-category from the calculation field as
shown:
Scenario: We want to measure our success by the total profit per business day.
Create a calculated field named LOD - Profit per day and enter the formula:
FIXED [Order Date] : SUM ([Profit])
Create another calculated field named LOD - Daily Profit KPI and enter the
formula:
IF [LOD - Profit per day] > 2000 then “Highly Profitable”
ELSEIF [LOD - Profit per day] <= 0 then “Unprofitable”
ELSE “Profitable”
END
22 | www.simplilearn.com
Interview Guide
To calculate daily profit measure using LOD, follow these steps to draw the
visualization:
1. Bring YEAR(Order Date) and MONTH(Order Date) to Columns shelf
2. D
rag Order Id field to Rows shelf. Right click on it, select Measure, and click on
Count(Distinct)
3. Drag LOD - Daily Profit KPI to the Rows shelf
4. B
ring LOD - Daily Profit KPI to marks card and change mark type from
automatic to area.
23 | www.simplilearn.com
Interview Guide
INDIA USA
Simplilearn Solutions Pvt Ltd. Simplilearn Americas, Inc.
# 53/1 C, Manoj Arcade, 24th Main, 201 Spear Street, Suite 1100,
Harlkunte San Francisco, CA 94105
2nd Sector, HSR Layout United States
Bangalore: 560102 Phone No: +1-844-532-7688
Call us at: 1800-212-7688
www.simplilearn.com
24 | www.simplilearn.com