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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Solution Authors