Follow the steps outlined on this page, but with some minor adjustments:
Create a Sheet Selection Menu for a Dashboard
Do not create a parameter. Instead, create a calculated field to test whether there is more than one subtotal present. Since the subtotals are along a specific dimension, we need to look across all values of that dimension and get the distinct count of values for the dimension:
ATTR( {EXCLUDE [dimensions], [in], [view]: COUNTD([subtotal dimension])} ) > 1
(The [dimensions],[in],[view] should be replaced by the actual names of the dimensions in the view, and the [subtotal dimension] should of course be the dimension along which the subtotals are shown. In the attached sample workbook, that dimension is [Category].)
Duplicate the worksheet and turn off subtotals on the duplicate sheet.
Add the calculated field to the Filters shelf for each, but filter to True on the sheet with subtotals on, and to False on the sheet with subtotals off. (If you cannot get "False" to display in the filter options, first filter the dimension down to only one value.)
Then proceed with placing the sheets on the dashboard as described on the "Sheet Selection Menu" Help page.
Please see the attached workbook for an example implementation.
001473542

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.