Filters and Drill-Down
Selecting North in a Region filter turns every metric and chart that uses the same source into a figure for North. Dashboard filters affect the analytics context without altering worksheet cells or AutoFilter. Filter widgets, selectable chart marks and configured drill paths can narrow the other widgets that are based on the same source.
Filter in the Viewer
Choose a Region button to limit the widgets that use the shared source. The metrics and charts then describe that region:

Use the Clear command of the filter to return to the unfiltered dashboard. The current filter state also affects previews you open later in Widget Settings.
Open the Source Rows
When source-data access is enabled, Show Source Data opens the matching records in the card, and Back to Chart returns to the visualization:

Source data is available only when the widget explicitly allows it, and it is bounded by the API: Dashboard.sourceData returns at most 1,000 rows.
Important
Source Rows and Authorization. A summary and its source rows answer different questions. Keep access consistent with the authorization of the host application, and do not confuse source-row inspection with permission to access all records in the application.
Set Filters in Code
A filter identifies a source, a field, a supported operator and values. dashboard.setFilters() replaces the filter context of the dashboard:
dashboard.setFilters([
{ sourceId: 'sales', field: 'Region', operator: 'in', values: ['North', 'West'] }
]);
The code works as follows:
- Dashboard.setFilters replaces the shared filter context with one filter: the
Regionfield of the sourcesalesmust have one of the valuesNorthorWest(operatorin). The source worksheet values and the AutoFilter state stay as they are.
To inspect the saved or default filter context, read snapshot, the Dashboard.snapshot property. Save filter defaults when the initial published view should start with a deliberate selection.
Filter by Date
Use a date filter widget for ranges with a start and an end, or for searchable period choices. The controls live in the widget itself, including the granularity of days, months or years.

Dates inherit the format of the source spreadsheet. An explicit dateFilter.format of the widget, the format of DashboardWidget.dateFilter, overrides it. German dotted dates and the supported serial and ISO date inputs follow the documented calendar rules. Dates and Locales covers date values, formats and date filters in more detail.
Drill Into a Hierarchy
Set the drillDown array of a widget, DashboardWidget.drillDown, for example to Region and then Product. Selecting a mark filters that level and advances to the next configured dimension.
- One level up.
drillUp(), the method Dashboard.drillUp, returns one level. - Back to the root.
drillTo(widgetId, 0), the method Dashboard.drillTo, returns to the root and clears descendant selections. - Invalid requests. Invalid levels and unconfigured paths reject.
Read the Status Bar Messages
The status bar of the dashboard reports the latest filter, drill or design action, and temporary errors. Blank filters, unavailable fields and empty result sets should be presented clearly rather than as fabricated totals.
Separate Filtering, Drilling and Highlighting
Set interactions.action to choose one mark behavior. filter updates dashboard filters by default; scope: 'widget' stores the restriction only in the selected widget's query. drill moves that chart down its hierarchy without filtering other cards. highlight dims nonmatching marks in charts that contain the selected source dimension. none leaves the mark passive. Omitting action retains the original filter/hierarchy behavior.
expand keeps parent summaries and opens only the selected hierarchy branch. Other branches remain summarized. Expanding Europe, then Germany, leaves Americas and Asia at their original level. Select an expanded parent again to collapse its descendants. The query result includes hierarchy metadata for the viewer; worksheet rows and AutoFilter are not changed.
dashboard.updateWidget('regions', {
drillDown: ['Region', 'Country', 'Customer'],
interactions: { action: 'expand' }
});
dashboard.toggleBranch('regions', [
{ sourceId: 'sales', field: 'Region', operator: 'equals', values: ['Europe'] },
{ sourceId: 'sales', field: 'Country', operator: 'equals', values: ['Germany'] }
]);
An explicit branch path contains equality filters in hierarchy order and stops before the final level. It can be set from code even when its ancestor is not currently expanded; expand the ancestor as well to display that descendant.

Open a Detail Dashboard
Configure action: 'navigate', targetDashboardId and the target field. Selecting a customer opens the destination with an equality filter for that customer. With the same source, the current reporting filters and widget-local restrictions accompany the selection. Unrelated destination filters remain. For different sources, set targetSourceId and targetField; only the explicitly mapped mark is transferred.
const details = book.dashboards.add('Customer Orders');
details.addWidget({
id: 'orders', type: 'table', title: 'Selected Customer Orders',
placement: { x: 0, y: 0, width: 12, height: 10 },
query: { sourceId: 'sales', dimensions: ['Order ID', 'Customer', 'Date'],
measures: [{ field: 'Revenue', aggregation: 'SUM', alias: 'Revenue' }] }
});
dashboard.updateWidget('customers', { interactions: {
action: 'navigate', targetDashboardId: details.id, targetField: 'Customer'
} });
Back and Forward restore filters, drill/expanded state, metric choices, parameters, highlighting, collapsed sections and the active dashboard. This exploration history holds up to 50 actions, is separate from design undo and is not saved in TXWB. Data or design changes invalidate it. Filter chips show current dashboard restrictions and let readers clear one restriction or reset all filters.
Select Calendar Groups
Date grouping supports day, month, quarter and year. Selecting a grouped date mark creates a calendar-period filter, rather than comparing a raw date to a month label. Date Filter widgets inherit the spreadsheet's date display and accept a format override in their settings. Quarter labels use yyyy-Qn, for example 2026-Q1.
Next Steps
- Dates and Locales: store, format and filter date values.
- Widgets: enable filter interactions and source-data access for a widget.
- Dashboard Viewer: host the dashboard in a viewer where readers filter and drill without authoring.
- Sorting and Filtering: filter worksheet data with AutoFilter, which dashboard filters leave unchanged.
- Dashboards in Troubleshooting: check filters, dates and source rows when a widget shows no records.