Bird
Raised Fist0
Power BIbi_tool~10 mins

Cross-filtering between visuals 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 enable cross-filtering between two visuals in Power BI.

Power BI
VisualInteractions.SetVisualInteraction([1])
Drag options to blanks, or click blank then click option'
ACrossHighlight
BDrillDown
CNoInteraction
DCrossFilter
Attempts:
3 left
💡 Hint
Common Mistakes
Using CrossHighlight instead of CrossFilter causes highlight effect without filtering.
NoInteraction disables filtering between visuals.
2fill in blank
medium

Complete the DAX measure to calculate total sales filtered by selected product category.

Power BI
Total Sales Selected = CALCULATE(SUM(Sales[Amount]), [1](Products[Category]))
Drag options to blanks, or click blank then click option'
AALLSELECTED
BVALUES
CREMOVEFILTERS
DFILTER
Attempts:
3 left
💡 Hint
Common Mistakes
Using FILTER without a proper filter expression causes errors.
REMOVEFILTERS removes filters instead of applying them.
3fill in blank
hard

Fix the error in the DAX formula to correctly apply cross-filtering on the 'Region' column.

Power BI
Sales by Region = CALCULATE(SUM(Sales[Amount]), [1](Region[Name]))
Drag options to blanks, or click blank then click option'
AFILTER
BVALUES
CALL
DSELECTEDVALUE
Attempts:
3 left
💡 Hint
Common Mistakes
Using ALL removes filters, breaking cross-filtering.
SELECTEDVALUE returns a single value, not a table.
4fill in blank
hard

Fill both blanks to create a measure that shows sales only for selected regions and products.

Power BI
Filtered Sales = CALCULATE(SUM(Sales[Amount]), [1](Region[Name]), [2](Products[Name]))
Drag options to blanks, or click blank then click option'
AVALUES
BALL
CFILTER
DREMOVEFILTERS
Attempts:
3 left
💡 Hint
Common Mistakes
Using FILTER without a proper filter expression causes errors.
Using REMOVEFILTERS disables filtering.
5fill in blank
hard

Fill all three blanks to create a measure that calculates sales filtered by selected year, region, and product category.

Power BI
Sales Filtered = CALCULATE(SUM(Sales[Amount]), [1](Calendar[Year]), [2](Region[Name]), [3](Products[Category]))
Drag options to blanks, or click blank then click option'
AVALUES
BFILTER
CALLSELECTED
DREMOVEFILTERS
Attempts:
3 left
💡 Hint
Common Mistakes
Using REMOVEFILTERS removes filters and breaks cross-filtering.
Using ALL removes filters instead of applying them.

Practice

(1/5)
1. What does cross-filtering between visuals in Power BI allow you to do?
easy
A. Export data from all visuals at once
B. Change the color scheme of all visuals simultaneously
C. Click one visual to filter data in other visuals on the report page
D. Automatically refresh data sources without user action

Solution

  1. Step 1: Understand cross-filtering purpose

    Cross-filtering links visuals so selecting data in one affects others.
  2. Step 2: Identify correct behavior in Power BI

    Clicking a visual filters related data in other visuals on the same report page.
  3. Final Answer:

    Click one visual to filter data in other visuals on the report page -> Option C
  4. Quick Check:

    Cross-filtering = interactive filtering [OK]
Hint: Cross-filtering links visuals by selection to filter others [OK]
Common Mistakes:
  • Thinking cross-filtering changes colors
  • Confusing cross-filtering with data export
  • Assuming it refreshes data automatically
2. Which setting in Power BI controls how one visual filters another?
easy
A. Data source credentials
B. Cross-filtering options in the Format pane
C. Page size settings
D. Visual title text

Solution

  1. Step 1: Locate cross-filtering controls

    Power BI allows customizing cross-filtering behavior in the Format pane of visuals.
  2. Step 2: Identify correct setting

    The Format pane includes options to set cross-filtering or cross-highlighting between visuals.
  3. Final Answer:

    Cross-filtering options in the Format pane -> Option B
  4. Quick Check:

    Cross-filtering setting = Format pane option [OK]
Hint: Cross-filtering settings are in Format pane, not data or page settings [OK]
Common Mistakes:
  • Confusing cross-filtering with data source settings
  • Looking in page size or title settings
  • Assuming cross-filtering is automatic without configuration
3. Given two visuals: a bar chart showing sales by region and a table showing customer details, what happens if you click a bar for 'West' region when cross-filtering is enabled?
medium
A. The table updates to show only customers from the West region
B. The bar chart changes to show only customers from the West region
C. Nothing changes in either visual
D. The table shows all customers regardless of region

Solution

  1. Step 1: Understand cross-filtering effect on visuals

    Clicking a bar filters related visuals to show data matching that selection.
  2. Step 2: Apply to given visuals

    Clicking 'West' bar filters the customer table to only show customers from West region.
  3. Final Answer:

    The table updates to show only customers from the West region -> Option A
  4. Quick Check:

    Click bar filters table data [OK]
Hint: Clicking a visual filters related visuals to matching data [OK]
Common Mistakes:
  • Thinking the bar chart itself changes
  • Assuming no change happens
  • Believing the table shows all customers always
4. You set cross-filtering between two visuals, but clicking one visual does not filter the other. What is the most likely cause?
medium
A. The data model has no relationship between the tables used
B. Cross-filtering is disabled or set to 'None' in Format pane
C. The visuals are on different report pages
D. The report is in Reading view instead of Editing view

Solution

  1. Step 1: Check data model relationships

    Cross-filtering requires a relationship between tables used in visuals to filter correctly.
  2. Step 2: Identify cause of no filtering

    If no relationship exists, visuals cannot filter each other despite cross-filtering settings.
  3. Final Answer:

    The data model has no relationship between the tables used -> Option A
  4. Quick Check:

    Missing relationship blocks cross-filtering [OK]
Hint: Check data relationships if cross-filtering fails [OK]
Common Mistakes:
  • Assuming visuals on different pages can cross-filter
  • Ignoring data model relationships
  • Thinking view mode blocks filtering
5. You have a report with a slicer visual filtering product categories and a bar chart showing sales by region. You want selecting a region in the bar chart to also filter the slicer to only show categories sold in that region. How do you configure this cross-filtering behavior?
hard
A. Disable cross-filtering in the Format pane for both visuals
B. Set the slicer visual to ignore cross-filtering from the bar chart
C. Place both visuals on separate report pages
D. Enable bi-directional cross-filtering between the product and region tables in the data model

Solution

  1. Step 1: Understand cross-filtering direction

    By default, filtering flows one way; to filter slicer from bar chart, bi-directional filtering is needed.
  2. Step 2: Configure data model relationships

    Enable bi-directional cross-filtering between product and region tables to allow filtering both ways.
  3. Final Answer:

    Enable bi-directional cross-filtering between the product and region tables in the data model -> Option D
  4. Quick Check:

    Bi-directional filtering enables slicer update from bar chart [OK]
Hint: Use bi-directional filtering to sync slicer and chart filters [OK]
Common Mistakes:
  • Ignoring filtering direction in relationships
  • Putting visuals on different pages
  • Disabling cross-filtering accidentally
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