Bird
Raised Fist0
Tableaubi_tool~10 mins

Dimension filters in Tableau - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to filter the view to only show data where the 'Region' dimension equals 'West'.

Tableau
IF [Region] = [1] THEN 'Show' ELSE 'Hide' END
Drag options to blanks, or click blank then click option'
A'North'
B'East'
C'West'
D'South'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to use quotes around the region name.
Using the wrong region name.
2fill in blank
medium

Complete the code to create a filter that includes only 'Category' values that are not 'Furniture'.

Tableau
IF [Category] <> [1] THEN 'Include' ELSE 'Exclude' END
Drag options to blanks, or click blank then click option'
A'Furniture'
B'Books'
C'Technology'
D'Office Supplies'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' instead of '<>'.
Using the wrong category name.
3fill in blank
hard

Fix the error in the filter calculation to only show 'Sales' greater than 1000.

Tableau
IF [Sales] [1] 1000 THEN 'High' ELSE 'Low' END
Drag options to blanks, or click blank then click option'
A<
B>
C=
D<=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' which filters for sales less than 1000.
Using '=' which filters only sales exactly 1000.
4fill in blank
hard

Fill both blanks to create a filter that shows only 'Region' values that are either 'East' or 'South'.

Tableau
IF [Region] = [1] OR [Region] = [2] THEN 'Show' ELSE 'Hide' END
Drag options to blanks, or click blank then click option'
A'East'
B'West'
C'South'
D'North'
Attempts:
3 left
💡 Hint
Common Mistakes
Using AND instead of OR which would exclude all rows.
Using wrong region names.
5fill in blank
hard

Fill all three blanks to create a filter that shows 'Category' as 'Technology' and 'Sales' greater than 5000.

Tableau
IF [Category] = [1] AND [Sales] [2] [3] THEN 'Valid' ELSE 'Invalid' END
Drag options to blanks, or click blank then click option'
A'Technology'
B>
C5000
D'Furniture'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' instead of '>' for Sales comparison.
Using wrong category name.
Mixing up the order of blanks.

Practice

(1/5)
1. What is the main purpose of a dimension filter in Tableau?
easy
A. To select specific categories or groups of data to include in the view
B. To change the color of the chart
C. To calculate sums and averages
D. To add new data sources

Solution

  1. Step 1: Understand what dimension filters do

    Dimension filters let you pick which categories or groups of data to show or hide in your report.
  2. Step 2: Compare options to the purpose

    Only To select specific categories or groups of data to include in the view describes selecting categories, which matches the purpose of dimension filters.
  3. Final Answer:

    To select specific categories or groups of data to include in the view -> Option A
  4. Quick Check:

    Dimension filter = select categories [OK]
Hint: Dimension filters pick categories to show or hide [OK]
Common Mistakes:
  • Confusing dimension filters with color formatting
  • Thinking filters calculate values
  • Mixing up filters with data source connections
2. Which of the following is the correct way to add a dimension filter in Tableau?
easy
A. Drag a measure to the Filters shelf
B. Right-click a measure and select 'Add to Filters'
C. Drag a dimension to the Filters shelf
D. Double-click a dimension to add it to the Columns shelf

Solution

  1. Step 1: Identify how to add dimension filters

    Dimension filters are added by dragging a dimension field to the Filters shelf in Tableau.
  2. Step 2: Evaluate each option

    Drag a dimension to the Filters shelf correctly states dragging a dimension to the Filters shelf. Drag a measure to the Filters shelf is for measures, not dimensions. Right-click a measure and select 'Add to Filters' is incorrect because measures cannot be added that way as filters. Double-click a dimension to add it to the Columns shelf adds to Columns, not Filters.
  3. Final Answer:

    Drag a dimension to the Filters shelf -> Option C
  4. Quick Check:

    Dimension filter = drag dimension to Filters shelf [OK]
Hint: Drag dimension fields to Filters shelf to filter categories [OK]
Common Mistakes:
  • Dragging measures instead of dimensions
  • Adding fields to Columns instead of Filters
  • Right-clicking measures expecting filter options
3. If you add a dimension filter on the 'Region' field and select only 'East' and 'West', what will the view show?
medium
A. No data will be shown
B. Data for all regions except 'East' and 'West'
C. Data for 'East', 'West', and 'Central' regions
D. Data only for 'East' and 'West' regions

Solution

  1. Step 1: Understand filter selection effect

    Selecting 'East' and 'West' in a dimension filter means only those categories are included in the view.
  2. Step 2: Analyze options

    Data only for 'East' and 'West' regions correctly states only 'East' and 'West' data will show. Data for all regions except 'East' and 'West' is the opposite. Data for 'East', 'West', and 'Central' regions adds 'Central' incorrectly. No data will be shown is wrong because data exists for selected regions.
  3. Final Answer:

    Data only for 'East' and 'West' regions -> Option D
  4. Quick Check:

    Filter selects categories to show = 'East' and 'West' only [OK]
Hint: Filter shows only selected categories, hides others [OK]
Common Mistakes:
  • Thinking filter excludes selected categories
  • Assuming unselected categories still appear
  • Believing filter clears all data
4. You added a dimension filter on 'Category' but the filter does not seem to affect the view. What is the most likely reason?
medium
A. The filter is applied on a measure, not a dimension
B. The filter is set to include all categories
C. The data source is disconnected
D. The filter is applied on a hidden worksheet

Solution

  1. Step 1: Identify why a filter might not change the view

    If a filter includes all possible categories, it does not remove any data, so the view stays the same.
  2. Step 2: Evaluate each option

    The filter is set to include all categories correctly explains the filter includes all categories, so no change. The filter is applied on a measure, not a dimension is incorrect because the question says dimension filter was added. The data source is disconnected would cause errors, not no effect. The filter is applied on a hidden worksheet is unlikely to affect the current view.
  3. Final Answer:

    The filter is set to include all categories -> Option B
  4. Quick Check:

    Filter includes all categories = no effect [OK]
Hint: Check if filter includes all categories to see effect [OK]
Common Mistakes:
  • Assuming filter always changes view
  • Ignoring filter settings include all values
  • Confusing data source issues with filter behavior
5. You want to create a dashboard showing sales only for selected product categories and regions. Which approach correctly uses dimension filters to achieve this?
hard
A. Add separate dimension filters for 'Category' and 'Region' on the dashboard and select desired values
B. Add a measure filter on sales amount and ignore categories and regions
C. Use only one dimension filter on 'Category' and leave 'Region' unfiltered
D. Create a calculated field combining 'Category' and 'Region' and filter on that

Solution

  1. Step 1: Understand filtering multiple dimensions

    To filter by both product category and region, you need filters on both dimensions separately.
  2. Step 2: Evaluate options for filtering both dimensions

    Add separate dimension filters for 'Category' and 'Region' on the dashboard and select desired values correctly adds separate filters for 'Category' and 'Region'. Add a measure filter on sales amount and ignore categories and regions filters only sales amount, not categories or regions. Use only one dimension filter on 'Category' and leave 'Region' unfiltered filters only one dimension, missing the other. Create a calculated field combining 'Category' and 'Region' and filter on that is complex and unnecessary for this task.
  3. Final Answer:

    Add separate dimension filters for 'Category' and 'Region' on the dashboard and select desired values -> Option A
  4. Quick Check:

    Filter each dimension separately for combined filtering [OK]
Hint: Use separate filters for each dimension to combine selections [OK]
Common Mistakes:
  • Filtering only one dimension when multiple needed
  • Using measure filters instead of dimension filters
  • Overcomplicating with calculated fields unnecessarily
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard