This is a short explanation; I wrote a more extended summary about the method to change colors here.
- Add the colors to a table: Choose your colors using HEX codes or color names. Open Power BI Desktop, “click “Enter data,” and create a table with at least one column with the HEX code (see screenshot).
- Create a Tile Slicer: In the format pane, go to the Buttons setting, select the default states – Fill and locate the fx button to apply conditional formatting based on the Color field.
- Use conditional formatting for all shapes that should change color: Click on the shape and go to the format pane. Locate the fx button, choose Field Value, and select the color field.
Now, the slicer and shape fill will display the same colors when clicked, and you can use the slicer to change the colors in your Power BI resume.