Using buttons in Power BI
Using buttons in Power BI lets you create reports and dashboards that behave similar to apps, and thereby, create an engaging environment so users can hover, click, and further interact with Power BI content. You can add buttons to reports in Power BI Desktop, and share or publish those reports to the Power BI service to create dashboards that provide an app-like behavior for users.
Buttons that you create in Power BI Desktop are available for use in reports or dashboards that are published in the Power BI service.
Creating buttons in reports
To create a button in a Power BI Desktop report, on the Home ribbon, select Buttons and a drop-down menu appears, where you can select the button you want from a collection of options, as shown in the following image.
When you create a button and select it on the report canvas, the Visualizations pane shows you the many ways you can customize the button to fit your requirements. For example, you can turn Button Text on or off, by toggling the slider in that card of the Visualizations pane. You can also change the button's icon, the button fill, the title, and the action that's taken when users click on the button in a report or dashboard, among other properties.
Set button properties when idle, hovered over, or selected
Buttons in Power BI have three states: default (how they appear when not hovered over or selected), when hovered over, or when selected (often referred to as being clicked). Many of the cards in the Visualizations pane can be modified individually based on those three states, providing plenty of flexibility for customizing your buttons.
The following cards in the Visualizations pane let you adjust formatting or behavior of a button based on its three states:
- Button Text
To select how the button should appear for each state, expand one of those cards and select the drop-down that appears at the top of the card. In the following image, you see the Outline card expanded, with the drop-down selected to show the three states:
Select the action for a button
You can select which action is taken when a user selects a button in Power BI. You can access the options for button actions from the Action card in the Visualizations pane.
The options for button actions are:
Selecting Back returns the user to the previous page of the report. This is especially useful for drill-down pages.
Selecting Bookmark presents the report page that's associated with a bookmark that is defined for the current report. You can learn more about bookmarks in Power BI.
Selecting Q&A from the drop-down presents a Q&A Explorer window.
Certain buttons will have a default action selected automatically. For example, the Q&A button type automatically selects Q&A as the default action. You can learn more about Q&A Explorer by checking out this blog post.
You can try or test the buttons you create for your report by using CTRL+CLICK on the button you want to use.
For more information about features that are similar or interact with buttons, take a look at the following articles:
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.