R4 · Report mechanics · about 10 min
Drill Through to a Player
mediumThe Players page lists every player and their runs. The Player detail page has a runs card and a table of games, and it should show one player at a time: whoever the reader right-clicks on the Players page.
Your task
Make Player detail a drill-through page for a player, so right-clicking a name on the Players page offers Drill through > Player detail. Then save (Ctrl+S): the grader reads the saved report.
What the grader checks
You see the situations, not the expected numbers. The expected values are computed live from your file and the source data.
- V1Player detail drills through on Players[Name]
A page has Players[Name] in its Drill through well.
Stuck?
Open one hint at a time.
Hint 1
A page filter on Name filters the page to whatever is ticked in it. It doesn't know which player the reader right-clicked on another page.
Hint 2
Drill-through pages have their own well. Select the Player detail page with no visual selected and look in the Visualizations pane, under Build.
Hint 3 (near-answer)
Remove Name from Filters on this page and drag Players[Name] into the Drill through well. Power BI adds a back button. Save, then right-click a player on the Players page.
Show the editorial
Solve it first if you can: the editorial gives the answer away.
The trap
Putting Players[Name] in the page filters looks like the same thing: the detail page can be filtered to one player. But it is a fixed filter that the reader has to change by hand on the detail page, and right-clicking on the Players page offers no Drill through option.
The fix
On the Player detail page, drag Players[Name] into the Drill through well (Visualizations pane, Build).
Why it works
A field in the Drill through well makes the page a drill-through target: any visual that shows Players[Name] gets a Drill through > Player detail option, and the page opens filtered to the player that was clicked, with a back button to return.
When a detail page should open for whatever the reader clicked, use the Drill through well, not a page filter.