Skip to main content

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 0).

Show Values

Retrieves each distinct value of a selected field.

Data Conversion

The system inserts the selected date field into an expression, converting the field into an actual date type field. Valid values are:

  • YYDDD: Julian date format used by Infinium.
  • CYYDDD: Julian date format used by JD Edwards.
  • YYYYDDD: Julian date format used by Jack Henry.
  • YYYYMMDD: date format used by BPCS.

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 %GEXDROW% keyword, replacing the Excel row number, when used in a GEXD formula.

%USER%

Inserts the %USER% keyword, replacing the user name in the connection to the data.

%WINDOWSUSER%

Inserts the %WINDOWSUSER% keyword, replacing the Windows user name, when executing the query.

%APPUSER%

Inserts the %APPUSER% keyword, replacing the application user name from Application Configurator, when executing the query.

Functions:

 

Logic

Click the drop-down list to access additional %IF and %LOOP functions.

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 %LOOPCOUNT% keyword.

Loop Count NN

Inserts the %LOOPCOUNT2% keyword. The 2 may then be modified to a different number, to indicate the number of characters or digits to display for the value.

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 (CURRENT DATE - 90 DAYS) expression. The - 90 may then be modified to a different value.

Operators:

 

Arithmetic

Valid values are:

  • +
  • -
  • /
  • *

Comparison

Valid values are:

  • =
  • <
  • >
  • <>
  • BETWEEN
  • LIKE
  • DISTINCT
  • IN('Value1', 'Value2')

Logical

Valid values are:

  • AND
  • OR
  • NOT

Test:

Verifies the SQL statement of the calculated field.

Was this article helpful?

We're sorry to hear that.

Powered by Zendesk