Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lsutrey
New Member

Visual control of a filter

Is it possible for a visual to affect what is displayed in a filter?  Here's the scenario - I have a bar chart of various data points broken down by State.  I have other visuals on the report, and they react just fine when I click one of the states in the bar chart.  I also have a couple of filters on the report.  The filters are not affected when I click a state in the bar chart.  In other words, I have a filter for state and a filter for city - they continue to show the same values regardless of what is selected in the visualization.  I don't want to have a visual by the city - it's too busy.  I'd like the filter for the city to only display the cities in the state that was selected in the bar chart, and then if you want to see each individual city's numbers, you can use the filter for that to affect the bar chart.  When I click the state in the bar chart, the city filter continues to show every city in the dataset.  The only way to cull down the cities listed in the city filter is to add a state filter and click the state in it - takes up valuable real estate on the page and makes the user make an extra click.  Any suggestions?

 

Thanks!

1 ACCEPTED SOLUTION
chrisu
Responsive Resident
Responsive Resident

I can think of two options to accomplish what you want:

 

1. Add cities as a slicer instead of (or in addition to) a filter.  That will get cities onto the report Canvas and will interact with your other visuals.  See https://powerbi.microsoft.com/en-us/documentation/powerbi-service-tutorial-slicers/

 

2. Add cities underneath states in your bar chart to create a drill-down.  That will allow you to drill into each state and see the cities underneath them from within the bar chart.  See https://powerbi.microsoft.com/en-us/documentation/powerbi-service-drill-down-in-a-visualization/

 

View solution in original post

1 REPLY 1
chrisu
Responsive Resident
Responsive Resident

I can think of two options to accomplish what you want:

 

1. Add cities as a slicer instead of (or in addition to) a filter.  That will get cities onto the report Canvas and will interact with your other visuals.  See https://powerbi.microsoft.com/en-us/documentation/powerbi-service-tutorial-slicers/

 

2. Add cities underneath states in your bar chart to create a drill-down.  That will allow you to drill into each state and see the cities underneath them from within the bar chart.  See https://powerbi.microsoft.com/en-us/documentation/powerbi-service-drill-down-in-a-visualization/

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors