How to add a drill through button to a visual in Microsoft Power BI

Figure A: We’ll add drill through buttons in Power BI to quickly filter and view the detail visual.

Power BI performs a lot of tasks internally, which is a good thing for designers. In many cases, you can build upon those tasks. For instance, Power BI automatically adds drill buttons to visuals when you build drill through functionality into a visual.

However, those buttons aren’t always obvious in a visual, so Power BI lets you add buttons with the same functionality that are more user-friendly. You can also right-click a series and click through a couple of dropdowns to drill, but this route isn’t obvious either.

SEE: Hiring kit: Microsoft Power BI developer (TechRepublic Premium)

In this tutorial, I’ll show you how to add drill through buttons to a visualization in Microsoft Power BI. Thanks to the text property, you can display meaningful instructions, so end users don’t miss out on the detailed data they need. For this tutorial, I’m using Power BI Desktop on a Windows 10 64-bit system.

Here, you can download the Microsoft Power BI demo file for this tutorial and follow along.

Jump to:

Why you should consider adding drilling buttons for Power BI visuals

Drilling through data is a feature that many users rely on for a more detailed glimpse into visual data. They might expect drilling to work with a simple double-click, but that won’t trigger Power BI drilling.

End consumers use the drilling functionality to analyze and explore data at a greater depth than they can do with surface-level data; you’ll definitely want them to be able to take advantage of this feature, so they can derive more value from their data insights. That means making the feature obvious and easy to use.

SEE: The Complete Microsoft Power BI Super Bundle (TechRepublic Academy)

To trigger a drill through visual the traditional way, the end user must right-click a series in the main visual (the summary visual). Then, they must click through two dropdowns to get to the details. Not only is that too many clicks, but it’s also not user-friendly. That’s why you, the designer, should consider supplying drill through buttons instead.

How to use the drill through feature in Power BI

Figure A shows a monthly sales summary. The Fields pane shows the fields in this summary visual. The Table visual in Figure B is the detailed sales records. Check the Fields pane to see the fields in this visual. Also, check the Drill Through section bucket. As you can see, it’s the Month field from the Date Hierarchy. Power BI adds the Date Hierarchy when you import a Date/Time data type.

Figure B

The drill through Fields menu opened next to the Visualizations menu in Power BI.
The drill through feature in Power BI will filter this data by month values.

Notice that the pages have names but not numbers. Page 1 is Summary and page 2 is Sales Details. You’ll need to remember this information for later in our process.

Once you add the drill through field to the detail visual — the one on page 2 — you can use the feature. Simply right-click a month in the summary visual, and Power BI will display the detailed sales records for that month.

The problem is that right-click and follow-through. First, you must know that a right-click leads you to a detailed visual, and second, the process requires three clicks. That latter fact isn’t too big of a deal, but you can make it easier and more user-friendly for end users if you make the functionality more prominent.

You can’t skip this step. If you do, Power BI won’t know how to connect the two visuals. In this case, the Table visual displays the sales record for the month selected in the donut visual, and that happens only because you specified a drill through field (Figure B).

If you’re not familiar with the drill through feature, you can read Understand Microsoft Power BI’s default drilling for more information.

How to add a drill through button in Power BI

With the drill through feature activated, you can now add buttons to make the functionality more obvious to end users. Return to page 1, select the donut visual and add the button as follows:

  1. Click the Insert menu.
  2. Click Add A Button To Your Report.
  3. Choose Blank (Figure C).

Figure C

Inserting a blank button in Power BI with the Blank option circled in the Insert menu.
Insert a blank button to the Power BI visual.

You might have a hard time finding the blank button, but if you look closely, it’s in the top-left corner, on top of the drill through feature’s default button. Simply drag it down, and you’ll see both buttons (Figure D).

Figure D

A blank button in Power BI highlighted above a donut visual.
The blank button in Power BI is on top of the drill through’s default button, the arrow button.

We didn’t discuss the default button earlier; it’s a nice way to get back and forth between the main and detailed visuals. You must press and hold down the Ctrl key for it to work properly, which is another thing your end users might not know.

With some simple formatting, the blank button will become a user-friendly button that end consumers will readily recognize and use. With the button selected, Power BI displays the Format pane. Make the following changes to the button:

  1. Expand the Action section.
  2. Switch the Off button to On.
  3. From the Type dropdown, choose Drill Through.
  4. From the Destination dropdown, choose Sales Details — the name of page 2 with the Table visualization (Figure E).

Figure E

The Action options in Power BI's Format Button menu.
Turn the blank button into a drill through button in Power BI.
  1. Click the Off/On button to the right of Text to On.
  2. Next, expand the Style section.
  3. In the Text control, enter See Sales Details.
  4. Change the font size to 20 (Figure F).

Figure F

The Style and Text options in Power BI's Button Format menu.
Add meaningful text to the button in Power BI to indicate what it’s for.

Now, let’s use this button to quickly navigate to the detailed visual. To begin, return to page one, Summary. Click June in the donut visual, and then, hold down the Ctrl key and press the See Details Report button shown in Figure G. Doing so will display the detailed visual on page 2, Sales Details, filtered to display only the records for June.

Figure G

See Sales Details button above a Power BI donut visual representing a sum of amount by month.
Click the See Sales Details button to see the sales records for the selected month.

The tooltip tells end users to hold down the Ctrl key, so even though that step is still necessary, the end consumer now has clear instructions to do so. Once the drill through button is working, you can remove the default arrow button.

SEE: Quick glossary: Business intelligence and analytics (TechRepublic Premium)

In such a simple example, the full impact isn’t obvious. The button is easier to find, and the text certainly makes its purpose clear. But, in a more complex visual with more moving parts, adding a drill button or several can make for a much better and more navigable user experience.

Read next: Best business intelligence tools (TechRepublic)

For all the latest Technology News Click Here 

 For the latest news and updates, follow us on Google News

Read original article here

Denial of responsibility! TechNewsBoy.com is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email – [email protected]. The content will be deleted within 24 hours.