Pass-through expressions are intended to provide access to the special functions or syntactic constructs that are not standard in Strategy, but are provided by various Relational Database Management System (RDBMS) platforms. There are five predefined Apply functions that can be used to replace regular, predefined functions of the same type.
With these Apply functions, project designers can customize expressions in the Attribute, Filter and Metric Editors to utilize RDBMS functions that are not provided by Strategy.
Below is an example of the ApplyComparison expression.
SYNTAX
The ApplyComparison function is used with comparison operators such as >, Like, and In, which accepts facts, attributes, and metrics as input. For example:
ApplyComparison ("#0>#1", Store@ID, Month@ID)
ApplyComparison ("MYCOMPARISON (#0, #1)", attribute1@ID, attribute2@ID)
ApplyComparison ("#0 >o< #1", attribute1@ID, attribute2@ID)
ApplyComparison ("#0 like #1", [Customer City]@DESC, [Calling Center]@DESC)
select a23.CUSTOMER_ID CUSTOMER_ID,
max(a24.CUST_LAST_NAME) CUST_LAST_NAME,
max(a24.CUST_FIRST_NAME) CUST_FIRST_NAME,
a24.CUST_CITY_ID CUST_CITY_ID,
max(a26.CUST_CITY_NAME) CUST_CITY_NAME,
sum(a21.ORDER_AMT) DOLLARSALES
from ORDER_FACT a21
join LU_EMPLOYEE a22
on (a21.EMP_ID = a22.EMP_ID)
join LU_ORDER a23
on (a21.ORDER_ID = a23.ORDER_ID)
join LU_CUSTOMER a24
on (a23.CUSTOMER_ID = a24.CUSTOMER_ID)
join LU_CALL_CTR a25
on (a22.CALL_CTR_ID = a25.CALL_CTR_ID)
join LU_CUST_CITY a26
on (a24.CUST_CITY_ID = a26.CUST_CITY_ID)
where a26.CUST_CITY_NAME like a25.CENTER_NAME
group by a23.CUSTOMER_ID,
a24.CUST_CITY_IDFilter: Customer City = Calling Center

Note:
'ApplyComparison ("#0 = #1", [Customer City]@DESC, [Calling Center]@DESC)' also produces the same results.
Article Reference Number:
KB20022