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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.

Top Solution Authors
Top Kudoed Authors