Both examples are demonstrated in the attached workbook, which can be downloaded from the bottom of this article. Example 1 shows how to limit Actions based on the value of the dimension selected. Example 2 shows how to limit Actions based on which dimension the user selected. Option 1 for both examples will allow for the creation of two separate Actions, and will work for Filter Actions, URL Actions, and Highlight Actions. Option 2 for both examples creates a Filter Action that will conditionally show a different target worksheet.
Instructions for both options start with the "Example 1: Original Dashboard" dashboard already created. In this example, the goal is to show a different graph when the user selects California versus other states.
This option will work when different marks created by different members of the same dimension. This option will only work when Actions are triggered by Menu rather than Select or Hover.
IF [State or Province] = "California" THEN "Click to see CA Graph >" ELSE NULL END
IF [State or Province] != "California" THEN "Click to see All Other States Graph >" ELSE NULL END
This option will work when different marks created by different members of the same dimension. This option will only work for Filter Actions.
Instructions for both options start with the "Example 2: Original Dashboard" dashboard already created. In this example, the goal is to show a different graph when the user selects a category value,versus a sub-category value.
This option will work for URL Actions, Highlight Actions, or Filter Actions.
This option will work when different marks or headers are created by dimensions. This option will only work when Actions are triggered by Menu rather than Select or Hover.
IF TOTAL(COUNTD([Product Sub-Category])) =
SUM({ FIXED [Product Category] : COUNTD([Product Sub-Category])})
THEN "all"
ELSE "some"
END
To voice your support for the inclusion of this feature request in a future product release, add your vote to the following Salesforce Idea: Add Conditions for Actions.
Actions
Customizing a Calculation When "All" is Selected in a Filter
001473785
1570 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.