Filtering the View Without Filtering Underlying Data

Published: 05 Aug 2013
Last Modified Date: 06 Dec 2019


How to filter the view without filtering the underlying data.


Tableau Desktop


Step 1: Set up the View

  1. In Tableau Desktop, connect to the Superstore Sales sample data.
  2. Drag Order Date to Rows.
  3. Right-click Order Date on Rows, and then select Month.
  4. Right-click Order Date on Rows again, and then select Discrete.
  5. Right-click Order Date on Rows again, and then select Sort.
  6. In the Sort dialog box, under Sort Order, select Descending, and then click OK.
  7. Drag Sales to Text.
  8. Right-click Sales on Text, and then select Quick Table Calculation > Moving Average.

Step 2: Filter the View

  1. Select Analysis > Create Calculated Field to create a calculated field.
  2. In the Calculated Field dialog box that opens, enter a name for the field. In the example workbook, this field is named Date Lookup Filter.
  3. In the formula field, create a calculated field similar to the following, and then click OK:
    lookup(min(([Order Date])),0)
  4. Under Measures, right-click Date Lookup Filter, and then select Convert to Continuous
  5. Drag Date Lookup Filter from Measures to Filters.
  6. In the Filter dialog box that opens, select the desired dates, and then click OK.
To view these steps in action, see the video below: 

Additional Information

When a dimension is placed on the Filters shelf, Tableau Desktop filters out the underlying data as well as the data in the view. When using running sum, percent change, or moving average calculations, this filtering will cause the data in the view to change. Filters based on table calculations do not filter out underlying data. Instead, the data is hidden from the view, allowing dimension members to be hidden from the view without impacting the data in the view.

Community Forum: How to display a graph of "active events" over time.

Discuss this article... Feedback Forum
Did this article resolve the issue?