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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
radu_1998
New Member

Switching graphs based on the selections on another graph

Hi, I have two graphs on my dashboard, a pie chart and a bar chart. The pie chart essentially looks at sales by categories. The bar chart displays sales by different locations. Everytime the user selects a category on the pie chart, I want the bar chart to switch into a breakdown of the different subcategories within the selected category by sales. When nothing is selected I need the graph to return to the standard sales by location. However I have no idea how to do this, I think it's somethting to do with changing filter contexts but i'm really stuck atm.

 

Example output:

if nothing selected: bar chart shows sales by location

if category 1 of pie chart is clicked: bar chart shows all of the sub-categories contained within category 1 and the breakdown of sales per each sub category.

If category 2 of pie chart is selected:  bar chart shows all of the sub-categories contained within category 2 and the breakdown of sales per each sub category.

 

Thanks for your help in advance!

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi  @radu_1998 
if I understood you correctly and you need one graph filtering another make it drill down we don't have this functionality.
If the bar graph graph is expended and the pie just needs to filter it then you can modify this option from "edit interactions"pbix with my example is attached.

More information about edit interactions is here :

https://www.youtube.com/watch?v=ENuG2F-tce0

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi  @radu_1998 
if I understood you correctly and you need one graph filtering another make it drill down we don't have this functionality.
If the bar graph graph is expended and the pie just needs to filter it then you can modify this option from "edit interactions"pbix with my example is attached.

More information about edit interactions is here :

https://www.youtube.com/watch?v=ENuG2F-tce0

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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