SQL Statement Creation Question for Drill Through
Posted: Tue Feb 21, 2012 3:45 pm
Hello,
I have a situation where a single value in TM1 could possibly relate to 2 different values back in the relational database where I need to get the data in a drill through.
For example:
Market is set to UNAL in TM1.
In the Prolog, I was thinking of adding the following if-then-else statement:
IF (Market @= 'UNAL');
MarketSQL = "AND BUF.BU_CODE_MKT in (' ', 'UNAL')";
ELSE;
MarketSQL = "AND BUF.BU_CODE_MKT = '?Market?'";
ENDIF;
I am getting the following error:
Syntax error on or before:
"AND BUF.BU_CODE_MK
invalid expression
Once I get the MarketSQL set, I will add it to the query for the drill through with ?MarketSQL?
Thoughts??
Thank you!
I have a situation where a single value in TM1 could possibly relate to 2 different values back in the relational database where I need to get the data in a drill through.
For example:
Market is set to UNAL in TM1.
In the Prolog, I was thinking of adding the following if-then-else statement:
IF (Market @= 'UNAL');
MarketSQL = "AND BUF.BU_CODE_MKT in (' ', 'UNAL')";
ELSE;
MarketSQL = "AND BUF.BU_CODE_MKT = '?Market?'";
ENDIF;
I am getting the following error:
Syntax error on or before:
"AND BUF.BU_CODE_MK
invalid expression
Once I get the MarketSQL set, I will add it to the query for the drill through with ?MarketSQL?
Thoughts??
Thank you!