-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Mastering Tableau
By :

The road to the mastery of Tableau begins with three essential concepts. We will consider each of the following in turn:
Tableau categorizes every field from an underlying data source as either a dimension or a measure. A dimension is qualitative or, to use another word, categorical. A measure is quantitative or aggregable. A measure is usually a number but may be an aggregated, non-numeric field, such as MAX(Order Date). A dimension is usually a text, Boolean, or date field, but may also be a number, such as Order_ID. Dimensions provide meaning to numbers by slicing those numbers into separate parts/categories. Measures without dimensions are mostly meaningless.
Let's consider an example to better understand this concept.
Dimensions and Measures
.
The result of step 2 is mostly meaningless. The measure Sales is about $2.3 million, but without the context supplied by slicing the measure with one or more dimensions, there is no way to understand what it means. Step 2 brings meaning. Placing Order Date and Category on the Columns shelf provides context, which imparts meaning to the visualization.
There are three levels of calculations in Tableau: Row, Aggregate, and Table. To understand how these three levels function, it is important to be familiar with the Tableau process flow:
Let's follow the flow of the preceding figure to understand where the three levels of calculations take place. We will do so via an example considering the fields Profit and Sales. Assuming SQL, consider the following calculation types, calculated fields, and queries. Note that the SQL is simplified for the sake of the example:
Calculation type |
Calculated field in Tableau |
Query passed to Data Source |
Row level |
|
|
Aggregate level |
|
|
Table level |
|
|
For the row-level calculation, the computation is actually completed by the data-source engine. Tableau merely displays the results. For the aggregate level calculation, Tableau does a little bit more than display the results; it also divides the two numbers that are returned by the data-source engine. For the table-level calculation, Tableau may perform additional computations on the returned results. Let's explore further via an exercise using the similar calculated fields.
Row_Agg_Tbl
.
Name |
Calculation |
Lev - Row |
|
Lev - Agg |
|
Lev - Tab |
|
Lev - Agg is an aggregate-level calculation. The aggregated results of [Number of Records]
and [Quantity]
are returned by the data-source engine. Tableau divides those results and displays values for each year.
Lev - Row is a row-level calculation. The computation is completed by the data-source engine. [Number of Records]
is divided by [Quantity]
for each row of the underlying data. The results are then summed across all rows. Of course, in this case, the row-level calculation does not provide useful results; however, since a new Tableau author may mistakenly create a row-level calculation when an aggregate-level calculation is what is really needed, the example is included here.
Lev - Tab is a table-level calculation. Some of the computation is completed by the data-source engine; that is, the aggregation. Tableau completes additional computation on the results returned from the data-source engine. Specifically, the results of Lev - Agg are summed and then divided by the number of members in the dimension. For the preceding example, this is (26.29% + 26.34% + 26.30% + 26.55%)/4. Once again, the results in this case are not particularly helpful, but they do demonstrate knowledge the budding Tableau author should possess.
Continuous and discrete are not concepts that are unique to Tableau. Indeed, both can be observed in many arenas. Consider the following example:
This is an image of two rivers - River-Left and River-Right. Water is flowing in River-Left. River-Right is composed of ice cubes. Could you theoretically sort the ice cubes in River-Right? Yes! Is there any way to sort the water in River-Left? In other words, could you take buckets of water from the bottom of the river, cart those buckets upstream and pour the water back into River-Left and thereby say, I have sorted the water in the river? No. The H2O in River-Left is in continuous form; that is, water. The H2O in River-Right is in discrete form; that is, ice.
Having considered an example of continuous and discrete in natural phenomena, let's turn our attention back to Tableau. Continuous and discrete in Tableau can be more clearly understood via the following seven considerations:
Change the font size
Change margin width
Change background colour