Report Studio

Adding a Variable From the Property Pane

 

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

 

Steps in the Properties Pane

  1. Select the object that you want.
  2. In the Properties pane, under Conditional, double-click the conditional property that you would like to assign the variable to.
     

    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 inserted into a block can be conditionally rendered. Applies only to conditional block objects that you insert in a report.

    Block Variable

  3. Click Variable and click one of the following variable types:
  4. <New language variable>
  5. <New string variable>
  6. <New boolean variable>

Tip: To use an existing variable, you can select it here.
 

  1. In the New Variable dialog box, type the name of the variable in the Name box.
  2. If you created a string variable, click the add button and type the string values you want to define, and click OK.
  3. If you created a language variable, select the languages you want to support, and click OK.
  4. In the Expression Definition box, define the condition and click OK.

 

Related Topics: