Overview
In this article, we will learn about one of the most important features rolled out in March 2020 Power BI Desktop update which is – Drill Through as an Action for Power BI Buttons.
In this article, we will cover the following things:
- What is the Drill Through feature?
- What is Drill Through Action for Button in Power BI?
- Simple example to demonstrate Drill Through Action from Button Click
- Pass Filter Context in Drill Through Action
- Limitations for Drill Through Action for Button
So, now let’s get started!
What is Drill Through Feature?
We all know the meaning of Drill Through: “Seeing details about a specific portion of the data with its applied filters”.
What is Drill Through Action for Button in Power BI?
With the March 2020 Power BI Desktop update, the new action for Button has been rolled out – “Drill Through (Preview)”.
This action type creates a button that drills through to a destination page to get details that are filtered to a specific context.
Real-life Example
We have the following data structure in our report.
Now, we have created the following charts in our Power BI report.
- Count of Project Task by Status
- Count of Project Task by Month
When here, we create a button to view the detailed tasks.
When the user clicks on the button, he will be redirected to the detailed view of the data with all the filters applied for the same context.
Now, we can apply a drill through from a button click in Power BI. One latest action has been added to the button to Drill Through from one page to another.
Download the Code File
You can download the sample code file using the
Github URL.
So, now let’s get started.
Step 1
We have created two pages.
Page 1 (Home Page):
Page 2 (Detailed Page)
Step 2
We want to drill through using the Status from Page 1.
So, in Page 2 > first we need to add Drill through the parameter.
Drag a Status column from the Fields pane to Drill through the section.
Step 3
Now, add a button to Page 1 (Home Page).
Turn on Action.
Add the following information.
Type = Drill through (Preview)
Destination = Detailed Page (Page 2 which we have created in Step 2).
Step 4
Now, select the bar from the “Count of Project Task by Status” visual.
This will enable your button.
Press Ctrl + Click to redirect to the detailed page.
This will drill through to the Detail Page.
This will also pass a filter context as well. So, in a detailed page, the user can view only detailed data.
How to pass Filter Context using Drill Through Button.
If we wish to filter based on Status + Month, then follow the below procedure.
First, select Status, this will cross filter Month.
Then Press Ctrl Key and Select any month. I selected August.
Click on the button. This will filter data based on August’s “Waiting on Feedback” status.
Limitations for Drill Through Button
- Work only for inbuilt or OOTB visuals. Only some visuals from the App source support this feature.
- We can use this feature in the same report. Cross filtering doesn't work.
Conclusion
I hope this is clear now. This is how we can create a Drill Through Button in Power BI.
Stay connected with me for more amazing articles!
Happy reporting!!