Page trails

Websites often have page trails that help users to find their way around the site. Similarly, in Tableau, we can add features that will help business users to reduce the number of actions that they need to take in order to navigate through the workbook. These actions can help to make worksheets more findable in a Tableau workbook. Findable refers to the ease with which a website can be found, and it is also relevant to finding pages within a Tableau workbook.

Linking workbooks together is an effective visual tool that helps the user to understand where they are in terms of the user's location within the workbook. It also helps to add context. In this recipe, we will look at user-oriented trails in a Tableau workbook.

Getting ready

In this recipe, we will use the existing workbook that you created earlier in this chapter. If you have taken the Number of Records field and put it onto the white canvas, remove it.

How to do it…

  1. First, let's rename the worksheet to Overview.
  2. Let's take the SalesAmount metric from the FactInternetSales table, and place it onto the white canvas.
  3. Then, navigate to the DimSalesTerritory dimension, look for the SalesTerritoryCountry attribute, and drag it onto the white canvas.
  4. Once you have the fields in place, let's select the filled map from the Show Me panel. To help you find it, you can see the next screenshot:
    How to do it…
  5. Let's work with the visualization of data. An example of data visualization is given in the next screenshot:
    How to do it…
  6. Now, let's work on the color and the size. For the color, let's drag the SalesAmount metric from the FactInternetSales table, and place it onto the Color button on the Marks shelf.
  7. When you see the SUM(SalesAmount) metric on the Marks shelf, right-click on the arrow on the right-hand side of the dialog box. Select the Edit Colors option. You can see this in the next screenshot:
    How to do it…
  8. From the drop-down list, select the Blue option for color.
  9. Then, we will select the Stepped Color option.
  10. Next, select 3 steps and click on OK.
  11. Some of the colors might appear a little pale on the screen, so we will give a very light border to the shapes. To do this, click on the Color button on the Marks shelf.
  12. Look for the Effects section for the Border option. Here, you will get a drop-down list that gives you the option to change the color. In this example, the border has been changed to a mid-purple color, since it is softer than black or dark grey, as shown in the following screenshot:
    How to do it…

    Once you have made these changes, the screen will appear as you can see in the following screenshot:

    How to do it…
  13. So, let's proceed towards creating our Product Category Detail worksheet. Now that we have an Overview worksheet, we will create a Product Category Detail worksheet that we would like to navigate to. To do this, simply right-click on the tab and select Duplicate Sheet.
  14. Rename the duplicated worksheet to Product Category Detail.
  15. Navigate to the DimProductCategory dimension, look for the EnglishProductCategoryName attribute, and drag it to the Rows shelf.
  16. Next, let's add an action that will allow the user to simply right-click on country on the Overview worksheet, and they are presented with the Product Category Detail worksheet. To add an action, go to the Worksheet menu item and choose the Actions… option. The following screenshot is an example of this:
    How to do it…
  17. Now, when we click on the Actions… menu item, we get a dialog box. We should now click on the Add Action > button, and this will give us a number of options, as shown in the next screenshot:
    How to do it…

    We have three options, as follows:

    • Filter: This action means that you can make a trail between worksheets—from the summary to more specific data—going down to the details
    • Highlight: This action emphasizes specific data points dependent on the rules you set up
    • URL: This action allows you to link to external data, such as a website or a SQL Server Reporting Services report
  18. In this example, we will choose a straightforward Filter example. When you select the Filter option, you will get the dialog box that appears in the next screenshot:
    How to do it…
  19. Set the Name field to ProductCategoryFilter. We will set the Overview worksheet as the source sheet, and press on the Select button on the right-hand side. Then, set the Product Category Detail worksheet as the target sheet.
  20. When you've selected the correct sheets, click on OK, and your action is all set up.
  21. We can test whether the action works simply by going to the Overview worksheet and right-clicking on a country, and then click on the Product Category Detail option at the bottom of the pop-up menu. So, for example, if you click on Australia, then the Product Category Detail worksheet will appear with Australia in the middle of the page.
  22. To summarize, we have set up a simple Tableau action that links worksheets together. This improves the user's experience in navigating through the data, in that, they can get the results from the dashboard quickly.

How it works…

In this recipe, we have used actions so that we can create worksheets that are more detailed than the Overview worksheet. Research has shown that people tend to prefer navigating from the summary data down towards the details, so our page trails will work in the same way.

There's more…

An important item to note is the item marked Target Sheets, in the Edit Filter Action dialogue box. There are options to Leave the Filter, Show All Values, or Exclude all Values. These features allow you to preserve the filter or release the filter when the user goes from one worksheet to another.

In our example, we preserved the filter. This means that we are facilitating user navigation by going from a summary view to a more detailed, filtered view.

Why did we only choose three colors to represent the SalesAmount value? We are not distinguishing the colors at a fine-grained level. Instead, we are using color to broadly distinguish the value of SalesAmount into three categories. The lower values are represented by a light color, and the higher values are represented by a darker color—a more intense blue. Research has shown that people tend to associate lighter colors with smaller values, and more intense, bright, or dark colors with higher values. You can follow this up by looking at Show Me the Numbers: Designing Tables and Graphs to Enlighten, Second Edition, Stephen Few, Analytics Press.

Using color in this way does not provide you with any details, but it can help you to see patterns in the data very quickly. This is extremely useful for dashboarding.

See also

  • Designing the User Interface: Strategies for Effective Human-Computer Interaction, Fifth Edition, Ben Shneiderman, Catherine Plaisant, Maxine Cohen, Steven Jacobs, Prentice Hall
  • Show Me the Numbers: Designing Tables and Graphs to Enlighten, Second Edition, Stephen Few, Analytics Press
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset