Sub topic 8
Keep all filters and cross-report drill-through
This chapter covers two settings in the Drill-through section of a target page: Keep all filters and Cross-report. You should already know how to build a drill-through page with drill-through fields and a back button, and you should understand filter context, which is the set of filters that decides what a visual calculates. We assume basic DAX and a star-schema model.
Why these two settings exist
A drill-through page receives filters when a reader right-clicks a data point and picks the page. The drill-through field in the well always passes its value. For example, if the field is Customer[Customer Name], the page is filtered to that customer.
Two questions remain:
- Should the target page also receive filters the reader set elsewhere on the source page, such as slicers on region or year?
- Can the target page live in a different report from the source?
Keep all filters answers the first question. Cross-report answers the second. Both are toggles on the target page, under the Drill through section of the Visualizations pane.
Keep all filters
What the toggle does
Keep all filters is a toggle in the Drill through area. When it is on, the target page receives the drill-through field's value and the other filters in effect for the source visual. In practice this includes slicer selections and cross-filtering from other visuals.
When it is off, the target page receives only the values of the drill-through fields. The reader lands on a page filtered to the chosen customer, with the other filters from the source page dropped.
| Setting | What reaches the target page | Typical result |
|---|---|---|
| Keep all filters on | Drill-through field value plus other source-page filters | Detail matches what the reader was looking at |
| Keep all filters off | Drill-through field value only | Detail shows everything about the selected item |
Example
A summary page has a Year slicer set to 2025 and a bar chart of sales by customer. The reader right-clicks "Contoso" and drills through to a "Customer Detail" page.
- With Keep all filters on, the detail page shows Contoso's orders for 2025 only.
- With Keep all filters off, the detail page shows Contoso's orders for all years.
Neither behavior is wrong. The first fits a reader who is investigating the period they selected. The second fits a customer profile page that should always show the whole relationship.
Seeing which filters arrived
A target page can be confusing when the reader does not know which filters came along. You can show this with a measure. Use ISFILTERED to test whether a column has a direct filter on it, and SELECTEDVALUE to read the chosen value.
Filter Note =
VAR YearText =
IF (
ISFILTERED ( 'Date'[Year] ),
"Year: " & SELECTEDVALUE ( 'Date'[Year], "multiple years" ),
"All years"
)
VAR RegionText =
IF (
ISFILTERED ( Geography[Region] ),
"Region: " & SELECTEDVALUE ( Geography[Region], "multiple regions" ),
"All regions"
)
RETURN
YearText & " | " & RegionTextPut this measure in a card at the top of the target page. With Keep all filters on, it shows the slicer values that came from the source page. With the toggle off, it shows "All years | All regions", apart from whatever the drill-through field itself filters.
Choosing the setting
Turn Keep all filters on when:
- The target page continues the analysis the reader started, such as "show me the orders behind this bar, for the period I picked".
- The target page's visuals are meant to agree with the numbers on the source page.
Turn it off when:
- The target page is a profile of one entity, and the source filters would make it incomplete.
- Source slicers use fields that make little sense on the target page, and the filtered result would look empty or misleading.
Edge cases
- Slicers on the target page. A slicer on the target page is separate from the filters it received. The reader can change it, and the incoming filters still apply on top of it.
- Sync slicers. If a slicer is synced to the target page, the page already has that filter whether or not Keep all filters is on. Turning the toggle off does not remove a filter that the sync supplies.
- Several drill-through fields. If you add more than one field to the well, the reader sees the page only when the selected data point carries values for them. With several fields, you can narrow the target page further by selecting the data point's own fields rather than relying on Keep all filters.
- Check the result. The exact set of filters that travel can vary with how the source visual is built. After you set the toggle, test with a few selections instead of assuming.
Cross-report drill-through
What it does
Cross-report drill-through lets a reader drill from a visual in one report to a page in a different report. This helps when you split a large solution into a summary report for executives and a set of detail reports for each business area. Readers still move from a data point to a filtered detail page, and they do not have to open another report by hand.
Setting it up
Setup has two sides. Both must be configured.
On the target report:
- Create the target page as you would for a normal drill-through page, and add the drill-through fields to the well.
- Turn on the Cross-report toggle for the page. The page can now serve as a target for other reports.
- Publish the report to the Power BI service.
On the source report:
- In Power BI Desktop, open File, then Options and settings, then Options. Under Current file, open Report settings.
- Turn on the setting that allows visuals in this report to use drill-through targets from other reports.
- Publish the source report.
Readers then right-click a data point in the source report. The menu lists the target report's page, which they select to open it.
What has to match
The target page receives filters by field. The source and target reports therefore need matching field names:
- The table name and column name of the drill-through field must be the same in both reports, for example
Customer[Customer Name]. - The data types should also be the same. A text column in one report and a number column in the other will not pass a filter reliably.
The two reports do not need to share a data model file, but the fields must line up. The usual way to guarantee this is to build both reports on the same shared semantic model. Then the names match automatically.
Access and security
- Readers need permission to open the target report. If they cannot, the target does not work for them.
- The target report applies its own security, including any row-level security on its semantic model. A reader may see less detail in the target than the source value suggests.
- Targets are discovered in the Power BI service. Check how your tenant handles reports in different workspaces, and test with a reader account, not only your own.
Combining the two settings
Both settings can apply to the same target page. The Keep all filters toggle controls what filters travel with the drill. Cross-report controls where the page can be reached from. For a cross-report page, the extra filters that Keep all filters passes only help if the target report has fields with matching names. A source slicer on a field the target report lacks cannot filter anything there.
Testing checklist
Run these checks before you release a drill-through page.
- Drill through with no slicers set. The page should show the selected item's data.
- Set a slicer on the source page, then drill through again. Compare the target page against the toggle setting you chose.
- Add the
Filter Notecard while testing, and remove it or restyle it before release. - For a cross-report page, test from the Power BI service with an account that has only reader access.
- Select an item with no data in the slicer's period. Confirm the page shows a clear empty state, not a confusing blank page.
Summary of the decision
| Question | Answer | Setting |
|---|---|---|
| Should the target page respect the source slicers? | Yes | Keep all filters on |
| Should the target page show the full history of the item? | Yes | Keep all filters off |
| Is the detail page in another report? | Yes | Cross-report on, plus the source report setting |
Exercise
A "Customer Profile" drill-through page should always show a customer's complete order history, even when the reader has a Year slicer set on the source page. Which setting do you change, and to what? What would you check if the same page were also meant to be reached from a different report?
Show answer
Set Keep all filters to off, so only the drill-through field (customer) filters the page and the Year slicer is not carried over. For access from a different report, turn on Cross-report on the target page, allow cross-report drill-through in the source report's settings, publish both reports, and confirm that the table and column names of the drill-through field match in both reports.