Forum Discussion
Button dynamic color in Power BI
- 1 year ago
Hi Analitika
Can you please try the below steps.
1. Just Add two bookmark
a. Sales1b. Sales2
2. Now Go to insert and select Bookmark navigator.
Here is your result.
You can adjust your background as per your preference using Format navigatorIf this answers your questions, kindly accept it as a solution and give kudos.
Hi Analitika
Could you please follow below steps:
Add buttons
-
Insert >> Buttons >> Blank >> rename to Sale1_off (grey style).
-
Duplicate it >> rename to Sale1_on (give it your selected color, e.g., brown).
-
Do the same for Sale2 >> Sale2_off (grey) and Sale2_on (brown).
-
Put the two “on” buttons exactly over the “off” ones (same position/size).
- Go to view >> Bookmark >> Create 4 Bookmarks
- Go to view >> selection >> Rename every button for easy understanding.
Selecitons:
-
Go to View >>Selection.
-
In the Bookmarks pane, select Sales 1 off.
-
In the Selection pane, hide Sales 2 on and Sales 1 off (click the eye icons).
-
Go back to the Bookmarks pane, right-click Sales 1 off.
-
In the menu, uncheck Data (so only Display/Current page are ticked).
-
Click Update.
2. For Sales 2 off
-
Stay in View >> Selection.
-
In Bookmarks pane, select Sales 2 off.
-
In the Selection pane, hide Sales 1 on and Sales 2 off.
-
Right-click Sales 2 off in the Bookmarks pane >> uncheck Data >> click Update.
Apply Action on Sales 1 off button
Apply Action on Sales 2 off button