Dynamic Functions

Users can create PQL formulas from the Content panel by selecting the required functions from the drop down lists. The selected dynamic property is then based on the formula, rather than static values. This provides users with a tremendous amount of flexibility and control over the behavior of dynamic assets.

  • The PQL functions for dynamic graphics and text are exposed via the common library and the dynamic library.

How to Build Dynamic PQL Formulas

Select the required function(s) from the drop down menus. Then add the relevant data to the expression simply by selecting it in the grid. For instance, to add a , select a set of cells that contain values.

Review the following list to understand how each parameter relates to the grid:


Click-select a row or column caption (header), or write the caption contained within quotation marks.


Click a column number from the grid.


Select a row or column caption (header).


Write the index of criteria, contained within quotation marks, followed by = and a result. For example (Criteria("Purached Bike"="Yes","Purchased Bike"="No").


Write a default numeric value.


Write a string, contained within quotation marks. For example, "Up".


Write a string, contained within quotation marks. For example, "Down".


Click a row or column number.


Write either "true" or "false" depending on whether or not the given caption is case sensitive.


Write the index of outcomes (the results that should be returned when the corresponding criteria from the criteria_set index is met, (contained within quotation marks. For example, CriteriaResults("Cyclist", "Potential"), "na").


Write a number between 0 and 1. For example, 0.6.


Click a row number from the grid.


Select a cell containing a numeric value.


Select a set of values by clicking cells that contain numeric values.


Some functions end with empty brackets (like numberOfColumns, numberOfRows, and numberOfCells). The brackets should be left as they are.

Example: Dynamic Text based on a Dynamic Function

In the following example, we want to configure dynamic text that show the average cost for Accessories, in a currency format with no decimal places.

The first step is to add the average function from the queries drop down:

Next, highlight the average function and select Currency ($#) from the formats drop down. The average function will be inserted into the format function:

Next, remove [] and replace it with the set of values for which the average should be returned. To do this, simply click the relevant cells (blue highlight), and separate each of them with a comma: