Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Add a Date Filter in Tableau Dashboards

· 8 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To add a date filter in a Tableau dashboard, put a date field on Filters (right-click the field > Show Filter, or drag it to the Filters shelf), then choose the filter scope by right-clicking the filter card and selecting Apply to Worksheets > All Using This Data Source so the control drives every sheet on the dashboard. Show the card on the dashboard (right-click the filter > Show Filter), then set the display style to a single value, range or relative date slider. On Tableau Desktop you do this in the authoring view; on Tableau Cloud or Server you save the workbook and the filter carries over to the published dashboard. Labels and wording can differ slightly between Tableau versions, editions and platforms, so look for the same option under a slightly different name.

What You'll Need

  • Tableau Desktop (or Tableau Public) to author the dashboard, plus a published workbook if you want the filter to live on Tableau Server or Cloud
  • At least one sheet already on a dashboard, with the date field used in the view
  • A date field typed as Date or Date & Time in the data pane, not a text or numeric field holding dates (a date string will not give you relative or range filters)
  • Edit permission on the workbook, and permission to republish if the dashboard is already live
  • Decide the question first: should the filter control one sheet, several sheets, or every sheet on the dashboard? That choice drives step 3.

Step-by-Step

  1. Confirm the field is a real date. In the Data pane, look for the small calendar icon next to the field. If you see "Abc" or "#", the column is text or a number. Right-click it and use Change Data Type > Date only if the values are clean and consistent; otherwise fix the source or use Data > New Calculated Field with a function such as DATE() or DATEPARSE() to build a proper date.
  2. Add the date to your first sheet's filters. On the worksheet, drag the date field onto the Filters shelf, or right-click it in the Data pane and choose Add to Filters. In the dialog that appears, pick the level of granularity. A continuous field gives a date range; a discrete field offers a list of values. Choose whatever matches how people will pick dates.
  3. Set the default selection. In the filter dialog, pick the starting state: a fixed range, a relative period such as the last 30 days, or a single value. A relative default keeps the dashboard useful without anyone touching it, because the window moves with today's date.
  4. Show the filter card. Right-click the date field in the Filters shelf (or in the Data pane while it is filtered) and choose Show Filter. The card appears on the right of the worksheet.
  5. Scope the filter to the whole dashboard. Right-click the filter card and choose Apply to Worksheets. Select All Using This Data Source for a dashboard-wide date control, Selected Worksheets to tick specific sheets, or Only This Worksheet if it should stay local. This is the step most people skip, and it is why a filter sometimes appears to do nothing.
  6. Repeat on the other sheets. Add the same date field as a quick filter on each sheet the dashboard uses. Each sheet must carry the field somewhere, as a filter or on a shelf; a worksheet that never references the date field cannot be filtered by it reliably.
  7. Add the dashboard. Create the dashboard and drop your sheets onto it. Filter cards added with Show Filter on a worksheet appear in the dashboard's filter area automatically when the sheet is placed.
  8. Choose the display style. Click the small drop-down arrow at the top-right of the filter card and pick a style: single value, single value list, multiple values list, range of values, or relative date. For date filters, Single Value (Slider), Range of Values and Relative Date are the most readable. Click the arrow again and choose Apply if the card is set to update only when you finish.
  9. Clean up the layout. Drag the filter card where it belongs, rename it to something a reader understands ("Reporting period" rather than the raw field name), and hide cards you do not want shown: right-click the card and untick Show Header if it clutters a small view.
  10. Set the update behaviour. For large or live data sources, the filter card has an Apply button option so a query runs once when the reader clicks, not on every slider movement. On extracts the cost is lower, but the button still helps on big views.
  11. Test as a reader would. Save, then switch to the dashboard tab and move the slider across two or three dates. Every sheet that should respond must change. Watch for sheets left on "Only This Worksheet" or charts that show blank because the current date window excludes all their data.
  12. Publish and check. Publish to Tableau Server or Cloud, open the published view, and confirm the filter card is there and working. If a reader should be able to set their own window, publish with the filter shown rather than hidden.

Common Mistakes

The most frequent error is a filter that only affects one sheet. If a dashboard has five charts and only one responds to the date slider, the other four are set to Only This Worksheet or do not include the date field at all. Open each sheet and check both.

A second common problem is a date stored as text. Tableau will happily let you filter a text field, but you get a long list of strings instead of a slider, relative periods, or sensible range picking. Convert the type before you build the filter.

Another trap is a fixed default date. A range hard-coded to last month looks fine on the day you build it and stale a month later. Use a relative date default if the dashboard should stay current. Also watch the difference between a continuous and a discrete date: continuous dates filter as one range, discrete dates offer individual values, and mixing them up makes the control feel wrong even when it works.

Finally, hiding the filter card and relying on a filter action or parameter instead leaves readers with no visible date control. A date filter people cannot see is the same as no filter from their point of view.

Tips

Use a relative date filter as the default on operational dashboards, so the view always opens on the useful window instead of years of history. On analysis dashboards where the reader picks a period, a range slider with a sensible start value usually works better.

If the dashboard needs several date views at once (this month, last month, year to date), create separate sheets each with its own fixed range rather than one filter everyone shares. Parameters work here too: build a calculated field that returns a boolean and use it as a filter, so readers pick a preset from a drop-down.

Keep filter card titles short and put them together in one group. A row of neatly named date controls reads as a designed dashboard; four cards titled after raw column names reads as a spreadsheet export.

For performance, prefer extracts for large date-filtered views and turn on the apply button. Each slider movement otherwise triggers a query on live data.

If you publish and the filter resets every time someone opens the view, the workbook's saved filter state is being overridden by the server's view settings; check what the publisher allowed readers to change.

Troubleshooting

The card does nothing. Check Apply to Worksheets on the filter card, then confirm each sheet actually uses the date field. A sheet that filters on a different date field or on a text column will not respond.

Charts go blank. The selected window probably excludes the data those sheets contain, often because they use a different date column, a date and time, or data from another source. Widen the range to test, and confirm all sheets use the same date field.

The slider is missing and you only get a list. The date field is discrete or text. Change the type or wrap it in a continuous date before filtering. For a quick fix, right-click the pill and switch to a continuous form.

The filter works in Desktop but not after publishing. Republish the workbook rather than saving only, then refresh the browser. If a filter action or parameter is also in play, check that the published version includes the same sheets and settings.

Everything is slow. Switch the card to apply-on-click, reduce data with an extract or a data source filter, and drop unused sheets from the dashboard.

If a dashboard will not cooperate, save a copy, strip it back to one sheet and one date filter and confirm that works; the problem is usually in how the extra sheets or filters interact, not in the date field itself.

Frequently Asked Questions

Can readers set their own date range on a published dashboard?

Yes, if you show the filter card and publish it with the workbook. Readers use the card in the browser to pick their own range, subject to how the workbook was published and what permissions they have.

Why does my date filter show a list instead of a slider?

The field is discrete or text. Use a continuous date so the control offers a range or slider, and make sure the filter is set to a range style rather than a multiple-values list.

How do I make one date filter control every sheet?

Right-click the filter card, choose Apply to Worksheets > All Using This Data Source, and make sure each sheet references the date field. Sheets from a different data source need their own filter.

Can I filter a dashboard to the last 30 days automatically?

Yes. Set a relative date filter with a rolling window ending today instead of a fixed range. The window then moves forward as days pass, so the dashboard stays current.

Does the date filter work on Tableau Cloud and Server?

Yes. Filters built in Tableau Desktop carry into the published workbook. The filter card layout and any reader-side customisation options can look slightly different in the browser, but the underlying filter behaves the same.

Can I use two date filters on one dashboard?

Yes, for example a start date and an end date, or one filter for a headline period and another for comparison. Set the scope of each carefully and give them clear titles so readers know which charts each one drives.