course_dv

Table Calculations

This section introduces table calculations in Tableau. Table calculations are a powerful way to perform calculations on your data within Tableau, allowing you to create new fields based on existing data.

Outcomes:

Links:

Good Example:

Common exam mistakes:

Difference between calculated fields and table calculations

A calculated field is a new field that you create based on existing data in your dataset. It is calculated at the row level and can be used in any part of your visualization. For example, you might create a calculated field to calculate the profit margin by dividing profit by sales.

A table calculation, on the other hand, is a calculation that is performed on the data after it has been aggregated in the view. It is calculated at the level of the visualization and can be used to perform calculations such as running totals, percent of total, or rank. For example, you might use a table calculation to calculate the running total of sales over time.

The key difference is that calculated fields are calculated before the data is aggregated, while table calculations are calculated after the data is aggregated.

Examples:

Create a Quick Table Calculation

Tableau has a feature called Quick Table Calculations that allows you to easily create common calculations on your data without writing complex formulas.

To use Quick Table Calculations:

You should be able to create the following table calculations:

Common decisions include:

Tasks for Names dataset