on 02-25-2016 4:26 PM
Having issues with creation of if statement in universe (Created on top of bex query.)
I am getting a dimension [Country Key]. need to create a IF else statement on it. like(if([Country Key])='US01/US11' then 'Unites States' else [Country Key]
after going through this post IF ELSE condition in Universe for Source: SAP-B... | SCN i created below statement
<EXPRESSION>IF(@Select(Region\Country Key)='US01/US11','United States',@Select(Region\Country Key))</EXPRESSION>
but its throwing an error, is some thing wrong with my XML syntax??
Using UDT 4.1
Thanks.
Hi Kumar,
If you notice carefully in the post you mentioned, IIF has been used as a keyword whereas you are using IF.
Try with IIF and check.
Regards,
Yuvraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
As Yuvraj said, you have to use IIF.
Please do not forget that anMDX calculated expression based on SAP BW must always return a numeric value.
Here is a link to "OLAP universes best practices" I published in 2009 with my SAP Account: http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c820620...
There are plenty of examples to use expression in OLAP universes.
Regards,
Didier
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.