Report Studio
Operators specify what happens to the values on either side of the operator. Operators are similar to functions, in that they manipulate data items and return a result.
Inserts an open parenthesis in your expression.
Syntax
(expression)
Inserts a closed parenthesis in your expression.
Multiplies two numeric values.
value1 * value2
Separates expression components.
expression(param1, param2)
Divides two numeric values.
value1 / value2
Concatenates strings.
string1 || string2
Adds two values.
value1 + value2
Subtracts two numeric values or negates a numeric value.
value1 - value2 or - value
Compares values against a defined value and retrieves the values that are less than the defined value.
value1 < value2
Compares values against a defined value and retrieves the values that are less than or equal to the defined value.
value1 <= value2
Compares values against a defined value and retrieves the values that are not equal to the defined value.
value1 <> value2
Compares values against a defined value and retrieves the values that are equal to the defined value.
value1 = value2
Compares values against a defined value and retrieves the values that are greater than the defined value.
value1 > value2
Used as a separator in a literal member expression.
[namespace].[dimension].[hierarchy].[level]->[L1]
Compares values against a defined value and retrieves the values that are greater than or equal to the defined value.
value1 >= value2
Returns true if the conditions on both sides of the expression are true.
arg1 AND arg2
Use with summary expressions to define the scope to be adjusted based on the grouping columns in the query. The scope is context dependent.
aggregate_function ( expression AUTO )
Determines if a value falls in a given range.
name BETWEEN value1 and value2
Example
[Revenue] between 200 and 300
Result
Returns the number of results with revenues between 200 and 300.
Result data
Use with When, Then, Else, and End.
CASE expression { WHEN expression THEN expression } [ ELSE expression ] END
Determines if a string contains another string.
string1 CONTAINS string2
Keyword that can be used as the first argument of member summary functions.
aggregate_function( currentMeasure within set expression )
Use with LOOKUP construct.
lookup(....) in (....) DEFAULT(....)
A keyword used in an aggregate expression, to include only distinct occurrences of values. See also the function unique.
DISTINCT dataItem
count ( DISTINCT [OrderDetailQuantity] )
Result: 1704
Use with If or Case constructs.
IF (condition) THEN .... ELSE (expression) , or CASE .... ELSE expression END
Use with Case When construct.
CASE .... END
Determines if a string ends with a given string.
string1 ENDS WITH string2
Use with summary expressions to define the scope of the aggregation in the query.
aggregate_function ( expression FOR expression { , expression } )
Use with summary expressions to define the scope to be all the specified grouping columns in the query. See also FOR clause.
aggregate_function ( expression FOR ALL expression { , expression } )
Use with summary expressions to define the scope to be adjusted based on a subset of the grouping columns in the query. Equivalent to FOR clause.
aggregate_function ( expression FOR ANY expression { , expression } )
Use with summary expressions to define the scope to be the whole query. See also FOR clause.
aggregate_function ( expression FOR REPORT )
Use with Then and Else.
IF (condition is true) THEN (action) ELSE (alternate action)
Determines if a value exists in a given list of values.
exp1 IN (exp_list)
Determines if an item exists in a given list of constant values or ranges.
expression IN_RANGE { constant : constant [ , constant : constant ] }
Determines if a value is undefined in the data.
value IS MISSING
value IS NULL
Determines if a value is defined in the data.
value IS NOT MISSING
value IS NOT NULL
Determines if a string matches the pattern of another string.
string1 LIKE string2
Finds and replaces data with a value you specify. It is preferable to use the CASE construct.
LOOKUP (name) in (value1 --> value2) default (expression)
lookup([Country]) in ('Canada'-->([List Price] * 0.60), 'Australia'-->([List Price] * 0.80)) default([List Price])
Returns true if the condition is false, otherwise returns false.
NOT arg
Returns true if either of the two conditions on both sides of the expression is true.
arg1 OR arg2
Performs a summary calculation before applying the summary filter.
summary ([expression] PREFILTER)
Counts the number of rows output by the query. Use with Count().
count(ROWS)
Determines if a string starts with a given string.
string1 STARTS WITH string2
IF (condition) THEN ...., or CASE expression WHEN expression THEN .... END
Use with Case construct.
CASE [expression] WHEN .... END
Related Topics:
Copyright © 2018 Daptiv Solutions, LLC. All Rights Reserved