Saltar al contenido

Lección 14 · Dashboards

Filters, Drill-Down and Usability

Design dashboard filters, defaults and drill-down paths that keep totals consistent, show the active selection, handle empty results and test with real users.

Interaction lets one dashboard serve many questions. It also creates new ways to be confused: a filter left on from yesterday, a total that ignores a selection, or a click that leads somewhere unexpected. Good interactive design makes the current state obvious and keeps numbers consistent.

Filters

A filter limits the data shown, for example to one region or date range. Good filter design follows a few rules:

  • Choose sensible defaults. Most readers never change them. The default view should answer the most common question.
  • Show the active selection in the title or a visible bar: "Region: South; Period: Nov 2026".
  • Make reset easy with one control.
  • Keep the number small. Each filter multiplies the possible views.
  • Define the scope. Say whether a filter affects all panels or only one.

A dangerous case is a panel that ignores a filter without saying so, such as a company-wide target beside filtered actuals. Readers assume that everything on the screen matches. Label exceptions clearly.

Make totals match

Filtered parts should add up to the unfiltered total when the groups do not overlap. If they do not, find out why: missing values often cause it. Rows with an empty region disappear when someone selects any particular region.

SQL Find rows that filters can hide

Press Run (or Ctrl + Enter) to see the result here.

Two of the seven tickets have no region. Showing a "(not recorded)" group keeps totals honest and makes the data problem visible.

Relative dates

Filters such as "last 7 days" move every day. That suits monitoring, but two people opening the same link on different days see different results. Show the actual date range next to the label. Say whether today, which may be incomplete, is included.

Drill-down and drill-through

Drill-down moves from a summary to finer levels, such as country, then city, then store. Drill-through opens a detail page or record list about one selected item.

flowchart LR
  A["Total late orders"] --> B["By warehouse"]
  B --> C["By carrier"]
  C --> D["List of late orders"]

Each step narrows the same population until the reader reaches items that can be acted on.

Rules for a trustworthy path:

  1. The detail must use the same definition and filters as the summary. The list length should match the number clicked.
  2. Show where the reader is, with a breadcrumb trail, and offer a way back.
  3. Check access at every level. A user allowed to see totals may not be allowed to see named records.

You can test rule 1 automatically.

Python Check that drill-through matches the summary

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Fix the function so that it excludes test orders, and the mismatch disappears. Even better, have both functions call one shared filter.

Other interactions

  • Tooltips are good for extra detail, never for essential information.
  • Sorting should keep totals in place.
  • Cross-filtering, where clicking one chart filters others, is powerful but surprising. Make the effect visible and easy to undo.
  • Export is useful, but exported files leave your access controls. Add the filters, period and extraction time to the export, and follow your data rules.
  • Shareable links are helpful if they keep the selection. Check that they do not expose data to people who lack permission.

Empty and slow states

Plan for "no results". An empty chart could mean no events, a failed load or an impossible filter combination. Show different messages: "No late orders in this selection" is different from "Data could not be loaded."

Speed is part of usability. Pre-calculate common summaries, limit the default date range and avoid loading huge detail tables until the reader asks for them.

Test with people

Give two or three readers real tasks, such as "Find the warehouse with the most late orders last week." Watch without helping. Note where they hesitate, what they click and what they conclude. Test keyboard use too, since not everyone uses a mouse.

Choose which filters to offer

Start from the questions readers really ask, and do not turn every column into a filter. A useful filter usually has three features: readers often want to narrow by it, its values are reasonably complete and it applies to most panels on the page.

Be careful with fields that contain hundreds of values, such as customer names. A search box may work better than a long list, and access rules apply to the list too, because even the names offered in a filter can be sensitive.

Think about combinations. When one filter limits another, for example country and city, update the second list so that readers cannot easily choose an impossible pair. Rates also need care after filtering. A narrow selection may leave only a few cases, so keep the counts visible beside every percentage.

Last, check how the dashboard calculates totals under filters. A summary rate must be recalculated from the filtered numerator and denominator. Averaging the rates of the visible rows gives a different and usually wrong result. Test one filtered view against a manual query before you release the page, and repeat the test when you add a new filter.

Write down the decisions you made about defaults and scope in the page notes. When a reader asks why two views differ, you can then point to the rule instead of guessing, and the next editor will not change it by accident.

Do not treat a hidden filter or a hidden page as a security control. Restrict data where it is served, so that unauthorized rows never reach the user.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. Region groups add to less than the unfiltered total. What is a likely cause?

    Rows with null or empty values may be missing from the groups.
  2. 2. What must be true of a drill-through list that opens from a count of 12?

    Detail that does not match the summary destroys trust.
  3. 3. Which is the right way to restrict sensitive records?

    Hiding and default filters are not security. The data itself must be protected.

Summary

  • Choose good defaults, show the active selection and make reset easy.
  • Keep missing values visible so that parts and totals agree.
  • Show real date ranges beside relative filters.
  • Make drill paths use identical definitions and respect access rules.
  • Design empty states, keep pages fast and watch real users.

Next: Writing Findings

Tu progreso se guarda en este navegador. No necesitas una cuenta.