Creating Story
Overview
Time: minObjectives
How to create a story in Tableau
- A story in tableau is a sequence of visualizations (either worksheets or dashboards) that help convey information. Before we start creating a story, lets create some more visualizations and dashboard.
- In the earlier section, we focused mostly on sales. In this section, we will create visualizations focused on profits.
Regional Sales and Profits Chart – To visualize the sales and profits of all the sub-categories across the regionswe create a horizontal bar chart.
- First, we add Region from the dimensions list to the columns shelf and then sub-category to rows shelf. To observe the sales, we add sales from the measures list to column shelf.
- The visualization created gives us the sales of all the sub-categories of product across all the regions in the US. Sort the bar chart in descending order for a better view.Now to observe profits of all the sub-categories across all the regions, we make use of colors mark card. When we add profits from measures list to colors mark card, it depicts the profits. There is a default color palette(orange to blue diverging). To change the color palette, click on the colors mark card and select ‘edit color’. From the drop down select the color palette which is the most appropriate for the chart.
- For this chart, we select ‘Red-Green Diverging’ color palette. The reason for selecting this palette is that culturally we associate green color to prosperity or progress and red to danger.
Not all viewers have the same visual acuity.Some of them might suffer from colorblindness. So, selecting such color palette which is colorblind-friendly is important.Blue-Orange is a common colorblind-friendly palette.
- Profit and Sales–To create this graph, we first need to drag the sub-category field from dimensions and drop it in the columns shelf.
- Next drag the sales from measures and drop it in the rows shelf. This chart shows the sales across sub-category.
- To add profits, you drag the profits from measures and drop it on the color marks card.
- Profit Trends–To visualize profit trends, add order datemonthto columns shelfand profit to rows shelf.We will then add profits to colors mark card.
- We also changed the month from discrete to continuousand add trend line by right clicking on the white space in the chart and selecting trend line option.
- Profit in Dollars–To visualize profits in value we duplicate the sheet and make necessary changes in them.
- Right click on the sheet name andselect duplicate from the options to duplicate a sheet. Next, select bar chart from the drop down in from the mark cards on the left.
- State-wise Profits–Similar to sales by state (Page 6).We change the color palette to red-green diverging
-
City-wise Profits–Similar to city by sales (Page 7). We change the color palette to red-green diverging.
- Profits and Discounts–To visualize profits and discounts drag and drop discounts to column shelf and profits to row shelf.
- Add profits to color marks card and change the palette to red-green diverging.Right click on the chart and add trend line by clicking on ‘show trend line’.
- Dashboard 1 –Profits Overview–Open a dashboard. Adjust the size option on the left to Automatic.
- Drag and drop sheets –Profit and sales, Profit trends, Profit in dollars.Arrange the charts in the following way –
- From the graph we can see that tables sub-category is the one with high sales and high loss.
- Let us add a filter to the first graph. By adding filter, we can filter out profit trends and profit in dollars for tables. Click on the filter on the first chart and click on tables.The dashboard will be show profits related to tables.
- Dashboard 2 –Profit across country–To create this dashboard, drag and drop profit and sales chart, state-wise profitand city-wise profits.
- Add filter to the profit and sales chart (just like we did in the previous dashboard).
- Dashboard 3 –Profit and Discount–Add profit and sales chart and profit and discount chart. Add filter as added in the previous steps.
- Creating a story–
- Arranging the charts /dashboards and adding meaningful captions is creating story. Start with a high-level approach of the problem.
- In our case, the issue is that tables are high in sales but provide the most loss in terms of profit. We then observe the sales trend for the same.
- We take a look at the geographical distribution and observe that state of Washington and Virginia are doing good. We come to a conclusion by looking at the discounts and profits chart that discounting is not a good option for tables.
Key Points