Expression Editor (Agents)

You can use the Expression Editor to manage the Functions used for the Aggregation of the Measures. Measures are parameters that are used to define analytical data that are visualized in the Agents. The Expression Editor provides a graphical user interface that helps you create and edit the Functions.

See the complete list of the available expressions Query Expressions.

Create Measure

  1. Go to Pricefx Agents > Agents.

  2. Select desired agent.

  3. Go to Definition step.

  4. Select desired Series.

  5. Go to Measures section.

  6. Click Add Measure.

Edit Measure

  1. Go to Pricefx Agents > Agents.

  2. Select desired agent.

  3. Go to Definition step.

  4. Select desired Series.

  5. Go to Measures section.

  6. Select Measure > Click {} Function under Aggregation column.

    DetectionStepEditMeasure.png

Expression Editor Description

Expression Editor Item

Description

Measures

You can select from the dropdown:

  • Measure

  • The aggregated value of the Measure (Sum, Avg, Per-Unit, etc.)

Expression Editor only works with the aggregated values. You need to either select an aggregated value directly from the dropdown or specify aggregation later otherwise you receive the following warning: non-aggregated value used.

Operators

Using the following operators you can define a relation between each aggregated value.

  • Arithmetic

  • Logic

  • Compare

  • String

Functions

You are provided with the following function categories that can be used in your expression.

  • General

  • Aggregation Functions

  • Statistical Aggregation

  • Within Groups

  • SQL

Run

You can test your expression to see if you are getting the expected value. The calculated value will be presented in the Result Preview section.

Visual Editor

You can switch between graphical and text representations of your expression.

When you define an expression for your measure you always need to specify a concrete argument otherwise you receive the following warning: Missing argument.