0
0
Excelspreadsheet~10 mins

Filtering PivotTable data in Excel - Interactive Code Practice

Choose your learning style9 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.