When using <FILTERVALUES()> in a dashboard URL action, selecting "(All)" in a filter causes Tableau to append every single dimension member to the URL string. This can result in a URL that exceeds the length limits of web servers or browsers, frequently leading to the following error:
400 Bad Request
For more technical details regarding this error, please refer to the following article: 400 Error Code Returned When Passing Very Long Filter Values in the URL.
To resolve this, we can dynamically pass a blank value when all items are selected, as Tableau treats an empty parameter as a selection of all values.
This workaround uses a combination of Level of Detail (LOD) expressions to detect if the filter is in the "(All)" state and table calculations to concatenate specific selections into a comma-separated string. By passing an empty string when all values are selected, we leverage Tableau's behavior where a parameter without a value (e.g., ?Field=) is treated as an "All" selection, thereby keeping the URL short and avoiding "400 Bad Request" errors.
Create the following four calculations. In this example, we use [Sub-Category] as the target field.
IF FIRST() == 0 THEN ATTR([Sub-Category])
ELSE PREVIOUS_VALUE("") + "," + ATTR([Sub-Category])
END
IF MIN({ FIXED : COUNTD([Sub-Category]) }) = MIN({ EXCLUDE [Sub-Category] : COUNTD([Sub-Category]) })
THEN ""
ELSE [Sub-Category List]
END
LAST() == 0
"Click Here"
http://server_name/t/site_name/views/sampleworkbook/ToDashboard?Sub-Category=<AGG(Sub-Category for URL parameter)>
Note: In the URL above, replace server_name and site_name with values appropriate for your environment. The <AGG(Sub-Category for URL parameter)> portion at the end is syntax automatically generated by Tableau and does not need to be modified.A sample workbook Sample Workbook.twbx is attached to this article for reference.
Sub-Category= (blank), and the target view should correctly display all members.005316602
446 KB

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.