Query Viewer Variables

To add a local variable:

  1. On the Local Variables tab, click Add.

  2. Provide a name for the local variable.

    Note: Ensure that the name is unique across resources. Local variables cannot share names.
  3. Choose a function from the Function drop-down list.

    For a description of available functions, see Variables.

  4. Provide other details as needed and click OK.

The local variable is available in the following views:

For example, you can add a local variable using the Timestamp Function (such as GetHour, GetDayOfWeek, GetDayOfMonth, and so forth).

Note: You cannot promote a query viewer local variable to a global variable. Query viewers operate on queries, which have their own distinct schema for each instance. A local variable defined for a query viewer is only applicable to that query viewer.

Local variables defined for data from events, actors, cases, and assets can be promoted to a global variable.

For more information about global variables (which can be used in queries), see Global Variables.