Sub topic 13
Troubleshooting unexpected filter results
This chapter assumes you can add slicers, use the Filter pane, and read a basic DAX measure. It gives you a repeatable way to find out why a visual shows numbers you did not expect.
Work from the outside in
Every visual is filtered by several layers at once. Check them in this order:
- The slicers on the page, including synchronized slicers from other pages.
- Interactions from other visuals, such as a cross-filter from a clicked bar.
- Report-level, page-level, and visual-level filters in the Filter pane.
- The DAX measure itself, which can add, change, or remove filters.
Common problems and fixes
| Symptom | Likely cause | What to check |
|---|---|---|
| A slicer does nothing to one visual | Interaction set to None | Select the slicer, then use Format > Edit interactions and check that visual's icon |
| A slicer works on one page but not another | Slicer is not synchronized | Open View > Sync slicers and check the Sync column for that page |
| A slicer changes the wrong pages | Slicer is synchronized, but a page has a different filter | Compare the Filter pane on each page |
| A number is lower than expected | A hidden filter at page or report scope | Expand the Filter pane and read every scope |
| A visual is blank | Filters that exclude all rows, or no relationship between tables | Clear filters one at a time, then check the model relationships |
| Top N shows the wrong items | Top N is applied to a different field or measure than you assumed | Open the filter card and check the "By value" field |
| A relative date filter shows old data | The data has no recent dates, or the date column is the wrong one | Check the latest date in the column |
| A percentage does not add to 100% | The measure uses ALL or REMOVEFILTERS | Read the measure's filter functions |
Find hidden filters
Filters set to hidden or locked in the Filter pane may not appear to readers, but they still apply. In Power BI Desktop, open the Filter pane and check all three scopes. Look at the visual's own filters by selecting the visual. A filter on a field that is not in the visual still applies.
Also check the Filters on this page and Filters on all pages sections for fields you did not add. A coworker may have added them.
Check relationships and field choice
A slicer filters a visual only if the slicer's table can reach the visual's table through a relationship. If a slicer uses a column from a table with no relationship, the visuals do not change. Open Model view and confirm that a relationship exists, that it is active, and that its filter direction points toward the table you want to filter.
Also check that you used the right field. Slicing on a date from a Sales table and a date from a Calendar table can give different results if only one is related to the other tables.
Check the measure
If the same measure behaves differently from what you expect, test it against a plain version:
Total Sales = SUM ( Sales[SalesAmount] )Put Total Sales in a table beside the suspect measure. If Total Sales responds to the slicer and the other measure does not, the problem is in the measure. Look for these functions:
REMOVEFILTERSorALL, which ignore filters on purpose.ALLSELECTED, which keeps slicer selections but ignores filters from the visual's own rows and columns.SELECTEDVALUE, which returns the fallback value when more than one item is selected.
For example, this measure always shows the same figure however you slice by product:
Total Sales All Products =
CALCULATE ( [Total Sales], REMOVEFILTERS ( Product ) )That is correct if you want a fixed benchmark. It is a bug if you expected it to respond to a Product slicer.
A quick checklist
- Clear all slicers with a Clear selections action and see whether the problem remains.
- Select the visual and read its Filters list.
- Check Edit interactions for the slicer and the visual.
- Check Sync slicers for the page.
- Check relationships in Model view.
- Compare the measure to a simple
SUM.
Exercise
A card showing Selected Category displays "All categories" even though you chose two categories in a slicer. Is this a bug? Why?
Show answer
No. SELECTEDVALUE returns its second argument when zero or several values are selected, so with two categories chosen it returns "All categories". To show the actual selection, use a measure such as CONCATENATEX over VALUES, or select only one category.
Exercise
A slicer on Region changes a column chart but not a table on the same page. Name two places to check.
Show answer
Check Edit interactions to see whether the slicer's effect on the table is set to None. Then check whether the table's measure uses REMOVEFILTERS or ALL on the Region table, which would ignore the slicer.