A workbook built on a live connection to a data source displays correctly, but after creating an extract, a filter stops returning values and the view renders empty.
This happens when a filter is driven by a calculated field that compares a text (string) field against a typed-in value, for example:
IF [Results] = "Sample Text"
THEN 1
ELSE 0
END
On the live connection the calculation returns the expected result, but once the data is extracted the same calculation evaluates to 0 for every row, so a filter based on it (for example, keeping only rows where the sum equals 1) removes all of the data.
Upgrading Tableau Desktop does not resolve the issue, because it is not a defect. It is the expected difference in how a live connection and an extract compare string values.
Step 1 — Make the string comparison case- and whitespace-insensitive
A live connection often compares text loosely (ignoring differences in capitalization and trailing spaces), while an extract compares text exactly, including case and any leading or trailing whitespace. Wrapping the comparison in TRIM and UPPER makes it behave the same on both.
Open the calculated field used by the filter.
Wrap the string field in TRIM(UPPER(...)) and put the compared text in uppercase. For example, change:
IF [Results] = "Sample Text"
THEN 1
ELSE 0
END
to:
IF TRIM(UPPER([Results])) = "SAMPLE TEXT"
THEN 1
ELSE 0
END
Click OK and confirm the filter now populates and the view renders correctly.
Step 2 — Confirm the true underlying value if Step 1 does not resolve it
If the value is not simply a case or whitespace difference, the field may have an alias applied. A calculation must match the real stored value, not the alias shown in the view.
005386253

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.