Chapter 6. Level of Detail and Table Calculations

In the previous chapter, you learned how to use custom calculations to create new fields that add context and insights to the story that you are telling with Tableau Public. In this chapter, we will discuss how you can use table calculations and level of detail calculations to enhance the comparisons that you are making with the data. We will build on several of the calculations that we have created to show you how to make them more dynamic and contextual.

The table calculations are different from the traditional calculations because they are performed locally on the data in the cache, that is, the data that Tableau Public has used to create the visualization. Not all data that is in your data set is in use all the time. The data in the cache is what Tableau Public is using in the memory to render your visualization. Therefore, the data that you have filtered out will not be included in the table calculations.

Level of detail calculations, which are a new feature in Tableau 9.x, allow you to tell Tableau Public at exactly which dimensional level you want the calculations to be aggregated. We are discussing them along with table calculations because some of the concepts are very similar.

Table calculations have the following major functions:

  • Calculating change over time as a relative percentage
  • Calculating the percentage of a whole attributed to a one-dimensional member
  • Calculating change relative to other members of a dimension
  • Distinguishing the maximum or minimum values in a partition
  • Moving calculations, such as averages and sums
  • Running calculations, such as running sums, that are used for waterfall and Pareto graphs

The following are the level of detail calculations that Tableau Public enables you to do:

  • Fix the level of aggregation
  • Include specific dimensions, that may not be present on the visualization, in calculations
  • Exclude specific dimensions, that are present on the visualization, from specific calculations

In this chapter, we will discuss the following table calculations:

  • Creating quick table calculations
  • Addressing and partitioning table calculations
  • Changing over time
  • Editing table calculations
  • Moving averages – window max and running max
  • Ranks and percentiles
  • Difference from the average

The level of detail calculation concepts that we will discuss involve fixing, including, and excluding dimensions, as well as nesting calculations and limitations. A brief exercise on editing fields in the shelf is also included in this chapter.

About data sources

We will continue using the World Development Indicators data source, as some of these examples will be included in the dashboard that we will develop later in this book. You can download the data from the World Bank by visiting http://data.worldbank.org/products/wdi.

..................Content has been hidden....................

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