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:
- In the Metrics tab, place the cursor in the blank expression node.
- In the Properties drop-down list, select
- Place the cursor in the box again, and click.
- In the Values drop-down list, select All (*).
- Click at the right of the expression. A expression node appears above.
- Placing the cursor in node box, type sumSeries or select sumSeries in the drop-down list.
SumSeries has no parameters. By default, the key-value pair Campaigns: All (*) is the parameter for the function.
Notice how the first expression node became indented once you selected the function.
- Click. A new expression node appears.
- In the empty expression node, place the cursor, and in the All Values section of the drop-down list, select Campaigns: 301.
- Click at the right of the expression.
- Placing the cursor in the box, type divideSeries or select divideSeries in the drop-down 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.
- Click Save. See Metric Expressions
How to create an area graph:
- In the Expression Builder toolbar, select .
- In the Display as section, select Area.
- Click Done