Power BI Visual Filtering: How to Link Your Visuals
In this article
To make one Power BI visual filter another, you use a feature called "Cross-filtering." By default, clicking a data point (like a bar in a chart or a slice in a pie chart) automatically filters or highlights all other visuals on the same report page that share a relationship in the underlying data model. This allows you to drill down into specific segments of your data instantly without needing a separate slicer for every variable.
What You'll Need
- Power BI Desktop installed on your computer.
- A report page containing at least two visuals.
- A data model where the tables used in the visuals are connected via relationships (e.g., a Sales table linked to a Product table).
Step-by-Step
- Create Your Visuals: Drag fields from your Data pane onto the report canvas to create at least two visuals. For example, create a Bar Chart showing "Sales by Region" and a Table showing "Customer Names and Order Totals."
- Test the Default Interaction: Click on a specific bar in your "Sales by Region" chart. You will notice that the "Customer Names" table automatically updates to show only the customers in that specific region. This is the default cross-filtering behavior.
- Open the Edit Interactions Menu: To change how visuals affect one another, select the visual you want to use as the "filter" (the one you will click on). With that visual selected, go to the Format tab in the top ribbon.
- Enable Edit Interactions: In the Format tab, click the Edit interactions button. Once clicked, you will see small icons appear at the top right corner of every other visual on the page. (Note: Menu labels may differ slightly depending on your Power BI version or region).
- Choose the Interaction Type: Look at the icons appearing on the "target" visual (the one you want to be filtered). You will typically see three options:
- Filter: This removes all unrelated data from the target visual, showing only the filtered results.
- Highlight: This keeps all data visible but dims the unrelated parts, highlighting the filtered portion in a bright color (common in bar and column charts).
- None: This disables the interaction entirely; clicking the first visual will have no effect on this specific target visual.
- Apply the Setting: Click the Filter icon (which looks like a small funnel) on the target visual to ensure that clicking the source visual completely filters the target visual rather than just highlighting it.
- Exit Edit Mode: Once you have set the interactions for all visuals on the page, click the Edit interactions button in the ribbon again to hide the interaction icons and lock in your settings.
Common Mistakes
- Forgetting the Data Relationship: The most common reason a visual won't filter another is a missing relationship in the Model view. If Table A and Table B aren't linked by a common key, clicking a visual based on Table A cannot filter a visual based on Table B.
- Confusing Highlighting with Filtering: Many users think the filter isn't working because they see "ghost" bars in a chart. This is actually "Highlighting." You must change the interaction to "Filter" in the Edit Interactions menu to remove the unrelated data entirely.
- Selecting the Wrong Visual: Interactions are directional. If you want Visual A to filter Visual B, you must select Visual A first before clicking the interaction icons on Visual B.
Tips
- Use Slicers for Global Filters: While cross-filtering is great for exploration, use a dedicated Slicer visual for primary filters (like Date or Year) to keep the report intuitive for the end user.
- Combine with Drill-through: For very complex reports, use cross-filtering to identify a trend and then set up a "Drill-through" page to see the granular details of that specific filtered selection on a separate page.
- Check Relationship Direction: In the Model view, check if your relationship is "Single" or "Both" (bi-directional). A single-direction relationship means Table A can filter Table B, but Table B cannot filter Table A.
Troubleshooting
If your visuals are not filtering each other as expected, try these steps in order:
- Check the Relationship: Go to the Model view (the icon with the connected boxes on the left sidebar). Ensure there is a line connecting the two tables used in your visuals. If there is no line, create a relationship by dragging the common field from one table to the other.
- Verify Interaction Settings: Select the source visual, go to Format > Edit interactions, and ensure the "None" icon is not selected on the target visual.
- Review Filter Pane: Check the Filters pane on the right side of the screen. Ensure there are no "Page-level" or "Report-level" filters that are overriding your visual interactions or restricting the data so much that the filter appears to do nothing.
- Refresh Data: If you recently changed the data structure, click Refresh in the Home ribbon to ensure the model is up to date.
Frequently Asked Questions
Can one visual filter multiple other visuals at once?
Yes. By default, when you select a data point in one visual, Power BI applies that filter to every other visual on the page that has a valid data relationship with the selected field.
Why does my chart highlight instead of filter?
This is the default behavior for many chart types. To change this, select the source visual, go to Format > Edit interactions, and click the funnel (Filter) icon on the chart you want to change.
Can I make a visual filter something on a different page?
Standard cross-filtering only works on the current page. To filter data across different pages, you should use a Slicer synced across pages or set up a Drill-through page.
What is the difference between a Slicer and cross-filtering?
A Slicer is a dedicated visual designed specifically for filtering. Cross-filtering allows any standard visual (like a map or a bar chart) to act as a filter, making the report more interactive and exploratory.
Does cross-filtering slow down my report?
In most cases, no. However, if you have dozens of visuals on a single page and extremely large datasets, the number of simultaneous queries triggered by a single click can impact performance. In such cases, reducing the number of visuals per page is recommended.