Expression Builder
The Expression Builder is used to enter query criteria, or create calculated fields, and is accessed from the Field List panel by:
- Clicking the ellipses button (), located in any of the criteria fields.
- Selecting a field, right-clicking, and, selecting Add Calculated Field, or, Edit Calculated Field.
The options available in this panel vary, based on the connection type assigned to the query.
Expression Builder Options
Use the following table to enter data in the Expression Builder panel:
Option |
Function |
---|---|
Field & Parameter: |
|
Coalesce |
Converts null values to the value specified in the function (defaults to |
Show Values |
Retrieves each distinct value of a selected field. |
Date Conversion |
The system inserts the selected date field into an expression, converting the field into an actual date type field. Valid values are:
Note: Date formats are not exclusive to the ledgers listed above. |
Value as Smart Parm/Number/Text |
Inserts the parameter as a Smart Parm, number, or text. |
Built-in Expressions: |
|
%GEXDROW% |
Inserts the |
%USER% |
Inserts the |
%WINDOWSUSER% |
Inserts the |
%APPUSER% |
Inserts the |
Functions: |
|
Logic |
Click the drop-down list to access additional |
Simple Loop |
Inserts a loop statement, allowing the query to loop through fields, and summarize them based on the user-defined parameters of the loop counter. The loop continues to process from the first counter, until it hits the second counter. |
Loop Count |
Inserts the |
Loop Count NN |
Inserts the |
Simple IF |
Inserts a basic IF-THEN-ELSE statement, which may then be modified. |
Date: |
|
Current Date |
Inserts the expression of the current date in the query. |
90 Days Ago |
Inserts the |
Operators: |
|
Arithmetic |
Valid values are:
|
Comparison |
Valid values are:
|
Logical |
Valid values are:
|
Test: |
Verifies the SQL statement of the calculated field. |