Back Forward Report Definitions
Using the Calculation Builder

About Report Definition rules

Purpose

The Calculation Builder appears in a pop-up window and lets you select an existing SQL function template to use as the basis for the SQL function you wish to use. When you have selected the template, the form displays further fields where you select the data the function is to use.

PRPC provides a large number of standard SQL function templates: see Atlas — Standard SQL function rules for a descriptive list. If none of the standard rules fit the needs of your report, you can create your own Function Alias rule. See About Function Alias rules.

Operation

Note that you can specify another SQL function as a property for a value in a SQL function. The Calculation Builder provides a fields and SmartPrompt assistance wherever this is possible. Note, however, that application performance may degrade if you specify SQL functions within SQL functions beyond five depth layers. If you need a more complex function than five layers of nesting can support, create a custom function to provide the SQL statement your report needs, and reference that custom function directly.

Note that, if you have a calculation involving CASE WHEN logic, and you want drill down to work properly in a report using the calculation, define your calculation to return a NULL value instead of 0 when a condition fails.

UpAbout Report Definitions