Bird
Raised Fist0
Excelspreadsheet~10 mins

Filtering PivotTable data in Excel - 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 PivotTable to show only items labeled "East" in the Region field.

Excel
ActiveSheet.PivotTables("SalesPivot").PivotFields("Region").CurrentPage = [1]
Drag options to blanks, or click blank then click option'
A"West"
B"East"
C"North"
D"South"
Attempts:
3 left
💡 Hint
Common Mistakes
Using a region name not present in the PivotTable.
Forgetting to use quotes around the region name.
Trying to assign a number instead of a string.
2fill in blank
medium

Complete the code to clear all filters from the "Product" field in the PivotTable.

Excel
ActiveSheet.PivotTables("SalesPivot").PivotFields("Product").ClearAllFilters[1]
Drag options to blanks, or click blank then click option'
A()
B.Reset
C.ApplyFilter
D.RefreshTable
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the parentheses after ClearAllFilters.
Using .ApplyFilter or .RefreshTable instead of ClearAllFilters.
Adding extra parameters inside the parentheses.
3fill in blank
hard

Fix the error in the code to filter the "Year" field to show only 2023.

Excel
ActiveSheet.PivotTables("SalesPivot").PivotFields("Year").CurrentPage = [1]
Drag options to blanks, or click blank then click option'
A2023
B"2023"
CYear
DActiveSheet.PivotTables("SalesPivot")
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning a number instead of a string.
Using an object or variable instead of the item name.
Forgetting quotes around the filter value.
4fill in blank
hard

Fill both blanks to filter the "Category" field to show only "Electronics" and then refresh the PivotTable.

Excel
With ActiveSheet.PivotTables("SalesPivot")
  .PivotFields("Category").CurrentPage = [1]
  .[2]
End With
Drag options to blanks, or click blank then click option'
A"Electronics"
BRefreshTable
CPivotCache.Refresh
DCalculate
Attempts:
3 left
💡 Hint
Common Mistakes
Using a method other than RefreshTable to refresh.
Not using quotes around the filter value.
Calling RefreshTable before setting the filter.
5fill in blank
hard

Fill all three blanks to create a filter on the "Region" field that shows only "North", then clear all filters on the "Product" field.

Excel
With ActiveSheet.PivotTables("SalesPivot")
  .PivotFields("Region").CurrentPage = [1]
  .PivotFields("Product").[2][3]
End With
Drag options to blanks, or click blank then click option'
A"North"
BClearAllFilters
C()
DRefreshTable
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting parentheses after ClearAllFilters.
Using RefreshTable instead of ClearAllFilters to clear filters.
Not using quotes around the filter value.

Practice

(1/5)
1. What is the main purpose of filtering data in a PivotTable?
easy
A. To add new rows to the PivotTable
B. To change the original data source
C. To sort data alphabetically
D. To display only the data you want to analyze

Solution

  1. Step 1: Understand filtering in PivotTables

    Filtering lets you hide data you don't want to see, focusing on specific parts.
  2. Step 2: Identify filtering purpose

    Filtering does not change data or add rows; it only controls what is visible.
  3. Final Answer:

    To display only the data you want to analyze -> Option D
  4. Quick Check:

    Filtering = Show selected data [OK]
Hint: Filtering shows only chosen data in PivotTable [OK]
Common Mistakes:
  • Thinking filtering changes original data
  • Confusing filtering with sorting
  • Believing filtering adds new data
2. Which of these is the correct way to filter a PivotTable by a specific item in Excel?
easy
A. Click the filter arrow next to the field and check the item to show
B. Right-click the PivotTable and select 'Sort Ascending'
C. Double-click the data cell to edit it
D. Use the 'Insert' tab to add a filter

Solution

  1. Step 1: Locate filter arrows in PivotTable

    Filter arrows appear next to row, column, or filter fields in the PivotTable.
  2. Step 2: Select specific items to filter

    Clicking the arrow lets you check or uncheck items to show or hide.
  3. Final Answer:

    Click the filter arrow next to the field and check the item to show -> Option A
  4. Quick Check:

    Filter arrow + check item = filter data [OK]
Hint: Use filter arrow to pick items to show [OK]
Common Mistakes:
  • Using sort instead of filter
  • Trying to edit PivotTable data directly
  • Looking for filters in the Insert tab
3. You have a PivotTable showing sales by region. You apply a label filter to show only regions starting with 'N'. Which regions will be visible if your data has 'North', 'South', 'East', and 'West'?
medium
A. East and West
B. North and South
C. North only
D. All regions

Solution

  1. Step 1: Understand label filter 'starts with'

    This filter shows only items whose names begin with the specified letter(s).
  2. Step 2: Apply filter to region names

    Only 'North' starts with 'N'; 'South', 'East', and 'West' do not.
  3. Final Answer:

    North only -> Option C
  4. Quick Check:

    Label filter 'starts with N' = North [OK]
Hint: Label filter 'starts with' shows matching names only [OK]
Common Mistakes:
  • Including regions not starting with 'N'
  • Confusing label filter with number filter
  • Assuming filter shows all data
4. You tried to filter a PivotTable by unchecking all items except one, but the table still shows all data. What is the most likely reason?
medium
A. You need to refresh the PivotTable first
B. You forgot to click OK after selecting items
C. PivotTable does not support filtering
D. The data source is empty

Solution

  1. Step 1: Check filtering steps

    After selecting items in the filter list, you must click OK to apply the filter.
  2. Step 2: Understand why filter didn't apply

    If OK is not clicked, the filter selection is ignored and all data remains visible.
  3. Final Answer:

    You forgot to click OK after selecting items -> Option B
  4. Quick Check:

    Click OK to apply filter [OK]
Hint: Always click OK to apply filter changes [OK]
Common Mistakes:
  • Assuming filter applies automatically
  • Thinking PivotTable can't filter
  • Forgetting to refresh after filtering
5. You have a PivotTable with sales data by product and month. You want to filter to show only products with total sales greater than 1000. Which filter type should you use?
hard
A. Value filter on total sales
B. Label filter on product names
C. Manual filter by unchecking products
D. Date filter on month field

Solution

  1. Step 1: Identify filter goal

    You want to filter products based on total sales numbers, which are values.
  2. Step 2: Choose correct filter type

    Value filters let you filter based on numbers like totals, so use a value filter on total sales.
  3. Final Answer:

    Value filter on total sales -> Option A
  4. Quick Check:

    Filter by numbers = Value filter [OK]
Hint: Use value filters to filter by numbers like totals [OK]
Common Mistakes:
  • Using label filter for numbers
  • Manually unchecking many items instead of filtering
  • Applying date filter to non-date fields
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