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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors