Sub topic 14
Troubleshooting common problems
This chapter assumes you have built a hierarchy, a drill-through page, and a report page tooltip, and that you understand filter context. Most failures come down to one of two causes. Either the visual is not sending the filter you expect, or the target page is not set up to receive it.
Start with the filter context
When a feature misbehaves, find out which filters the visual or page actually receives. This measure shows how many customers are in context and which one is selected. Put it in a card on the drill-through page or in a tooltip page while you debug.
Debug Context =
"Customers in context: " & COUNTROWS ( VALUES ( Customer[Customer Name] ) )
& " | Selected: " & SELECTEDVALUE ( Customer[Customer Name], "none" )If the count equals your whole customer list, the filter never arrived.
Common symptoms and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| No drill arrows on a visual | The axis holds only one field, or the visual type has no axis | Add a second level to the axis, or use a visual that supports drilling |
| Clicking a bar does not drill down | Drill mode is off | Turn on the single down arrow in the visual header |
| Date drills to the wrong levels | The Date table column has no built-in hierarchy | Build a Year, Quarter, Month, Day hierarchy on the Date table |
| No "Drill through" in the right-click menu | The visual does not contain the drill-through field, or you clicked empty space | Put the field in the visual's field wells and right-click a data point |
| Drill-through page shows all data | The field is not in the Drill through well, or the relationship is missing | Add the field to the well and check the model relationship |
| Filters from other pages are lost | Keep all filters is off | Turn Keep all filters on for that page |
| Tooltip page never appears | The page is not marked as a tooltip, or the visual still uses the default | Turn on Allow use as tooltip, then set Tooltip type to Report page on the visual |
| Tooltip shows grand totals | The hovered visual has no field related to the tooltip's data | Add the field to the Tooltips well, or use fields from the same related tables |
Level-aware measures
If ISINSCOPE returns the wrong label, check that the measure's visual uses the hierarchy fields directly. A measure cannot see a level that is not in the visual's axis. A check on the total row will also always fall through to "Total". That is correct behavior, not a bug.
For a drill-through title that always shows the fallback text, look at how many items are selected. SELECTEDVALUE returns its second argument whenever zero or several values remain in context.
Settings people forget
- A hidden drill-through or tooltip page still works. Hiding a page only removes its tab from readers.
- Cross-report drill-through must be enabled on both the source and the target report.
- Expand down and drill down give different results. Drill down replaces the level in view, and expand down adds the next level to the current one. If the result looks wrong, check which button you pressed.
- Tooltips on a visual that was changed to another tooltip type can keep the old page. Reselect the page in the Format pane.
Exercise
A reader right-clicks a bar in a column chart of sales by region. The "Drill through" option does not appear, even though a customer detail page exists with Customer Name in its Drill through well. What is the most likely cause, and how do you fix it?
Show answer
The source visual does not contain Customer Name, so there is nothing to pass to the detail page. Either add Customer Name to the chart's field wells, or build the drill-through from a visual that does show customers, such as a table of sales by customer.
Exercise
A tooltip page shows the same total sales for every bar you hover over. Name two checks that could find the cause.
Show answer
First, confirm the tooltip page's visuals use measures and fields related to the hovered visual's category through the model. Second, add the field to the visual's Tooltips well, or put the Debug Context measure on the tooltip page to see whether any filter arrives.