Using Conditional Rules
In analyses that use a free-form layout, you can configure rules to hide or show visuals
when specific conditions are met. For example, you can have multiple versions of the
same visual overlapped with each other and only display to a dashboard user the version
that corresponds to a parameter value they select.
- Click , the Dashboards tab.
- Click Dashboard Designer, in the bottom-left corner.
- On the Analyses dialog, click , the Options button, next to an analysis and select Edit to open the analysis page.
- On the menu bar, go to Free-form under Sheet Layout and click Apply. , then select
- Select the visual that you want to work with.
- Click , the Format visual icon, in the top-right corner of the visual to display the Properties panel.
- Select the Interactions tab and expand the Rules section.
- To hide or display the visual by default, enable or disable the Hide this visual by default option.Hidden visuals do not appear in published dashboards. In analyses, an overlay with the message Hidden based on rule is displayed over hidden visuals.Note: You cannot create conditional rules that hide visuals that are already hidden by default or that show visuals that already appear by default. If you change the default visibility of a visual, any existing rules that contradict the new default setting are disabled.
- To create a rule, click the ADD RULE button and configure the settings from the Add new rule panel:
- Under Parameter, select a string or number parameter.
- Under Condition, select a condition.For string parameters, the supported conditions are Equals, Starts with, Ends with, Contains, and Does not equal. For number parameters, the supported conditions are Equals, Less than, Greater than, and Between.
- Under Value, enter the comparison value.Values are case-sensitive.
- Under Action, select Hide this visual or Show this visual.
- Click ADD.
The rule that you created is displayed in the list of rules from the Interactions panel. To edit or delete a rule, click , the Open menu icon, next to the rule and select Edit or Delete.
You can also move a parameter control inside the sheet. Click , the Options icon, next to the control, and select Move inside this sheet. This setting is useful when you want to place a parameter control next to the associated visual or when you want to add a conditional rule to the control so it appears only when specific conditions are met.