This module introduces filtering and sorting techniques in Tableau. We will cover how to filter data at different levels and how to sort data effectively to enhance your visualizations.
Outcomes:
Links:
Tableau can split fields based on a delimiter. Right-click on a field and select Split. Tableau will create new fields based on the detected delimiter. You should probably rename the new fields, and often will need to set the datatype.
You can create new fields based on calculations of existing fields. Right-click in the data pane and select Create Calculated Field. You can use a variety of functions to create new measures or dimensions.
Sort menu. You can pick from original data, or choose an alternative sort option.Use Pages for a different style of filter
We sometimes need to adjust our incoming data. Two transformations we often use are pivoting and joining.
Understand the different levels of filtering
Extraction filters/Data source are used on the dataset. We don’t use these options, as we generally will pull from csv files in this course. They are typically used when we give parameters to a query from a database.Context is used when clicking on items in a dashboard. We will see this more when creating dashboards later in the course.Dimension/Measure can be filtered on a row-levelAggregate filters are applied to the result of a function on a measure. For example, show only regions with SUM(sales) over $1 million.Generally you should focus on two types of filters: row and aggregate. Use a row-level to filter on a single’s row value. Use aggregate when we want to look at the result of SUM/COUNT/etc… These correspond to SQL’s WHERE and HAVING clauses.
Add a filter by:
all values to filter on the row-levelSUM) when you want to filter on an aggregate measure.Filter options: