Tableau Demonstration
Tableau Demonstration
Note: When you drag Order Date to the Columns shelf, Tableau
creates a column for each year in your data set. Under each column is
an Abc indicator. This indicates that you can drag text or numerical
data here, like what you might see in an Excel spreadsheet. If you
were to drag Sales to this area, Tableau creates a crosstab (like a
spreadsheet) and displays the sales totals for each year.
To gain more insight into which products drive overall sales, try adding
more data. Start by adding the product categories to look at sales totals in a
different way.
1. From the Data pane, drag Category to the Columns shelf and place it to
the right of YEAR(Order Date).
From this view, you can see that sales for furniture is growing faster
than sales for office supplies, even though Office Supplies had a really
good year in 2021. Perhaps you can recommend that your company
focus sales efforts on furniture instead of office supplies? Your
company sells a lot of different products in those categories, so you'll
need more information before you can make a recommendation.
Note: You can drag and drop or double-click a field to add it to your
view, but be careful. Tableau makes assumptions about where to add
that data, and it might not be placed where you expect. You can
always click Undo to remove the field, or drag it off the area where
Tableau placed it to start over.
Filters and colors are ways you can add more focus to the details that
interest you. After you add focus to your data, you can begin to use other
Tableau Desktop features to interact with that data.
You can use filters to include or exclude values in your view. In this
example, you decide to add two simple filters to your worksheet to make it
easier to look at product sales by sub-category for a specific year.
1. In the Data pane, right-click Order Date and select Show Filter.
Adding filters helps you to sort through all of this data—but wow, that’s a
lot of blue! It's time to do something about that.
Currently, you are looking at sales totals for your various products. You can
see that some products have consistently low sales, and some products
might be good candidates for reducing sales efforts for those product
lines. But what does overall profitability look like for your different
products? Drag Profit to color to see what happens.
From the Data pane, drag Profit to Color on the Marks card.
By dragging profit to color, you now see that you have negative profit in
Tables, Bookcases, and even Machines. Another insight is revealed!
As you've learned, you can explore your data as you build views with
Tableau Desktop. Adding filters and colors helps you better visualize your
data and can identify problems right away.
The next step is to interact with your view so that you can begin drawing
conclusions.
Looking at your view, you saw that you had some unprofitable products, but
now you want to see if these products have been unprofitable year over
year.
1. In the view, in the Sub-Category filter card, clear all of the check
boxes except Bookcases, Machines, and Tables.
Now you can see that, in some years, Bookcases and Machines were
profitable. However, recently Machines are unprofitable. While you've made
an important discovery, you want to gather more information before
proposing any action items to your boss.
3. From the Data pane, drag Region to the Rows shelf and place it to
the left of Sum(Sales).
Now you see sales and profitability by product for each region. By adding
region to the view and filtering the Sub-Category for Machines only, you
notice that machines in the South are reporting a higher negative profit
overall than in your other regions. You've discovered a hidden insight!
This view best encapsulates your work so far. Select All in the Sub-
Category filter card (if you changed your filter) to show all sub-
categories again, name the worksheet, and add a title.
You choose to focus your analysis on the South, but you don't want to
lose the view you've created. In Tableau Desktop, you can duplicate
your worksheet to continue where you left off.
Now you can focus on sales and profit in the South. You immediately
see that machine sales had negative profit in 2018 and again in 2021.
This is definitely something to investigate!
4. Save your work by selecting File > Save As. Give your workbook a
name, such as Regional Sales and Profits
Because you're looking at geographic data (the Region field), you have the
option to build a map view. Map views are great for displaying and
analyzing this kind of information.
For this example, Tableau has already assigned the proper geographic roles
to the Country, State, City, and Postal Code fields. That's because it
recognized that each of those fields contained geographic data. You can get
to work creating your map view right away.
Tableau keeps your previous worksheet and creates a new one so that
you can continue exploring your data without losing your work.
Because Tableau already knows that state names are geographic data
and because the State dimension is assigned the State/Province
geographic role, Tableau automatically creates a map view.
Now, having a cool map focused on 48 states is one thing, but you
wanted to see what was happening in the South, remember?
Now you want to see more detailed data for this region, so you start to
drag other fields to the Marks card:
The view automatically updates to a filled map, and colors each state
based on its total sales. Because you're exploring product sales, you
want your sales to appear in USD. Click the Sum(Sales) field on
the Columns shelf, and select Format. For Numbers,
select Currency.
Sometimes you might not want your map to be blue. Maybe you prefer
green, or your data isn’t something that should be represented with
the color blue, like wildfires or traffic jams. That would just be
confusing!
No need to worry, you can change the color palette just like you did
before.
The data is accurate, and technically you can compare low performers
with high performers, but is that really the whole story?
Are sales in some of those states really that terrible, or are there just
more people in Florida who want to buy your products? Maybe you
have smaller or fewer stores in the states that appear red. Or maybe
there’s a higher population density in the states that appear green, so
there are just more people to buy your stuff.
Either way, there’s no way you want to show this view to your boss
because you aren't confident the data is telling a useful story.
7. Click the Undo icon in the toolbar to return to that nice, blue
view.
8. Drag Profit to Color on the Marks card to see if you can answer this
question.
Now that’s better! Because profit often consists of both positive and
negative values, Tableau automatically selects the Orange-Blue
Diverging color palette to quickly show the states with negative profit
and the states with positive profit.
It’s now clear that Tennessee, North Carolina, and Florida have negative
profit, even though it appeared they were doing okay—even great—in Sales.
But why? You'll answer that in the next step.
As you saw in the last step, maps are great for visualizing your data broadly.
A bar chart will help you get into the nitty-gritty. To do this, you create
another worksheet.
3. In the Negative Profit Bar Chart worksheet, click Show Me, and then
select horizontal bars.
Note: At any time, you can click Show Me again to collapse it.
4. To select multiple bars on the left, click and drag your cursor across
the bars between Tennessee, North Carolina, and Florida. On the
tooltip that appears, select Keep Only to focus on those three states.
Note: You can also right-click one of the highlighted bars, and
select Keep Only.
Notice that an Inclusions field for State is added to the Filters shelf to
indicate that certain states are filtered from the view. The icon with
two circles on the field indicates that this field is a set. You can edit
this field by right-clicking the field on the Filters shelf and
selecting, Edit Filter.
Now you want to look at the data for the cities in these states.
5. On the Rows shelf, click the plus icon on the State field to drill-down
to the City level of detail.
There’s almost too much information here, so you decide to filter the view
down to the cities with the most negative profit by using a Top N Filter.
You can use a Top N Filter in Tableau Desktop to limit the number of marks
displayed in your view. In this case, you want to use the Top N Filter to
hone in on poor performers.
2. In the Filter dialog box, select the Top tab, and then do the following:
a. Click By field.
a. Click OK.
What happened to the bar chart, and why is it blank? That's a great
question, and a great opportunity to introduce the Tableau Order of
Operations.
1. Extract Filters
4. Top N Filters
5. Dimension Filters
6. Measure Filters
The good news is you can tell Tableau to change this order when you
notice something strange happening with the filters in your view. In
this example, the Top N Filter is applied to the five poorest
performing cities by sum of profit for the whole map, but none of
those cities are in the South, so the chart is blank.
To fix the chart, add a filter to context. This tells Tableau to filter that
field first, regardless of where it falls on the order of operations.
But which field do you add to context? There are three fields on
the Filters shelf: Region (a dimension filter), City (a top N filter),
and Inclusions (Country, State) (Country, State) (a set).
If you look at the order of operations again, you know that the set and
the top N filter are being applied before the dimension filter. But do
you know if the top N filter or the set filter is being applied first? Let's
find out.
3. On the Filters shelf, right-click the City field and select Add to
Context.
The City field turns gray and moves to the top of the Filters shelf, but
nothing changes in the view. So even though you're forcing Tableau to
filter City first, the issue isn't resolved.
4. Click Undo.
The Inclusions (Country, State) (Country, State) set turns gray and
moves to the top of the Filters shelf. And bars have returned to your
view!
You're on to something! But there are six cities in the view, including
Jacksonville, North Carolina, which has a positive profit. Why would a
city with a positive profit show up in the view when you created a
filter that was supposed to filter out profitable cities?
1. Drag Sub-Category to the Rows shelf, and place it to the right of City.
2. Drag Profit to Color on the Marks card to make it easier to see which
products have negative profit.
3. In the Data pane, right-click Order Date and select Show Filter.
You can now explore negative profits for each year if you want, and
quickly spot the products that are losing money.
Machines, tables, and binders don’t seem to be doing well. So, what if
you stop selling those items in Jacksonville, Concord, Burlington,
Knoxville, and Memphis?
1. Go back to your map view by clicking the Profit Map sheet tab.
3. From the Data pane, drag Profit and Profit Ratio to Label on the
Marks card. To format the Profit Ratio as a percentage, right-
click Profit Ratio, and select Format. Then, for Default Numbers,
choose Percentage and set the number of decimal places you want
displayed on the map. For this map, we'll choose zero decimal places.
Now you can see the exact profit of each state without having to hover
your cursor over them.
4. In the Data pane, right-click Order Date and select Show Filter to
provide some context for the view.
A filter card for YEAR(Order Date) appears in the view. You can now
view profit for all years or for a combination of years. This might be
useful for your presentation.
5. Clear Binders, Machines, and Tables from the list on the Sub-
Category filter card in the view.
Recall that adding filters to your view lets you include and exclude
values to highlight certain parts of your data.
As you clear each member, the profit for Tennessee, North Carolina,
and Florida improve, until finally, each has a positive profit.
Binders, machines, and tables are definitely responsible for the losses
in Tennessee, North Carolina, and Florida, but not for the rest of the
South. Do you notice how profit actually decreases for some of the
other states as you clear items from the filter card? For example, if
you toggle Binders on the Sub-Category filter card, profit drops by
four percent in Arkansas. You can deduce that Binders are actually
profitable in Arkansas.
You want to share this discovery with the team by walking them
through the same steps you took.
Next, you'll assemble the work you've done so far in a dashboard so that you
can clearly present your findings.
You want to emphasize that certain items sold in certain places are doing
poorly. Your bar graph view of profit and your map view demonstrate this
point nicely.
2. In the Dashboard pane on the left, you'll see the sheets that you
created. Drag Sales in the South to your empty dashboard.
3. Drag Profit Map to your dashboard, and drop it on top of the Sales in
the South view.
But sadly, the bar chart is a bit squished, which isn’t helping your boss
understand your data.
Arrange your dashboard
It's not easy to see details for each item under Sub-Category from your
Sales in the South bar chart. Also, because we have the map in view, we
probably don't need the South region column in Sales in the South, either.
Resolving these issues will give you more room to communicate the
information you need.
The title Profit Map is hidden from the dashboard and even more
space is created.
4. Repeat this step for the Sales in the South view title.
5. Select the first Sub-Category filter card on the right side of your
view, and at the top of the card, click the Remove icon .
6. Repeat this step for the second Sub-Category filter card and one of
the Year of Order Date filter cards.
7. Click on the Profit color legend and drag it from the right to below
Sales in the South.
8. Finally, select the remaining Year of Order Date filter, click its drop-
down arrow, and then select Floating. Move it to the white space in
the map view. In this example, it is placed just off the East Coast, in
the Atlantic Ocean.
Try selecting different years on the Year of Order Date filter. Your
data is quickly filtered to show that state performance varies year by
year. That's nice, but it could be made even easier to compare.
Add interactivity
The Sales in the South bar chart automatically updates to show just
the sub-category sales in the selected state. You can quickly see which
sub-categories are profitable.
3. Click an area of the map other than the colored Southern states to
clear your selection.
You also want viewers to be able to see the change in profits based on
the order date.
4. Select the Year of Order Date filter, click its drop-down arrow, and
select Apply to Worksheets > Selected Worksheets.
This option tells Tableau to apply the filter to all worksheets in the
dashboard that use this same data source.
Rename and go
You show your boss your dashboard, and she loves it. She's named it
"Regional Sales and Profit," and you do the same by double-clicking
the Dashboard 1 tab and typing Regional Sales and Profit.
In her investigations, your boss also finds that the decision to introduce
machines in the North Carolina market in 2021 was a bad idea.
Your boss is glad she has this dashboard to explore, but she also wants you
to present a clear action plan to the larger team. She asks you to create a
presentation with your findings.