Forum Discussion
Single toggle button to change visuals on all pages
- 9 months ago
This is what I meant with controlling the colors with slicers - Power BI accepts RGB, RGBA, hex and some color names. Again, conditional formatting isn't supported for legends. Slicers also cannot trigger bookmarks
Please see the attached pbix.
- 9 months ago
Hi powerbitogo,
The reason you can’t apply the slicer-based color toggle to your charts is because only certain visual properties in Power BI support conditional formatting. The toggle works when you see the fx option next to settings like Data Colors, Title, or Background. If your visual doesn’t have this fx button for Data Colors, dynamic color changes aren’t possible due to current product limitations. Legend colors also can’t be changed dynamically, even if you create the legend manually with shapes. To use the toggle, you need a measure that returns the selected Hex/RGB value from the slicer and apply it to visual elements that support conditional formatting.
Thasnk you.
Hi powerbitogo
If you want to apply the change of color to all pages then bookmark isn't the right approach as, at most, it affects only a single page. You can instad use conditional formatting controlled by a slicer that is synched across different pages. One limitation to bear in mind is conditional formatting is not supported on legends.
The legends are created separately from the visuals ie. they are shapes with labels. Would that work? Thanks
- danextian9 months ago
Super User
I was referring to the legend color. They can't be conditionally formatted so even if you follow a slicer approach, you won't be able to change the color of the legends dynamically.