Add a Variable from the Properties Pane

Before you can add conditional formatting or conditional rendering to your report, you must add a variable. You can create a variable in the condition explorer or in the Properties pane.

Procedure

  1. Select the report object.
  2. In the Properties pane, under Conditional, double-click the conditional property to which to assign the variable.

    The following conditional properties are available:

    Goal

    Conditional Property

    Specify a variable based on which text can be conditionally shown.

    For example, you want different text to appear when a report is run in a different language.

    Text Source Variable

    Specify a variable based on which object can be conditionally rendered.

    For example, you want to make a revenue report smaller by not rendering rows that are below a threshold.

    Render Variable

    Specify a variable based on which object can be conditionally styled.

    For example, you want data that meets some criterion to appear in a different color.

    Style Variable

    Specify a variable based on which objects in a block can be conditionally rendered. Applies only to conditional block objects that you insert in a report.

    Block Variable

  3. In the Variable box, click an existing variable or one of the following variable types:
    • <New language variable>
    • <New string variable>
    • <New boolean variable>
  4. In the New Variable dialog box, in the Name box, type the name of the variable.
  5. If you created a string variable, click the add button add icon, type the string values to define, and click OK.
  6. If you created a language variable, select the languages to support and click OK.
  7. In the Expression Definition box, define the condition.