Bird
Raised Fist0
Power BIbi_tool~10 mins

Visual-level filters in Power BI - Interactive Code Practice

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

Complete the code to apply a visual-level filter that shows only sales greater than 1000.

Power BI
FILTER(Sales, Sales[Amount] [1] 1000)
Drag options to blanks, or click blank then click option'
A<=
B>
C=
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' instead of '>' causes the filter to show only sales exactly equal to 1000.
Using '<' or '<=' will show sales less than or equal to 1000, which is incorrect.
2fill in blank
medium

Complete the code to filter the visual to show only products in the 'Electronics' category.

Power BI
FILTER(Products, Products[Category] [1] "Electronics")
Drag options to blanks, or click blank then click option'
A<>
B<
C>
D=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<>' would exclude 'Electronics' instead of including it.
Using '>' or '<' does not make sense for text comparison here.
3fill in blank
hard

Fix the error in the DAX expression to correctly filter sales for the year 2023.

Power BI
FILTER(Sales, YEAR(Sales[Date]) [1] 2023)
Drag options to blanks, or click blank then click option'
A=
B==
C===
D=>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' or '===' causes syntax errors in DAX.
Using '=>' is invalid syntax.
4fill in blank
hard

Fill both blanks to filter the visual to show sales where the amount is between 500 and 2000.

Power BI
FILTER(Sales, Sales[Amount] [1] 500 && Sales[Amount] [2] 2000)
Drag options to blanks, or click blank then click option'
A>=
B<
C<=
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>' instead of '>=' excludes 500 from the results.
Using '<' instead of '<=' excludes 2000 from the results.
5fill in blank
hard

Fill all three blanks to filter the visual to show only customers from 'USA' with sales greater than 1000 and less than 5000.

Power BI
FILTER(Sales, Sales[Country] [1] "USA" && Sales[Amount] [2] 1000 && Sales[Amount] [3] 5000)
Drag options to blanks, or click blank then click option'
A=
B>
C<
D<=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<=' or '>=' changes the range and may include unwanted values.
Using '<>' for country excludes 'USA' instead of including it.

Practice

(1/5)
1. What is the main purpose of a Visual-level filter in Power BI?
easy
A. To limit data shown only in one specific visual on the report page.
B. To filter data across all visuals on all report pages.
C. To change the data model structure permanently.
D. To create new calculated columns in the dataset.

Solution

  1. Step 1: Understand the scope of Visual-level filters

    Visual-level filters apply only to the visual they are set on, not affecting other visuals or pages.
  2. Step 2: Compare with other filter types

    Page-level filters affect all visuals on a page, and report-level filters affect all pages. Visual-level filters are more specific.
  3. Final Answer:

    To limit data shown only in one specific visual on the report page. -> Option A
  4. Quick Check:

    Visual-level filter = single visual data limit [OK]
Hint: Visual-level filters affect only one visual, not the whole report. [OK]
Common Mistakes:
  • Confusing visual-level filters with page-level filters
  • Thinking visual-level filters change the data model
  • Assuming visual-level filters apply to all report pages
2. Which of the following is the correct way to apply a visual-level filter in Power BI?
easy
A. Drag a field to the Visual-level filters pane and select filter values.
B. Write a DAX formula in the data model to filter the visual.
C. Apply a filter in the Query Editor before loading data.
D. Use the slicer visual to filter all visuals on the page.

Solution

  1. Step 1: Identify how to apply visual-level filters

    Visual-level filters are applied by dragging fields into the Visual-level filters pane and choosing filter criteria.
  2. Step 2: Differentiate from other filtering methods

    DAX formulas and Query Editor filters affect data model or data load, not just one visual. Slicers filter multiple visuals, not just one.
  3. Final Answer:

    Drag a field to the Visual-level filters pane and select filter values. -> Option A
  4. Quick Check:

    Drag field to Visual-level filters pane = correct method [OK]
Hint: Drag fields to Visual-level filters pane to filter one visual. [OK]
Common Mistakes:
  • Trying to filter visuals using DAX instead of filter pane
  • Confusing slicers with visual-level filters
  • Applying filters in Query Editor expecting visual-only effect
3. Given a bar chart visual showing sales by region, if you apply a visual-level filter to include only 'East' and 'West' regions, what will the visual display?
medium
A. Sales data for all regions except 'East' and 'West'.
B. An error because multiple regions cannot be filtered visually.
C. Sales data for all regions without any filter.
D. Sales data only for 'East' and 'West' regions.

Solution

  1. Step 1: Understand the effect of visual-level filters on data

    Applying a visual-level filter to include only 'East' and 'West' means the visual will show data only for these two regions.
  2. Step 2: Confirm no error occurs with multiple selections

    Power BI allows multiple values in visual-level filters, so no error will occur.
  3. Final Answer:

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

    Visual-level filter limits data shown = filtered regions only [OK]
Hint: Visual-level filters show only selected values in that visual. [OK]
Common Mistakes:
  • Assuming filter excludes selected values instead of including
  • Thinking filter applies to all report visuals
  • Believing multiple selections cause errors
4. You applied a visual-level filter on a table visual to show only sales from 2023, but the visual still shows data from 2022. What is the most likely reason?
medium
A. The filter was applied to the page-level filters instead of visual-level filters.
B. The visual-level filter pane was cleared accidentally.
C. The field used in the filter is not the date field but a related text field.
D. The data model does not contain any sales data for 2023.

Solution

  1. Step 1: Check the field used in the visual-level filter

    If the filter uses a text field related to date instead of the actual date field, the filter condition may not work as expected.
  2. Step 2: Verify the filter application and data presence

    If the filter was applied correctly and data exists for 2023, but the wrong field is filtered, the visual shows incorrect data.
  3. Final Answer:

    The field used in the filter is not the date field but a related text field. -> Option C
  4. Quick Check:

    Wrong filter field causes unexpected visual data [OK]
Hint: Always filter using the correct field type matching data. [OK]
Common Mistakes:
  • Assuming filter applies if placed in wrong filter pane
  • Not verifying the field type used in filter
  • Ignoring data availability in the model
5. You have a report page with multiple visuals showing sales data. You want one visual to show only sales from the 'Online' channel without affecting other visuals. How should you apply the filter?
hard
A. Create a slicer for sales channel and select 'Online'.
B. Apply a visual-level filter on the sales channel field set to 'Online' on that visual only.
C. Apply a page-level filter on the sales channel field set to 'Online'.
D. Modify the data model to exclude all other channels except 'Online'.

Solution

  1. Step 1: Identify filter scope needed

    Since only one visual should show 'Online' sales, the filter must be limited to that visual.
  2. Step 2: Choose the correct filter type

    Visual-level filters apply only to one visual, page-level filters or slicers affect multiple visuals, and modifying the data model affects all data.
  3. Final Answer:

    Apply a visual-level filter on the sales channel field set to 'Online' on that visual only. -> Option B
  4. Quick Check:

    Visual-level filter = single visual filter [OK]
Hint: Use visual-level filter to isolate data on one visual only. [OK]
Common Mistakes:
  • Using page-level filter which affects all visuals
  • Using slicer which filters multiple visuals
  • Changing data model 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