How to Add Buttons in Power BI
Power BI does not have a direct button control, but you can create buttons using shapes and bookmarks. Here’s the step-by-step process:
- Open Power BI Desktop and go to the report page where you want to add the buttons.
- On the “Home” tab, click on “Shapes” in the “Insert” group.
- Choose a shape that you want to use as a button (e.g., rectangle).
- Click and drag on the report canvas to create the button shape.
- Resize and style the shape to make it look like a button.
- Right-click on the button shape and select “Add Bookmark”.
- In the “Add Bookmark” dialog box, give a name to the bookmark and click “OK”.
- Create another shape for the second button, following the same steps.
- Repeat this process for all the buttons you want to add.
- To assign an action to the button, right-click on the button shape and select “Button Text”.
- In the “Tooltip” section, enter the text you want to display on the button.
- In the “Action” section, choose “Go to bookmark”.
- Select the bookmark you created earlier for that button, and click “OK”.
- Repeat this step for all the buttons, assigning different bookmarks to different buttons.
By following these steps, you can create interactive buttons in Power BI. When the user clicks on a button, it will navigate to the corresponding bookmarked page or perform the desired action.
Example:
Let’s say you have a report with two pages – “Sales Dashboard” and “Customer Analysis”. You want to add buttons to navigate between these pages.
1. Follow the above steps to create two rectangular-shaped buttons on the “Sales Dashboard” page.
2. Assign the first button to navigate to the “Sales Dashboard” bookmark (which is the current page) and the second button to navigate to the “Customer Analysis” bookmark.
3. Now, when you publish the report and open it in Power BI Service or share it with others, they can click on the buttons to navigate between the two pages.
Please note that the steps mentioned above are for creating simple navigation buttons in Power BI. You can customize the buttons further by adding icons, changing colors, or using visualizations like Chiclet Slicer, if needed.