cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Swarzy26
New Member

Button to exclude or include a data column form a Graph

I have a graph in power bi showing different columns (sales qty, forecast qty, orders qty...). Is there a way to have a button (on/off) to show or hide a specific column like the one referring to the "forecast"?

1 REPLY 1
DarrenW
Frequent Visitor

One way might be to have the data for the chart stored in such a way that the data is 'unpivoted'.  In other words, you have the X axis in one column, the series name in the next and the values (y axis) in the third.  This way you can then have a slicer operating on column 2 and use it to control which series appear on the chart. 

 

If this isn't applicable, another way, and I'm not saying this is the best way to do this, but when I had a similar problem, I duplicated the chart on a new page and used bookmarks to swap between the two.  This might not be appropriate if the page has a lot of other things going on but you can copy visuals on to another page and allow them to synchronise with the originals.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors