Articles in this section

Operators

Ad Hoc views support the following operators in calculated fields. Operators are evaluated in the order they are shown in the table:

Operator

Syntax

Description

multiply, dividei * j / kArithmetic operators for numeric types only.
percenti % jCalculates i as a percent of j; numeric types only.
add, subtracti + j - kArithmetic operators for numeric types only.
equali == jComparison operators for string, numeric, and date types.
not equali != j
less thani < jComparison operators for numeric and date types only.
less than or equali <= j
greater thani > j
greater than or equali >= j
IN seti IN ('apples','oranges')Sets can be of any type.
IN rangei IN (j:k)Ranges must be numeric or date types.
NOTNOT( i )Boolean operators. Parentheses are required for NOT.
ANDi AND j AND k
ORi OR j OR k
parentheses()Used for grouping.
letter-v_4553024.png When dates are used in comparisons or the IF function, they must be the same type: "date only," "date/time," or "time only." Make sure to use the correct modifier ("d," "ts," "t") when using date constants in comparisons. The following are reserved words and cannot be used as field names: AND, And, and, IN, In, in, NOT, Not, not, OR, Or, or. Names containing these strings, such as "Not Available", can be used.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.