Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Power BI Filter Visual Based on Selection

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can filter any visual in Power BI by selecting a different visual on the same report page. This is achieved using the "Edit interactions" feature, which allows you to control how one visual changes the data in another. To do this, you must first ensure that the "Edit interactions" toggle is turned on in the toolbar, and then click on the visual you want to be affected and choose the interaction type from the drop-down menu.

What You'll Need

  • A Power BI Desktop application installed on your computer.
  • A report file containing at least two visuals that share a common data field, such as a Sales Amount column and a Region column.
  • A basic understanding of how to navigate the Power BI Desktop interface.

Step-by-Step

  1. Open your report in Power BI Desktop. Launch the application and load the report file you wish to edit. You should see the main canvas area with your visuals arranged.
  2. Enable Edit Interactions. Look at the top toolbar of the canvas. You will see a button labeled "Edit interactions" (often represented by an icon of two overlapping squares). Click this button. When active, the button changes color (usually blue), and you will notice that the visuals on your canvas now have small colored dots or indicators on their borders. These dots represent the different types of interactions available for that specific visual.
  3. Identify the Source and Target. Determine which visual you want to use for the selection and which visual you want to filter. For example, you might have a Sales Amount bar chart and a Region slicer. In this scenario, the Region slicer is the source, and the Sales Amount bar chart is the target.
  4. Select the Source Visual. Click directly on the visual you want to use to filter the others. For our example, click on the Region slicer. You will see that the border of the slicer now has a drop-down menu attached to it, containing options like "Highlight", "Filter out", "Clear filter", and "None".
  5. Choose the Interaction Type. From the drop-down menu that appeared on the selected source visual, choose the type of interaction you want. The most common choice is "Filter out" (or sometimes labeled "Exclude"), which will remove all rows from the target visual that do not match the selection in the source visual. For instance, if you select "North" from the Region slicer, the "Filter out" option will remove all sales data for "South" and "East" regions from the Sales Amount chart, leaving only the North region data.
  6. Select the Target Visuals. Click on the visual you want to filter (the target). In our example, this is the Sales Amount bar chart. A drop-down menu will now appear on the border of this target visual. This menu will contain a list of all the fields (columns) in your data model that are available to be filtered. You will see that the field you are using for interaction, such as "Region", is already selected and highlighted.
  7. Confirm the Filter Direction. The drop-down menu on the target visual will show the current filter direction for that specific field. By default, Power BI usually sets the interaction to "Highlight" (which is a non-exclusive filter) or "Filter out" (an exclusive filter). You can change this by clicking on the field name in the menu. A sub-menu will appear with three options:
    • Highlight: The target visual will show data for the selected items, but it will also show data for unselected items, often dimmed or with reduced opacity. This is useful for providing context without hiding all other data.
    • Filter out: The target visual will only show data for the selected items and will completely hide all other data. This is the standard behavior for a strict filter.
    • Clear filter: This option removes any filter applied to this field. It is useful if you want to temporarily disable the interaction for a specific field without changing the global interaction settings.
  8. Repeat for Other Fields. If your source visual has multiple fields (e.g., a slicer with both Region and Product Category), you can set different interaction types for each field. The target visual's drop-down menu will list all of them. For example, you might want to filter by Region but highlight by Product Category.
  9. Test the Interaction. Go back to your report canvas. Click on different values in your source visual (e.g., "North" and "South" in the Region slicer). The target visual should update its data and display the correct filtered results immediately.
  10. Disable Edit Interactions. Once you are satisfied with your filter setup, remember to turn off the "Edit interactions" button in the toolbar. This returns the visuals to their default state where they are not automatically filtering each other, which is usually the most user-friendly setting for general report viewing.

Common Mistakes

One frequent mistake is failing to turn on the Edit interactions toggle before attempting to set up the filters. If this button is not active, the drop-down menus on the visual borders will not appear, and users will be confused as to why their selections are not affecting other visuals.

Another common issue arises from misunderstanding the difference between Highlight and Filter out. A user might expect that selecting a value in a slicer will completely hide all other values, but if the interaction is set to "Highlight," the unselected data will remain visible, just in a different style. This can lead to incorrect conclusions about the data.

Tips

Use the Filter out interaction for data that requires strict exclusivity, such as drill-down reports where you want to see only the specific category you selected.

Use the Highlight interaction for exploratory analysis where you want to see the impact of your selection without losing the context of the overall data set. This is particularly useful for highlighting a specific region or product line within a larger sales chart.

When working with multiple slicers on a page, be mindful of the order of interactions. Power BI evaluates interactions in the order they are applied. A filter applied by one slicer can be overridden by a later one, depending on the settings.

Troubleshooting

If the visuals are not updating when you make a selection, the first step is to verify that the Edit interactions button is indeed turned on. It is easy to miss the color change that indicates the mode is active.

If the drop-down menus are missing from the visual borders, double-check that you have clicked directly on the source visual and that you are not hovering over it. The menu will only appear when the visual itself is the active selection.

If you are seeing unexpected results, such as all data disappearing when you select a single item, check the interaction settings on the target visual. It is possible that the filter is set incorrectly to "Filter out" instead of the desired interaction type. You can also try clearing the filters for that specific field using the "Clear filter" option mentioned in the step-by-step guide.

Frequently Asked Questions

Can I filter visuals on different pages?

No, the Edit interactions feature only works on visuals that are on the same report page. To filter a visual on another page, you would need to use a slicer or a bookmark.

Does filtering one visual affect others on the same page?

Yes, that is the primary function of the Edit interactions feature. When you set up an interaction, the selection in the source visual will modify the data in the target visual.

What is the difference between a slicer and a visual filter?

A slicer is a specific type of visual designed for selecting and filtering data. A visual filter is a general interaction setting that can be applied to any visual on the page.

Can I use multiple interactions on the same visual?

Yes, you can set different interaction types for different fields. For example, you can filter by Region but highlight by Product Category.

How do I remove all interactions on a page?

You can remove all interactions at once by clicking the "Edit interactions" button and then selecting "Clear all interactions" from the menu that appears on the source visual.