The following example shows how to build a complex expression tree using a function with a series of functions.
How to use a function within a function:
- From the Navigation Panel, click Metric Explorer.
- Place the cursor in the blank function node.
- In the Properties dropdown list, select
- Place the cursor in the box again, and click.
- In the Values dropdown list, select All (*).
- Click above the expression.
- Type sumSeries or select sumSeries in the dropdown list.
SumSeries has no parameters. By default, the key-value pair Campaigns: All (*) is the parameter for the function.
- Click . A new expression node appears.
- In the empty expression node, place the cursor, and in the All Values section of the dropdown list, select Campaigns: 301.
- Click above the expression.
- Type divideSeries or select divideSeries in the dropdown list.
- To nest the sumSeries function in the divideSeries function, hover over to the left of sumSeries until the move icon appears.
- Holding the device button down, grab the sumSeries function, drag it to under the divideSeries function, and drop.
The Expression Builder now shows the sumSeries function nested within the divideSeries function.
- Save the expression (see the relevant saving sections here).
How to create an area graph:
- In the Display Panel toolbar, click .
- In the Chart Type section, select Area.
- Click Apply.