English 中文(简体)
Tableau Tutorial

Tableau Data Sources

Tableau Worksheets

Tableau Calculations

Tableau Sort & Filters

Tableau Charts

Tableau Advanced

Tableau Useful Resources

Selected Reading

Tableau - Filter Operations
  • 时间:2024-12-22

Tableau - Filter Operations


Previous Page Next Page  

Any data analysis and visuapzation work involves the use of extensive filtering of data. Tableau has a very wide variety of filtering options to address these needs. There are many inbuilt functions for applying filters on the records using both dimensions and measures. The filter option for measures offers numeric calculations and comparison. The filter option for dimension offers choosing string values from a pst or using a custom pst of values. In this chapter, you will learn about the various options as well as the steps to edit and clear the filters.

Creating Filters

Filters are created by dragging the required field to the Filters shelf located above the Marks card. Create a horizontal bar chart by dragging the measure sales to the Columns shelf and the dimension Sub-Category to the Rows shelf. Again drag the measure sales into the Filters shelf. Once this filter is created, right-cpck and choose the edit filter option from the pop-up menu.

Editing filter

Creating Filters for Measures

Measures are numeric fields. So, the filter options for such fields involve choosing values. Tableau offers the following types of filters for measures.

    Range of Values − Specifies the minimum and maximum values of the range to include in the view.

    At Least − Includes all values that are greater than or equal to a specified minimum value.

    At Most − Includes all values that are less than or equal to a specified maximum value.

    Special − Helps you filter on Null values. Include only Null values, Non-null values, or All Values.

Following worksheet shows these options.

Adding filter measure

Creating Filters for Dimensions

Dimensions are descriptive fields having values which are strings. Tableau offers the following types of filters for dimensions.

    General Filter − allows to select specific values from a pst.

    Wildcard Filter − allows to mention wildcards pke cha* to filter all string values starting with cha.

    Condition Filter − apppes conditions such as sum of sales.

    Top Filter − chooses the records representing a range of top values.

Following worksheet shows these options.

Adding filter dimension

Clearing Filters

Filters can be easily removed by choosing the clear filter option as shown in the following screenshot.

Clear filter Advertisements