Setting a conditional rule - Amazon QuickSight
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Setting a conditional rule

When you set up a conditional rule, you create a conditional statement that will hide or show a visual when a specific condition is met. You can currently create conditional rules that hide or show a visual. If you want to create a conditional rule that makes a hidden visual appear, choose Hide this visual by default in the Rules menu of the Properties pane.

Note

Before you begin, make a parameter and a corresponding parameter control to base your new conditional rule on. Supported parameters are string parameters and number parameters. For more information about parameters and parameter controls, see Parameters in Amazon QuickSight.

To set a conditional rule
  1. From the Amazon QuickSight start page, choose Analyses, and then choose the analysis you want to customize.

  2. Choose the visual that you want to add a rule to.

  3. On the menu in the upper-right hand side of the visual, choose Properties.

  4. In the Properties pane that appears on the left, choose Interactions, and then choose Rules.

  5. Choose ADD RULE.

  6. In the first menu in the Add rule pane, choose the parameter you want.

  7. In the second menu in the Add rule pane, choose which condition you want. For string parameters, supported conditions are Equals, Starts with, Contains, and Does not equal. For number parameters, supported conditions are Equals, Starts with, Contains, and Does not equal.

  8. Enter the value you want the conditional rule to meet.

    Note

    Values are case-sensitive.

  9. Choose Add rule to apply the new conditional rule to the visual. To cancel the rule, choose Cancel.

Interface for adding a new rule with parameter, condition, and action fields.

Conditional rules can also be edited and deleted.

To edit a conditional rule
  1. On the menu in the upper-right hand side of the visual, choose Properties.

  2. In the Properties pane that appears on the left, choose Interactions, and then choose Rules.

  3. Choose the menu icon on the right-hand side of the rule you want to edit, and choose Edit.

  4. Make the changes that you want and choose Save.

To delete a conditional rule
  1. On the menu in the upper-right hand side of the visual, choose Properties.

  2. In the Properties pane that appears on the left, choose Interactions, and then choose Rules.

  3. Choose the menu icon on the right-hand side of the rule you want to edit and choose Delete.