Working with Global Parameters

About Global Parameters

Global parameters enable you to specify a variable whose value can be changed globally at any time. You can use global parameters in filters, calculated items, and aggregated measures.
If your selected visualization contains a data item or filter that uses a global parameter, then the parameter appears on the Parameters tab. The same value for the parameter is used globally in your exploration for all filters, calculated items, and aggregations that include the parameter.
Note: Global parameters are shown on the Parameters tab only if a data item or filter that uses the global parameter is used in the selected visualization.

Create a Global Parameter

You can create a global parameter during the process of editing a filter, calculated item, or aggregated measure.
  1. In the expression editor, right-click the Parameter heading in the Data Items list, and then select Create Parameter.
  2. Specify the Name of the parameter.
  3. Specify the Type for the parameter. You can select either Numeric or Character.
  4. For character parameters, specify the Current value for the parameter.
    For numeric parameters, specify the following:
    Minimum value
    specifies the minimum possible value for the parameter.
    Maximum value
    specifies the maximum possible value for the parameter.
    Current value
    specifies the current value for the parameter.
    Format
    specifies the data format for the parameter.
  5. Click OK to save the parameter.
  6. Finish editing your item. If you close the expression editor window without saving, then your new parameter is not saved.

Set the Value for a Global Parameter

If your selected visualization contains a global parameter, then the parameter appears on the Parameters tab.
For a numeric parameter, either drag the slider to adjust the value or click the value below the slider to edit the value.
For a character parameter, enter the value in the text field.

Edit a Global Parameter

To edit the settings for a parameter, follow these steps:
  1. On the Parameters tab, select the Options drop-down list for the parameter, and then select Edit.
  2. For character parameters, specify the Current value for the parameter.
    For numeric parameters, specify the following:
    Minimum value
    specifies the minimum possible value for the parameter.
    Maximum value
    specifies the maximum possible value for the parameter.
    Current value
    specifies the current value for the parameter.
    Format
    specifies the data format for the parameter.
  3. Click OK to apply your changes.

Delete a Global Parameter

To delete a global parameter, follow these steps:
  1. Edit a filter, calculated item, or aggregated measure.
  2. In the Data Items list, right-click the parameter that you want to delete, and then select Delete Parameter.
    Note: You can delete a global parameter only if it is not used by any filters, calculated items, or aggregated measures.
  3. Finish editing your item, and then click OK.
    Note: If you close the expression editor window without saving, then the parameter is not deleted.